]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_pjsip_location: Delete contact_status object when contact is deleted 54/1854/1
authorMatt Jordan <mjordan@digium.com>
Thu, 24 Dec 2015 18:19:51 +0000 (12:19 -0600)
committerMatt Jordan <mjordan@digium.com>
Thu, 24 Dec 2015 18:24:35 +0000 (12:24 -0600)
commit2df4ad647c06451715a22efb17c05ceb4875fa69
treef4fca820b3d5f9d21429baaf91de4b9ad9f25e77
parentb8876711f37a5d34e0091befa5cdaad6dcb35da9
res/res_pjsip_location: Delete contact_status object when contact is deleted

In 450579e908, a change was made that removed the deletion of the
'contact_status' object when a 'contact' object is deleted in sorcery.
This unfortunately means that the 'contact_status' object persists, even when
something has explicitly removed a contact. The result is that the state of
the contact will not be regenerated if that contact is re-created, and the
stale state will be reported/used for that contact. It also results in
no ContactStatusChanged events being generated for either ARI or AMI.

This patch restores the deletion logic that was removed. Doing so now
results in the expected events being generated again.

Change-Id: I28789a112e845072308b5b34522690e3faf58f07
res/res_pjsip/location.c