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

Freeswitch SVN anthm at freeswitch.org
Fri Sep 29 21:26:54 EDT 2006


Author: anthm
Date: Fri Sep 29 21:26:54 2006
New Revision: 2879

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

Log:
freq 0 means dont reg

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Fri Sep 29 21:26:54 2006
@@ -2753,7 +2753,7 @@
 							oreg->pool = profile->pool;
 							oreg->profile = profile;
 							oreg->name = switch_core_strdup(oreg->pool, name);
-							oreg->freq = 60;
+							oreg->freq = 0;
 
 							for (param = switch_xml_child(registration, "param"); param; param = param->next) {
 								char *var = (char *) switch_xml_attr_soft(param, "name");
@@ -2805,7 +2805,9 @@
 							}
 
 							oreg->freq = atoi(oreg->expires_str);
-
+							if (!oreg->freq) {
+								oreg->state = REG_STATE_REGED;
+							}
 							oreg->next = profile->registrations;
 							profile->registrations = oreg;
 						}



More information about the Freeswitch-svn mailing list