]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_configuration: On delete, remove the persistent version of an endpoint 56/1556/2
authorMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 16:58:47 +0000 (10:58 -0600)
committerMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 17:20:57 +0000 (12:20 -0500)
commit715f770c9ff011284c1e87f9b5bcde1fc02ab4df
tree14545c32a5771d1b21bf79156def0b8ed8808aa0
parent0071a993f0561664d074d461759fc3259bd9c926
pjsip_configuration: On delete, remove the persistent version of an endpoint

When an endpoint is deleted (such as through an API), the persistent endpoint
currently continues to lurk around. While this isn't harmful from a memory
consumption perspective - as all persistent endpoints are reclaimed on
shutdown - it does cause Stasis endpoint related operations to continue
to believe that the endpoint may or may not exist.

This patch causes the persistent endpoint related to a PJSIP endpoint to be
destroyed if the PJSIP endpoint is deleted.

Change-Id: I85ac707b4d5e6aad882ac275b0c2e2154affa5bb
res/res_pjsip/pjsip_configuration.c