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:
Brian West 2008-09-05 14:46:16 +00:00
parent bc1d36c366
commit 01e79e2f95
1 changed files with 0 additions and 5 deletions

View File

@ -1496,14 +1496,9 @@ 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 {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid ext-rtp-ip\n");