]> 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:07:41 +0000 (09:07 -0500)
commit8bea5052db9907a8887a0b7bedfa8c6579e890ad
treef71b68ec43a8fd400099aeac3023c703e0330147
parent57b1f5a7c3bc08a98ff424e97b235db7e238a6bb
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