Revision
16039
Author
mikej
Date
2009-12-22 19:57:52 -0600 (Tue, 22 Dec 2009)

Log Message

(MODSOFIA-40)

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (16038 => 16039)


--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-12-23 01:53:44 UTC (rev 16038)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	2009-12-23 01:57:52 UTC (rev 16039)
@@ -1492,7 +1492,7 @@
 			const char *sipip, *format;
 			switch_uuid_t uuid;
 			uint32_t ping_freq = 0, extension_in_contact = 0, distinct_to = 0;
-			int ping_max = 0, ping_min = 0;
+			int ping_max = 1, ping_min = -1;
 			char *register_str = "true", *scheme = "Digest",
 				*realm = NULL,
 				*username = NULL,
@@ -1522,8 +1522,8 @@
 			gateway->next = NULL;
 			gateway->ping = 0;
 			gateway->ping_freq = 0;
-			gateway->ping_max = 1;
-			gateway->ping_min = -1;
+			gateway->ping_max = 0;
+			gateway->ping_min = 0;
 			gateway->ping_count = 0;
 			
 			if ((x_params = switch_xml_child(gateway_tag, "variables"))) {