[Freeswitch-svn] [commit] r13319 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua
FreeSWITCH SVN
mikej at freeswitch.org
Fri May 15 08:44:40 PDT 2009
Author: mikej
Date: Fri May 15 10:44:40 2009
New Revision: 13319
Log:
Tue May 12 12:08:51 CDT 2009 Pekka Pessi <first.last at nokia.com>
* check_session.c: ensure that re-INVITEs have correct Session-Expires parameters
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Fri May 15 10:44:40 2009
@@ -1 +1 @@
-Fri May 15 10:43:02 CDT 2009
+Fri May 15 10:43:59 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c Fri May 15 10:44:40 2009
@@ -1195,6 +1195,9 @@
fail_unless(s2_check_callstate(nua_callstate_calling));
invite = s2_sip_wait_for_request(SIP_METHOD_INVITE);
process_offer(invite);
+ /* Check that INVITE contains Session-Expires header with refresher=uac */
+ fail_unless(invite->sip->sip_session_expires != NULL);
+ fail_unless(su_casematch(invite->sip->sip_session_expires->x_refresher, "uac"));
respond_with_sdp(
invite, dialog, SIP_200_OK,
SIPTAG_SESSION_EXPIRES_STR(session_expires),
@@ -1261,9 +1264,9 @@
TAG_END());
s2_nua_fast_forward(300, s2base->root);
- invite_timer_round(nh, "300", NULL);
+ invite_timer_round(nh, "300;refresher=uac", NULL);
s2_nua_fast_forward(300, s2base->root);
- invite_timer_round(nh, "300", NULL);
+ invite_timer_round(nh, "300;refresher=uac", NULL);
bye_by_nua(nh, TAG_END());
More information about the Freeswitch-svn
mailing list