[Freeswitch-branches] [commit] r1559 - freeswitch/branches/jart/src/mod/endpoints/mod_exosip

anthm at freeswitch.org anthm at freeswitch.org
Wed Jun 7 17:49:25 EDT 2006


Author: anthm
Date: Wed Jun  7 17:49:24 2006
New Revision: 1559

Modified:
   freeswitch/branches/jart/src/mod/endpoints/mod_exosip/mod_exosip.c

Log:
update

Modified: freeswitch/branches/jart/src/mod/endpoints/mod_exosip/mod_exosip.c
==============================================================================
--- freeswitch/branches/jart/src/mod/endpoints/mod_exosip/mod_exosip.c	(original)
+++ freeswitch/branches/jart/src/mod/endpoints/mod_exosip/mod_exosip.c	Wed Jun  7 17:49:24 2006
@@ -1575,8 +1575,11 @@
 				}
 
 
-				expires = get_header_value(je, "expires");
-				exptime = time(NULL) + atoi(expires) + 20;
+				if ((expires = get_header_value(je, "expires"))) {
+					exptime = time(NULL) + atoi(expires) + 20;
+				} else {
+					exptime = time(NULL) + 3600;
+				}
 
 				
 				if (!find_reg_url(globals.db, je->request->from->url->username, sql, sizeof(sql))) {



More information about the Freeswitch-branches mailing list