blob: 6caf3220f561e15ceaa1002aea23d0a686c5841d [file] [log] [blame]
Benny Prijono8ba349f2009-04-06 15:41:30 +00001<?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<!-- Sipp default 'uas' scenario. -->
20<!-- -->
21
22<scenario name="Forked INVITE, one of them require PRACK">
23 <recv request="INVITE" crlf="true">
24 <action>
25 <ereg regexp="branch=([0-9a-zA-Z]*)"
26 search_in="msg"
27 assign_to="3"/>
28 <ereg regexp="CSeq: ([0-9a-zA-Z ]*)"
29 search_in="msg"
30 assign_to="4"/>
31 </action>
32 </recv>
33
34 <send>
35 <![CDATA[
36 SIP/2.0 100 Trying
37 [last_Via:]
38 [last_From:]
39 [last_To:];tag=[call_number]
40 [last_Call-ID:]
41 [last_CSeq:]
42 ]]>
43 </send>
44
45 <!-- Call leg 1: 180/Ringing -->
46 <send>
47 <![CDATA[
48 SIP/2.0 180 Ringing
49 [last_Via:]
50 [last_From:]
51 [last_To:];tag=1
52 [last_Call-ID:]
53 [last_CSeq:]
54 Contact: <sip:WRONG_UA@192.168.0.1>
55 ]]>
56 </send>
57
58 <!-- Call leg 2: 180/Ringing with 100rel -->
59 <send retrans="1000">
60 <![CDATA[
61 SIP/2.0 180 Ringing
62 [last_Via:]
63 [last_From:]
64 [last_To:];tag=2
65 [last_Call-ID:]
66 [last_CSeq:]
67 Require: 100rel
68 RSeq: 1
69 Contact: <sip:RIGHT_UA@[local_ip]:[local_port]>
70 ]]>
71 </send>
72
73 <!-- Expect PRACK -->
74 <recv request="PRACK"
75 optional="false"
76 rtd="true"
77 crlf="true">
78 </recv>
79
80 <!-- Send 200/OK to PRACK -->
81 <send>
82 <![CDATA[
83 SIP/2.0 200 OK
84 [last_Via:]
85 [last_From:]
86 [last_To:]
87 [last_Call-ID:]
88 [last_CSeq:]
89 ]]>
90 </send>
91
92 <!-- Send 200/OK to INVITE -->
93 <send retrans="500">
94 <![CDATA[
95 SIP/2.0 200 OK
Benny Prijono7efa2d62009-04-27 12:50:16 +000096 Via: SIP/2.0/UDP 127.0.0.1:5080;received=127.0.0.1;rport=5080;[$3]
Benny Prijono8ba349f2009-04-06 15:41:30 +000097 [last_From:]
98 [last_To:];tag=2
99 [last_Call-ID:]
100 [$4]
101 Contact: <sip:RIGHT_UA@[local_ip]:[local_port]>
102 Content-Type: application/sdp
103
104 v=0
105 o=- 3442013205 3442013205 IN IP4 192.168.0.13
106 s=pjsip
107 c=IN IP4 192.168.0.13
108 t=0 0
109 m=audio 4002 RTP/AVP 0
110 a=rtpmap:0 PCMU/8000
111 ]]>
112 </send>
113
114 <!-- Receive ACK -->
115 <recv request="ACK"
116 optional="false"
117 rtd="true"
118 crlf="true">
119 </recv>
120
121 <!-- Receive BYE -->
122 <recv request="BYE" crlf="true">
123 </recv>
124
125 <!-- Send 200/OK to BYE -->
126 <send>
127 <![CDATA[
128 SIP/2.0 200 OK
129 [last_Via:]
130 [last_From:]
131 [last_To:]
132 [last_Call-ID:]
133 [last_CSeq:]
134 ]]>
135 </send>
136
137
138
139 <!-- Keep the call open for a while in case the 200 is lost to be -->
140 <!-- able to retransmit it if we receive the BYE again. -->
141 <pause milliseconds="4000"/>
142
143
144 <!-- definition of the response time repartition table (unit is ms) -->
145 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
146
147 <!-- definition of the call length repartition table (unit is ms) -->
148 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
149
150</scenario>
151