]> 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)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 26 Oct 2022 15:06:48 +0000 (10:06 -0500)
commitf66f77fa4f88dbae59761534e9ee2856179410b4
tree28e5eac84fe9c4fb20a39f57cf43055ef38eac4a
parent0825d26ad9699eee6b366163f1965a9bb5da1b71
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