From 7e1d02d8a9854ba443cf481ccedbdd77f2b74042 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 15 May 2009 15:44:40 +0000 Subject: [PATCH] Tue May 12 12:08:51 CDT 2009 Pekka Pessi * check_session.c: ensure that re-INVITEs have correct Session-Expires parameters git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13319 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nua/check_session.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index d7aeb92043..d7fb051287 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Fri May 15 10:43:02 CDT 2009 +Fri May 15 10:43:59 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c b/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c index 0dbbc2680f..6bf1a8c364 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c @@ -1195,6 +1195,9 @@ invite_timer_round(nua_handle_t *nh, 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 @@ START_TEST(call_2_3_2) 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());