1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!DOCTYPE scenario SYSTEM "sipp.dtd">
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. -->
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. -->
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 -->
19
<!-- Sipp default 'uas' scenario. -->
22
<scenario name="Forked INVITE, one of them require PRACK">
23
<recv request="INVITE" crlf="true">
25
<ereg regexp="branch=([^;]*)"
29
<assign assign_to="1" variable="2"/>
30
<ereg regexp="CSeq: [ 0-9A-Z]+"
47
<!-- Call leg 1 sends 180/Ringing -->
51
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;branch=[$2]
56
Contact: <sip:UA_1@[local_ip]:[local_port]>
63
<recv request="PRACK" crlf="true">
78
<pause milliseconds="2000" />
80
<!-- Call leg 2: 180/Ringing -->
84
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;branch=[$2]
89
Contact: <sip:UA_2@[local_ip]:[local_port]>
96
<recv request="PRACK" crlf="true">
111
<pause milliseconds="2000" />
113
<!-- Call leg 2: sends Ringing again with correct RSeq -->
116
SIP/2.0 180 Ringing2b
117
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;branch=[$2]
122
Contact: <sip:UA_2@[local_ip]:[local_port]>
129
<recv request="PRACK" crlf="true">
144
<pause milliseconds="2000" />
146
<!-- Call leg 2: sends Ringing again with WRONG RSeq. There should be no PRACK -->
149
SIP/2.0 180 Ringing2c
150
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;branch=[$2]
155
Contact: <sip:UA_2@[local_ip]:[local_port]>
162
<pause milliseconds="2000" />
164
<!-- Then Call leg 1 sends 180/Ringing again -->
167
SIP/2.0 180 Ringing1b
168
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;branch=[$2]
173
Contact: <sip:UA_1@[local_ip]:[local_port]>
180
<recv request="PRACK" crlf="true">
195
<pause milliseconds="2000" />
201
Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2]
218
<!-- definition of the response time repartition table (unit is ms) -->
219
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
221
<!-- definition of the call length repartition table (unit is ms) -->
222
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>