]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix crash in res_pjsip on load if error occurs, and prevent unloading of res_pjsip...
authorJoshua Colp <jcolp@digium.com>
Mon, 23 Sep 2013 12:02:09 +0000 (12:02 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 23 Sep 2013 12:02:09 +0000 (12:02 +0000)
commit61c2cc894c46d26b0089c1b7de577871f01df524
treeaec337a30c0034c92b8ca10f49d67d5082e23865
parentec234be3570e62582fd8de215943c6018d6d816a
Fix crash in res_pjsip on load if error occurs, and prevent unloading of res_pjsip and res_pjsip_session.

During load time in res_pjsip if an error occurred the operation would attempt to rollback all
operations done during load. This is not permitted by PJSIP as it will assert if the operation has
not been done. This fix changes the code so it will only rollback what has been initialized already.

Further changes also prevent res_pjsip and res_pjsip_session from being unloaded. This is due to
limitations within PJSIP itself. The library environment can only be changed to a certain extent
and does not provide the ability, currently, to deinitialize certain required functionality.

(closes issue ASTERISK-22474)
Reported by: Corey Farrell

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@399624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip.c
res/res_pjsip_session.c