[Freeswitch-svn] [commit] r9457 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
brian at freeswitch.org
Thu Sep 4 23:44:03 EDT 2008
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;
More information about the Freeswitch-svn
mailing list