don't need to do this like that for ext-rtp-ip
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9463 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
bc1d36c366
commit
01e79e2f95
|
@ -1497,12 +1497,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
|||
if (!strcmp(val, "0.0.0.0")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid IP 0.0.0.0 replaced with %s\n", mod_sofia_globals.guess_ip);
|
||||
} else {
|
||||
if (!switch_strlen_zero(val)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid ext-rtp-ip replaced with %s\n", mod_sofia_globals.guess_ip);
|
||||
ip = "auto";
|
||||
} else {
|
||||
ip = strcasecmp(val, "auto") ? val : mod_sofia_globals.guess_ip;
|
||||
}
|
||||
}
|
||||
profile->extrtpip = switch_core_strdup(profile->pool, ip);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue