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

FreeSWITCH SVN anthm at freeswitch.org
Mon Dec 8 09:37:26 PST 2008


Author: anthm
Date: Mon Dec  8 12:37:26 2008
New Revision: 10659

Log:
extend timeout on subscription dialog

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	Mon Dec  8 12:37:26 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 : 600);
+		exp_raw = (sip->sip_expires ? sip->sip_expires->ex_delta : 3600);
 		exp = (long) switch_timestamp(NULL) + exp_raw + 120;
 
 		if (sofia_test_pflag(profile, PFLAG_MULTIREG)) {
@@ -1563,8 +1563,10 @@
 				contactstr = profile->tls_contact;
 			}
 
+			nua_dialog_usage_set_refresh_range(nh->nh_ds->ds_usage, exp_raw + 120, exp_raw + 120);
 
-			nua_respond(nh, SIP_202_ACCEPTED, SIPTAG_CONTACT_STR(contact_str), NUTAG_WITH_THIS(nua), SIPTAG_SUBSCRIPTION_STATE_STR(sstr), 
+			nua_respond(nh, SIP_202_ACCEPTED, SIPTAG_CONTACT_STR(contact_str), NUTAG_WITH_THIS(nua), 
+						SIPTAG_SUBSCRIPTION_STATE_STR(sstr),
 						TAG_IF(sticky, NUTAG_PROXY(sticky)), TAG_END());
 
 			switch_safe_free(sticky);



More information about the Freeswitch-svn mailing list