res_pjsip_outbound_registration.c: Use ast_sorcery_object_unregister() API
authorRichard Mudgett <rmudgett@digium.com>
Mon, 15 Jun 2015 20:28:41 +0000 (15:28 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 25 Jun 2015 19:32:19 +0000 (14:32 -0500)
commitdc63377c607e93e5823b5567a5f228f324d8925a
treeff20fab54e41d4ffe30ba51fb66f350b3c855bda
parent9ec8a0f3ccdb0e308ed480aff3ad1e1c9a82f674
res_pjsip_outbound_registration.c: Use ast_sorcery_object_unregister() API

The sorcery pjsip 'registration' config object needs to be destroyed on
module unload.  Otherwise, a reload of res_pjsip could try to use
callbacks for a previously unloaded instance of the module provided by
ast_sorcery_object_register() or one of the variants.  Also, if
res_pjsip_outbound_registration were subsequently reloaded, the sorcery
config field objects would be registered in sorcery twice.

ASTERISK-24907
Reported by: Kevin Harwell

Change-Id: I304fad13dece2604af48353f6c6d9d5c7b064697
res/res_pjsip_outbound_registration.c