From 8fb926d3ac7fd38fbc7d9fdc53f9ec6434df934c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 17:11:20 +0000 Subject: [PATCH] Wed Jan 21 14:32:32 CST 2009 Pekka Pessi * check_nua: fiddled with some timing issues git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11842 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c | 2 ++ libs/sofia-sip/libsofia-sip-ua/nua/check_session.c | 4 ++-- libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c b/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c index bdfe040872..37fbd0f466 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/check_etsi.c @@ -244,6 +244,8 @@ START_TEST(SIP_CC_OE_CE_TI_008) fail_unless(s2_check_callstate(nua_callstate_ready)); fail_unless(s2_check_request(SIP_METHOD_ACK)); + s2_fast_forward(5); + respond_with_sdp(invite, d1, SIP_200_OK, TAG_END()); fail_unless(s2_check_request(SIP_METHOD_ACK)); 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 a0e9af1b52..2a4423fb3a 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/check_session.c @@ -2391,7 +2391,7 @@ START_TEST(bye_4_2_2) s2_fast_forward(300); invite_timer_round(nh, "300", NULL); - s2_fast_forward(300); + s2_fast_forward(140); nua_bye(nh, TAG_END()); @@ -2403,7 +2403,7 @@ START_TEST(bye_4_2_2) s2_free_message(bye); fail_unless(s2_check_event(nua_r_bye, 407)); - s2_fast_forward(300); + s2_fast_forward(160); nua_authenticate(nh, NUTAG_AUTH(s2_auth_credentials), TAG_END()); bye = s2_wait_for_request(SIP_METHOD_BYE); diff --git a/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c b/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c index c42e63e4e5..35ed88591a 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c +++ b/libs/sofia-sip/libsofia-sip-ua/nua/test_s2.c @@ -125,6 +125,8 @@ void s2_fast_forward(unsigned long seconds) _su_time = _su_time_fast_forwarder; time_offset += seconds; + + su_root_step(s2->root, 0); } /* -- NUA events -------------------------------------------------------- */