[Freeswitch-svn] [commit] r10635 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
anthm at freeswitch.org
Fri Dec 5 14:24:40 PST 2008
Author: anthm
Date: Fri Dec 5 17:24:40 2008
New Revision: 10635
Log:
tweak expire on pres
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
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 Fri Dec 5 17:24:40 2008
@@ -1497,7 +1497,7 @@
full_from = sip_header_as_string(profile->home, (void *) sip->sip_from);
full_via = sip_header_as_string(profile->home, (void *) sip->sip_via);
- exp_raw = (sip->sip_expires ? sip->sip_expires->ex_delta : 3600);
+ exp_raw = (sip->sip_expires ? sip->sip_expires->ex_delta : 600);
exp = (long) switch_timestamp(NULL) + exp_raw;
if (sofia_test_pflag(profile, PFLAG_MULTIREG)) {
@@ -1533,6 +1533,10 @@
switch_assert(sql != NULL);
sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE);
+ if (exp_raw >= 180) {
+ exp_raw -= 120;
+ }
+
sstr = switch_mprintf("active;expires=%ld", exp_raw);
}
More information about the Freeswitch-svn
mailing list