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

Freeswitch SVN anthm at freeswitch.org
Mon Apr 2 21:24:24 EDT 2007


Author: anthm
Date: Mon Apr  2 21:24:24 2007
New Revision: 4837

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

Log:
wtf

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Mon Apr  2 21:24:24 2007
@@ -617,7 +617,11 @@
 	assert(nh != NULL);
 
 	id = switch_mprintf("sip:%s@%s", sub_to_user, sub_to_host);
-	exp = switch_mprintf("active;expires=%ld", time(NULL) - expire_sec);
+	expire_sec -= time(NULL);
+	if (expire_sec < 0) {
+		expire_sec = 3600;
+	}
+	exp = switch_mprintf("active;expires=%ld", expire_sec);
 
 	tmp = contact;
 	contact = sofia_glue_get_url_from_contact(tmp, 0);



More information about the Freeswitch-svn mailing list