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
pull/9/head
Corey Farrell 8 years ago
parent 95b45d1c46
commit 449ee66a11

@ -1211,6 +1211,8 @@ static int load_module(void)
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;
}

Loading…
Cancel
Save