From: Andrey Volk Date: Tue, 29 Oct 2019 15:30:46 +0000 (+0400) Subject: [mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param... X-Git-Tag: v1.10.2^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e753e615ca57675e5b291fd5f6c772fea1cfa528;p=thirdparty%2Ffreeswitch.git [mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param is set as empty string. --- 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")) {