summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2015-04-15 12:55:54 +0000
committerNanang Izzuddin <nanang@teluu.com>2015-04-15 12:55:54 +0000
commit2c59240a8f20aa904e14a1ad81e7ab744166a63a (patch)
tree90b4dbfa0466a61ea3b888fa643d8668eec8e9d3 /tests
parent04f9989aa4cd322074d15bd58331dc3dfe190366 (diff)
Re #1842: Workaround for spurious failure in sipp/uac-reinvite-bad-via-branch.xml test, i.e: just retry the scenario. The failure is caused by race between SIPp sending re-INVITE vs transaction immediate termination (by SIP INVITE module when the session reaches CONFIRMED state).
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5071 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests')
-rw-r--r--tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml33
1 files changed, 32 insertions, 1 deletions
diff --git a/tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml b/tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml
index ed825c9f..dd9a5eb6 100644
--- a/tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml
+++ b/tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml
@@ -24,6 +24,9 @@
<scenario name="UAC re-INVITE with bad Via branch">
+
+ <label id="1"/>
+
<send retrans="500">
<![CDATA[
@@ -112,6 +115,12 @@
]]>
</send>
+ <!-- Previous INVITE transaction may have been destroyed, and 200 -->
+ <!-- response is received, instead of 500. So, let's just try again, -->
+ <!-- i.e: send ACK and repeat the scenario. -->
+ <recv response="200" optional="true" next="9">
+ </recv>
+
<!-- By adding rrs="true" (Record Route Sets), the route sets -->
<!-- are saved and used for following messages sent. Useful to test -->
<!-- against stateful SIP proxies/B2BUAs. -->
@@ -159,9 +168,31 @@
]]>
</send>
- <recv response="200" crlf="true">
+ <recv response="200" crlf="true" next="10">
</recv>
+ <label id="9"/>
+
+ <!-- Send ACK before repeating the scenario -->
+ <send next="1">
+ <![CDATA[
+
+ ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
+ From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
+ To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
+ Call-ID: [call_id]
+ CSeq: 2 ACK
+ Contact: sip:sipp@[local_ip]:[local_port]
+ Max-Forwards: 70
+ Subject: Performance Test
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+
+ <label id="10"/>
<!-- definition of the response time repartition table (unit is ms) -->
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>