Merge "res_pjsip_outbound_publishing: After unloading the library won't load again" into 13

This commit is contained in:
Joshua Colp
2016-05-19 13:33:08 -05:00
committed by Gerrit Code Review
2 changed files with 4 additions and 0 deletions

View File

@@ -1228,6 +1228,7 @@ static int load_module(void)
if (ast_sorcery_object_register(ast_sip_get_sorcery(), "outbound-publish", sip_outbound_publish_alloc, NULL,
sip_outbound_publish_apply)) {
ast_log(LOG_ERROR, "Unable to register 'outbound-publish' type with sorcery\n");
return AST_MODULE_LOAD_DECLINE;
}
@@ -1300,6 +1301,7 @@ static int unload_module(void)
"in the allowed time\n", unloading.count);
} else {
ast_verb(5, "All items successfully unpublished\n");
ast_sorcery_object_unregister(ast_sip_get_sorcery(), "outbound-publish");
}
return res;