Tue May 12 12:08:51 CDT 2009 Pekka Pessi <first.last@nokia.com>

* 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
This commit is contained in:
Michael Jerris 2009-05-15 15:44:40 +00:00
parent 0d3db88c5b
commit 7e1d02d8a9
2 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
Fri May 15 10:43:02 CDT 2009
Fri May 15 10:43:59 CDT 2009

View File

@ -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());