From 4c76dd0076ec650fc80af57a3541ad1d64f3e7e7 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Wed, 18 Aug 2010 14:30:17 +0000 Subject: Automated test (re #1111): fixed test scenario scripts-recvfrom/301_timer_good_retry_after_422.py to use separate transaction for ACK (pattern matching was done to ACK, instead of INVITE). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3287 74dad513-b988-da41-8d7b-12977e46ad98 --- tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py b/tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py index c3bbac7e..cb35414c 100644 --- a/tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py +++ b/tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py @@ -11,12 +11,14 @@ pjsua = "--null-audio sip:127.0.0.1:$PORT --timer-min-se 100 --timer-se 1000" req1 = sip.RecvfromTransaction("INVITE with SE too small", 422, include=["Session-Expires:\s*1000"], exclude=[], - resp_hdr=["Min-SE: 2000"], - expect="ACK sip" + resp_hdr=["Min-SE: 2000"] ) +# Wait for ACK +req2 = sip.RecvfromTransaction("Wait ACK", 0, include=["ACK sip"]) + # New INVITE with SE >= Min-SE -req2 = sip.RecvfromTransaction("Retrying with acceptable SE", 200, +req3 = sip.RecvfromTransaction("Retrying with acceptable SE", 200, include=["Session-Expires:\s*2000", "Min-SE:\s*2000"], exclude=[], resp_hdr=["Session-Expires: 2000;refresher=uac"] @@ -24,5 +26,5 @@ req2 = sip.RecvfromTransaction("Retrying with acceptable SE", 200, recvfrom_cfg = sip.RecvfromCfg("Session timers retry after 422", - pjsua, [req1, req2]) + pjsua, [req1, req2, req3]) -- cgit v1.2.3