]> 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)
committerN A <asterisk@phreaknet.org>
Wed, 26 Oct 2022 12:48:49 +0000 (07:48 -0500)
commit85ae67f3875c02d99c44c02a408953a06ee0c27a
tree6dfbeff40ffe3307af48ec1cf381085e0f2e887a
parent0655d5f83e208816d0431f5085d2e859f3d4efcd
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