]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/location: Destroy contact_status objects on contact deletion 57/1557/2
authorMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 17:15:09 +0000 (11:15 -0600)
committerMatt Jordan <mjordan@digium.com>
Wed, 4 Nov 2015 13:44:26 +0000 (07:44 -0600)
commitafec1b1b6497c2b81c0ef468861933b6ba277562
treef13a72c6e55b710fc97fd16ac7806f50af94eb92
parent1cf699c848e2b1780372a16265d059543bbd247a
res_pjsip/location: Destroy contact_status objects on contact deletion

The contact_status Sorcery objects are currently not destroyed when a contact
is deleted. This causes the contact's last known RTT/status to be 'sticky'
when the contact itself may no longer exist. This patch causes the
contact_status objects associated with both dynamic and static contacts to
be destroyed if the AoR holding those contacts is also destroyed (or via
other paths where a contact may be deleted.)

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