]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_registration: Clean up state when registration is deleted 49/2849/2
authorGeorge Joseph <gjoseph@digium.com>
Mon, 16 May 2016 20:29:38 +0000 (14:29 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 17 May 2016 01:43:54 +0000 (20:43 -0500)
commit3f6ef63099d58d0aa74895156e8038eb44180ea8
tree44d83e0d93928c80275d96d28f00b9891db0f3b0
parentbcb133ce933c9ba8c36a8c20640f79f0d992ac12
res_pjsip_outbound_registration:  Clean up state when registration is deleted

Nothing was cleaning up the registration state object when ast_sorcery_delete
was called on a registration.  So, the registration was deleted from sorcery
but the state object went right on refreshing the registration (or failing
to refresh the registration) with the peer.

* Added a 'deleted' observer on registration that removes the state object.

ASTERISK-25964 #close
Reported-by Matt Jordan

Change-Id: I2db792145cdb1f72ebbf57dd9099596dbbf12c23
res/res_pjsip_outbound_registration.c