[Freeswitch-svn] [commit] r9868 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN brian at freeswitch.org
Mon Oct 6 20:47:17 EDT 2008


Author: brian
Date: Mon Oct  6 20:47:16 2008
New Revision: 9868

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
tweak warnings

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	Mon Oct  6 20:47:16 2008
@@ -909,7 +909,8 @@
 
 			gateway->retry_seconds = atoi(retry_seconds);
 			if (gateway->retry_seconds < 10) {
-				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "INVALID: retry_seconds correcting the value to 30\n");
+				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "INVALID: retry-seconds of %d on gateway %s correcting the value to 30\n",
+								  gateway->retry_seconds, name);
 				gateway->retry_seconds = 30;
 			}
 			gateway->register_scheme = switch_core_strdup(gateway->pool, scheme);
@@ -953,7 +954,8 @@
 			gateway->expires_str = switch_core_strdup(gateway->pool, expire_seconds);
 
 			if ((gateway->freq = atoi(gateway->expires_str)) < 5) {
-				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Invalid Freq: %d.  Setting Register-Frequency to 3600\n", gateway->freq);
+				switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "INVALID: register-frequency of %d on gateway %s to 3600\n",
+								  gateway->freq, name);
 				gateway->freq = 3600;
 			}
 			gateway->freq -= 2;



More information about the Freeswitch-svn mailing list