[commit] r9457 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: brian Date: Thu Sep 4 23:44:02 2008 New Revision: 9457 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Log: if the string is empty lets use the guessed ip instead. Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Thu Sep 4 23:44:02 2008 @@ -1524,7 +1524,9 @@ 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;
participants (1)
-
Freeswitch SVN