[Asterisk-code-review] res pjsip refer: Prevent unload except during shutdown. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Wed Oct 18 13:39:47 CDT 2017


Corey Farrell has uploaded this change for review. ( https://gerrit.asterisk.org/6830


Change subject: res_pjsip_refer: Prevent unload except during shutdown.
......................................................................

res_pjsip_refer: Prevent unload except during shutdown.

Prevent unload of the module as certain pjsip initialization functions
cannot be reversed.

ASTERISK-24483

Change-Id: I94597ec8b8491f5af9c57bf66dbc3b078fe2d49d
---
M res/res_pjsip_refer.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/30/6830/1

diff --git a/res/res_pjsip_refer.c b/res/res_pjsip_refer.c
index 456e09d..62f8b67 100644
--- a/res/res_pjsip_refer.c
+++ b/res/res_pjsip_refer.c
@@ -1211,6 +1211,8 @@
 	ast_sip_register_service(&refer_progress_module);
 	ast_sip_session_register_supplement(&refer_supplement);
 
+	ast_module_shutdown_ref(ast_module_info->self);
+
 	return AST_MODULE_LOAD_SUCCESS;
 }
 

-- 
To view, visit https://gerrit.asterisk.org/6830
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I94597ec8b8491f5af9c57bf66dbc3b078fe2d49d
Gerrit-Change-Number: 6830
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171018/75a3a617/attachment.html>


More information about the asterisk-code-review mailing list