From e753e615ca57675e5b291fd5f6c772fea1cfa528 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Tue, 29 Oct 2019 19:30:46 +0400 Subject: [PATCH] [mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param is set as empty string. --- src/mod/endpoints/mod_sofia/sofia.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index aedfb66e56..b9eab1939b 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -5056,6 +5056,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid ext-rtp-ip\n"); + switch_goto_status(SWITCH_STATUS_GENERR, done); } } else if (!strcasecmp(var, "rtp-ip")) { char *ip = mod_sofia_globals.guess_ip; @@ -5150,6 +5151,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid ext-sip-ip\n"); + switch_goto_status(SWITCH_STATUS_GENERR, done); } } else if (!strcasecmp(var, "local-network-acl")) { if (val && !strcasecmp(val, "none")) {