if the string is empty lets use the guessed ip instead.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9457 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-09-05 03:44:02 +00:00
parent fb9e85df57
commit b68a3f97fc
1 changed files with 3 additions and 1 deletions

View File

@ -1524,7 +1524,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
switch_copy_string(stun_ip, ip, sizeof(stun_ip));
if (!strcasecmp(val, "0.0.0.0")) {
if (!switch_strlen_zero(val)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid IP replaced with %s\n", mod_sofia_globals.guess_ip);
} else if (!strcasecmp(val, "0.0.0.0")) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invald IP 0.0.0.0 replaced with %s\n", mod_sofia_globals.guess_ip);
} else if (strcasecmp(val, "auto")) {
switch_port_t port = 0;