]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: Prevent removing subscriptions.
authorNaveen Albert <asterisk@phreaknet.org>
Sun, 16 Oct 2022 20:35:29 +0000 (20:35 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 26 Oct 2022 14:08:17 +0000 (09:08 -0500)
commit9258d8212a1fd15bd53ab998a7dda709000f1f93
treef7d47da7cb2b4a68d664d94396095216c151147b
parent407216a0a56afdd692be4f7253ce710eb10d02d2
res_pjsip_pubsub: Prevent removing subscriptions.

pjproject does not provide any mechanism of removing
event packages, which means that once a subscription
handler is registered, it is effectively permanent.

pjproject will assert if the same event package is
ever registered again, so currently unloading and
loading any Asterisk modules that use subscriptions
will cause a crash that is beyond our control.

For that reason, we now prevent users from being
able to unload these modules, to prevent them
from ever being loaded twice.

ASTERISK-30264 #close

Change-Id: I7fdcb1a5e44d38b7ba10c44259fe98f0ae9bc12c
res/res_pjsip_exten_state.c
res/res_pjsip_mwi.c