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

FreeSWITCH SVN mikej at freeswitch.org
Tue May 19 08:17:44 PDT 2009


Author: mikej
Date: Tue May 19 10:17:44 2009
New Revision: 13384

Log:
 don't do this if its zero try one SFSIP-143 

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Tue May 19 10:17:44 2009
@@ -1375,7 +1375,7 @@
 					new_expires = contact->m_expires;
 					expi = (uint32_t) atoi(new_expires);
 	
-					if (expi != sofia_private->gateway->freq) {
+					if (expi > 0 && expi != sofia_private->gateway->freq) {
 						sofia_private->gateway->freq = expi;
 						switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
 										  "Changing expire time to %d by request of proxy %s\n", expi, sofia_private->gateway->register_proxy);



More information about the Freeswitch-svn mailing list