summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2010-08-18 14:30:17 +0000
committerNanang Izzuddin <nanang@teluu.com>2010-08-18 14:30:17 +0000
commit4c76dd0076ec650fc80af57a3541ad1d64f3e7e7 (patch)
treece317577be69b8efde494bc2f689e796352e63a9 /tests
parent732a9608a63c741e973d1b040f8f329218bf07fb (diff)
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
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/scripts-recvfrom/301_timer_good_retry_after_422.py10
1 files 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])