Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sipp/uac-reinvite-bad-via-branch.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <!DOCTYPE scenario SYSTEM "sipp.dtd">
3
4 <!-- This program is free software; you can redistribute it and/or -->
5 <!-- modify it under the terms of the GNU General Public License as -->
6 <!-- published by the Free Software Foundation; either version 2 of the -->
7 <!-- License, or (at your option) any later version. -->
8 <!-- -->
9 <!-- This program is distributed in the hope that it will be useful, -->
10 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
11 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
12 <!-- GNU General Public License for more details. -->
13 <!-- -->
14 <!-- You should have received a copy of the GNU General Public License -->
15 <!-- along with this program; if not, write to the -->
16 <!-- Free Software Foundation, Inc., -->
17 <!-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -->
18 <!-- -->
19 <!-- -->
20
21 <!-- Re-INVITE with bad Via branch (it has the same branch as the
22 previous INVITE (ticket #965) will cause assertion
23 -->
24
25
26 <scenario name="UAC re-INVITE with bad Via branch">
27
28 <label id="1"/>
29
30 <send>
31 <![CDATA[
32
33 INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
34 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
35 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
36 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
37 Call-ID: [call_id]
38 CSeq: [cseq] INVITE
39 Contact: sip:sipp@[local_ip]:[local_port]
40 Max-Forwards: 70
41 Subject: Performance Test
42 Content-Type: application/sdp
43 Content-Length: [len]
44
45 v=0
46 o=Tester 234 123 IN IP4 127.0.0.1
47 s=Tester
48 c=IN IP4 127.0.0.1
49 t=0 0
50 m=audio 17424 RTP/AVP 0 101
51 a=rtpmap:101 telephone-event/8000
52 a=sendrecv
53
54 ]]>
55 </send>
56
57 <recv response="100"
58 optional="true">
59 </recv>
60
61 <recv response="180" optional="true">
62 </recv>
63
64 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
65 <!-- are saved and used for following messages sent. Useful to test -->
66 <!-- against stateful SIP proxies/B2BUAs. -->
67 <recv response="200" rtd="true">
68 </recv>
69
70 <!-- Packet lost can be simulated in any send/recv message by -->
71 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
72 <send>
73 <![CDATA[
74
75 ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
76 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-2
77 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
78 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
79 Call-ID: [call_id]
80 CSeq: [cseq] ACK
81 Contact: sip:sipp@[local_ip]:[local_port]
82 Max-Forwards: 70
83 Subject: Performance Test
84 Content-Length: 0
85
86 ]]>
87 </send>
88
89 <!-- Uncomment this to the test retry/looping scenario -->
90 <!--pause distribution="uniform" min="0" max="100"/-->
91
92 <!-- Re-INVITE with Via branch value the same as previous INVITE -->
93 <send>
94 <![CDATA[
95
96 INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
97 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
98 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
99 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
100 Call-ID: [call_id]
101 CSeq: [cseq] INVITE
102 Contact: sip:sipp@[local_ip]:[local_port]
103 Max-Forwards: 70
104 Subject: Performance Test
105 Content-Type: application/sdp
106 Content-Length: [len]
107
108 v=0
109 o=Tester 234 124 IN IP4 127.0.0.1
110 s=Tester
111 c=IN IP4 127.0.0.1
112 t=0 0
113 m=audio 17424 RTP/AVP 0 101
114 a=rtpmap:101 telephone-event/8000
115
116
117 ]]>
118 </send>
119
120 <!-- Previous INVITE transaction may have been destroyed, and 200 -->
121 <!-- response is received, instead of 500. So, let's just try again, -->
122 <!-- i.e: send ACK and repeat the scenario. -->
123 <recv response="200" optional="true" next="9">
124 </recv>
125
126 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
127 <!-- are saved and used for following messages sent. Useful to test -->
128 <!-- against stateful SIP proxies/B2BUAs. -->
129 <recv response="400" rtd="true">
130 </recv>
131
132 <!-- Packet lost can be simulated in any send/recv message by -->
133 <!-- by adding the 'lost = "10"'. Value can be [1-100] percent. -->
134 <send>
135 <![CDATA[
136
137 ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
138 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
139 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
140 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
141 Call-ID: [call_id]
142 CSeq: [cseq] ACK
143 Contact: sip:sipp@[local_ip]:[local_port]
144 Max-Forwards: 70
145 Subject: Performance Test
146 Content-Length: 0
147
148 ]]>
149 </send>
150
151
152 <pause milliseconds="500"/>
153
154
155 <!-- The 'crlf' option inserts a blank line in the statistics report. -->
156 <send>
157 <![CDATA[
158
159 BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
160 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
161 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
162 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
163 Call-ID: [call_id]
164 CSeq: [cseq] BYE
165 Contact: sip:sipp@[local_ip]:[local_port]
166 Max-Forwards: 70
167 Subject: Performance Test
168 Content-Length: 0
169
170 ]]>
171 </send>
172
173 <recv response="200" crlf="true" next="10">
174 </recv>
175
176 <label id="9"/>
177
178 <!-- Send ACK before repeating the scenario -->
179 <send>
180 <![CDATA[
181
182 ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
183 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=z9hG4bKPj-1
184 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
185 To: sut <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
186 Call-ID: [call_id]
187 CSeq: [cseq] ACK
188 Contact: sip:sipp@[local_ip]:[local_port]
189 Max-Forwards: 70
190 Subject: Performance Test
191 Content-Length: 0
192
193 ]]>
194 </send>
195
196 <!-- Wait for this tsx getting destroyed before restarting -->
197 <pause milliseconds="5100" next="1"/>
198
199
200 <label id="10"/>
201
202 <!-- definition of the response time repartition table (unit is ms) -->
203 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
204
205 <!-- definition of the call length repartition table (unit is ms) -->
206 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
207
208 </scenario>
209