[mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param is set as empty string.

This commit is contained in:
Andrey Volk 2019-10-29 19:30:46 +04:00
parent 00967290b9
commit e753e615ca
1 changed files with 2 additions and 0 deletions

View File

@ -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")) {