]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/location: Destroy contact_status objects on contact deletion 59/1559/1
authorMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 17:15:09 +0000 (11:15 -0600)
committerMatt Jordan <mjordan@digium.com>
Tue, 3 Nov 2015 17:19:16 +0000 (12:19 -0500)
commitd33a1682e37a87a3940e0d96958fcc2af4d60fc7
treec8027529f1c4f2342f6818500ef04787579e706b
parent40574a2ea31f03d5a4d3914f1e20895a9b49d7f0
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