diff options
author | Joshua Colp <jcolp@digium.com> | 2016-10-25 05:29:45 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-10-25 05:29:45 -0500 |
commit | 7c79b057dd3b0a06000b7bdd0583648bfc643b96 (patch) | |
tree | 826d7acdf560e89ae3f4135cd45cc7231739f6c5 /res/res_pjsip.c | |
parent | 3972ab2e1980c50f37b76b238fd0a4d784ed6d04 (diff) | |
parent | 403c4f58338e226c066956865218eeec64d71ed1 (diff) |
Merge "pjsip: Support dual stack automatically."
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r-- | res/res_pjsip.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c index fa200be26..39c365aa1 100644 --- a/res/res_pjsip.c +++ b/res/res_pjsip.c @@ -4332,6 +4332,7 @@ static int unload_pjsip(void *data) */ if (ast_pjsip_endpoint && serializer_pool[0]) { ast_res_pjsip_cleanup_options_handling(); + ast_res_pjsip_cleanup_message_ip_updater(); ast_sip_destroy_distributor(); ast_res_pjsip_destroy_configuration(); ast_sip_destroy_system(); @@ -4499,6 +4500,12 @@ static int load_module(void) } ast_res_pjsip_init_options_handling(0); + + if (ast_res_pjsip_init_message_ip_updater()) { + ast_log(LOG_ERROR, "Failed to initialize message IP updating. Aborting load\n"); + goto error; + } + ast_cli_register_multiple(cli_commands, ARRAY_LEN(cli_commands)); AST_TEST_REGISTER(xml_sanitization_end_null); |