blob: a855209f642942ed23fec95ea22c310a5a3289e7 [file] [log] [blame]
Benny Prijono1f6331a2009-04-06 15:04:48 +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="Strict route test">
23 <recv request="INVITE" crlf="true">
24 </recv>
25
26 <send>
27 <![CDATA[
28
29 SIP/2.0 100 Trying
30 [last_Via:]
31 [last_From:]
32 [last_To:];tag=[call_number]
33 [last_Call-ID:]
34 [last_CSeq:]
35 ]]>
36 </send>
37
38 <send retrans="500">
39 <![CDATA[
40
41 SIP/2.0 407 Proxy Authenticate
42 [last_Via:]
43 [last_From:]
44 [last_To:];tag=[call_number]
45 [last_Call-ID:]
46 [last_CSeq:]
47 Proxy-Authenticate: DIGEST realm="test", nonce="12345", algorithm=MD5
48 ]]>
49 </send>
50
51 <recv request="ACK"
52 optional="false"
53 rtd="true"
54 crlf="true">
55 </recv>
56
57 <recv request="INVITE" crlf="true">
58 </recv>
59
60 <send>
61 <![CDATA[
62 SIP/2.0 100 Trying
63 [last_Via:]
64 [last_From:]
65 [last_To:];tag=[call_number]
66 [last_Call-ID:]
67 [last_CSeq:]
68 ]]>
69 </send>
70
71 <send>
72 <![CDATA[
73 SIP/2.0 180 Ringing
74 [last_Via:]
75 [last_From:]
76 [last_To:];tag=[call_number]
77 [last_Call-ID:]
78 [last_CSeq:]
79 ]]>
80 </send>
81
82 <send>
83 <![CDATA[
84
85 SIP/2.0 183 progress
86 [last_Via:]
87 [last_From:]
88 [last_To:];tag=[call_number]
89 [last_Call-ID:]
90 [last_CSeq:]
91 Contact: <sip:target@192.168.0.13>
92 Record-route: <sip:proxy@192.168.0.13>
93 Content-Type: application/sdp
94
95 v=0
96 o=- 3442013205 3442013205 IN IP4 192.168.0.13
97 s=pjsip
98 c=IN IP4 192.168.0.13
99 t=0 0
100 m=audio 4002 RTP/AVP 0
101 a=rtpmap:0 PCMU/8000
102 ]]>
103 </send>
104
105 <send retrans="500">
106 <![CDATA[
107
108 SIP/2.0 200 OK
109 [last_Via:]
110 [last_From:]
111 [last_To:];tag=[call_number]
112 [last_Call-ID:]
113 [last_CSeq:]
114 Contact: <sip:target@192.168.0.13>
115 Record-route: <sip:proxy@192.168.0.13;maddr=192.168.0.13>
116 Content-Type: application/sdp
117
118 v=0
119 o=- 3442013205 3442013205 IN IP4 192.168.0.13
120 s=pjsip
121 c=IN IP4 192.168.0.13
122 t=0 0
123 m=audio 4002 RTP/AVP 0
124 a=rtpmap:0 PCMU/8000
125 ]]>
126 </send>
127
128 <recv request="ACK"
129 optional="false"
130 rtd="true"
131 crlf="true">
132 </recv>
133
134 <send>
135 <![CDATA[
136
137 SIP/2.0 200 OK
138 [last_Via:]
139 [last_From:]
140 [last_To:];tag=[call_number]
141 [last_Call-ID:]
142 [last_CSeq:]
143 Contact: <sip:target@192.168.0.13>
144 Record-route: <sip:proxy@192.168.0.13;maddr=192.168.0.13>
145 Content-Type: application/sdp
146
147 v=0
148 o=- 3442013205 3442013205 IN IP4 192.168.0.13
149 s=pjsip
150 c=IN IP4 192.168.0.13
151 t=0 0
152 m=audio 4002 RTP/AVP 0
153 a=rtpmap:0 PCMU/8000
154 ]]>
155 </send>
156
157 <recv request="ACK"
158 optional="false"
159 rtd="true"
160 crlf="true">
161 </recv>
162
163 <recv request="BYE" crlf="true">
164 </recv>
165
166 <send>
167 <![CDATA[
168 SIP/2.0 200 OK
169 [last_Via:]
170 [last_From:]
171 [last_To:];tag=[call_number]
172 [last_Call-ID:]
173 [last_CSeq:]
174 ]]>
175 </send>
176
177
178 <!-- Keep the call open for a while in case the 200 is lost to be -->
179 <!-- able to retransmit it if we receive the BYE again. -->
180 <pause milliseconds="4000"/>
181
182
183 <!-- definition of the response time repartition table (unit is ms) -->
184 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
185
186 <!-- definition of the call length repartition table (unit is ms) -->
187 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
188
189</scenario>
190