[Freeswitch-svn] [commit] r1560 - in freeswitch/trunk/src: include mod/endpoints/mod_exosip
mikej at freeswitch.org
mikej at freeswitch.org
Wed Jun 7 17:55:17 EDT 2006
Author: mikej
Date: Wed Jun 7 17:55:17 2006
New Revision: 1560
Modified:
freeswitch/trunk/src/include/switch.h
freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
Log:
merge anthm fix for atoi(NULL) segfault. Thanks jart for identifying the problem.
Modified: freeswitch/trunk/src/include/switch.h
==============================================================================
--- freeswitch/trunk/src/include/switch.h (original)
+++ freeswitch/trunk/src/include/switch.h Wed Jun 7 17:55:17 2006
@@ -101,7 +101,6 @@
* Additionally, the experimental external modules make use of several external modules:
*
* mod_Exosip:
- * - JRTPlib (http://research.edm.luc.ac.be/jori/jrtplib/jrtplib.html)
* - eXoSIP (http://savannah.nongnu.org/projects/exosip/)
*
* mod_iaxchan:
Modified: freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_exosip/mod_exosip.c Wed Jun 7 17:55:17 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-svn
mailing list