From: Anthony Minessale Date: Sat, 6 Dec 2008 17:35:37 +0000 (+0000) Subject: cache db entries longer X-Git-Tag: v1.0.2~327 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60159bf8a16625b18ca47b42b049329048ea3bdc;p=thirdparty%2Ffreeswitch.git cache db entries longer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10640 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index f181e60873..483bfd7aec 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1498,7 +1498,7 @@ void sofia_presence_handle_sip_i_subscribe(int status, full_via = sip_header_as_string(profile->home, (void *) sip->sip_via); exp_raw = (sip->sip_expires ? sip->sip_expires->ex_delta : 600); - exp = (long) switch_timestamp(NULL) + exp_raw; + exp = (long) switch_timestamp(NULL) + exp_raw + 120; if (sofia_test_pflag(profile, PFLAG_MULTIREG)) { sql = switch_mprintf("delete from sip_subscriptions where call_id='%q'", call_id);