blob: 5ff1f996f1b56c1ff6c4aef5aaffbd17b98926ef [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001<?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="UAS answer with multiple formats in early media">
23 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
24 <!-- are saved and used for following messages sent. Useful to test -->
25 <!-- against stateful SIP proxies/B2BUAs. -->
26 <recv request="INVITE" crlf="true">
27 </recv>
28
29 <!-- The '[last_*]' keyword is replaced automatically by the -->
30 <!-- specified header if it was present in the last message received -->
31 <!-- (except if it was a retransmission). If the header was not -->
32 <!-- present or if no message has been received, the '[last_*]' -->
33 <!-- keyword is discarded, and all bytes until the end of the line -->
34 <!-- are also discarded. -->
35 <!-- -->
36 <!-- If the specified header was present several times in the -->
37 <!-- message, all occurences are concatenated (CRLF seperated) -->
38 <!-- to be used in place of the '[last_*]' keyword. -->
39
40 <send>
41 <![CDATA[
42
43 SIP/2.0 180 Ringing
44 [last_Via:]
45 [last_From:]
46 [last_To:];tag=[call_number]
47 [last_Call-ID:]
48 [last_CSeq:]
49 Contact: sip:sipp@[local_ip]:[local_port]
50 Content-Type: application/sdp
51 Content-Length: [len]
52
53 v=0
54 o=- 3441953879 3441953879 IN IP4 192.168.0.15
55 s=pjmedia
56 c=IN IP4 192.168.0.15
57 t=0 0
58 m=audio 4004 RTP/AVP 0 8 3 111
59 a=rtpmap:0 PCMU/8000
60 a=rtpmap:8 PCMA/8000
61 a=rtpmap:3 GSM/8000
62 a=rtpmap:111 telephone-event/8000
63 a=fmtp:111 0-15
64
65 ]]>
66 </send>
67
68 <pause milliseconds="2000"/>
69
70 <send retrans="500">
71 <![CDATA[
72
73 SIP/2.0 200 OK
74 [last_Via:]
75 [last_From:]
76 [last_To:];tag=[call_number]
77 [last_Call-ID:]
78 [last_CSeq:]
79 Contact: sip:sipp@[local_ip]:[local_port]
80 Content-Type: application/sdp
81 Content-Length: [len]
82
83 v=0
84 o=- 3441953879 3441953879 IN IP4 192.168.0.15
85 s=pjmedia
86 c=IN IP4 192.168.0.15
87 t=0 0
88 m=audio 4004 RTP/AVP 0 8 3 111
89 a=rtpmap:0 PCMU/8000
90 a=rtpmap:8 PCMA/8000
91 a=rtpmap:3 GSM/8000
92 a=rtpmap:111 telephone-event/8000
93 a=fmtp:111 0-15
94
95 ]]>
96 </send>
97
98 <recv request="ACK" crlf="true">
99 </recv>
100
101
102
103 <recv request="INVITE" crlf="true">
104 <action>
105 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
106 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
107 <assign assign_to="4" variable="5" />
108 </action>
109 </recv>
110
111 <send retrans="500">
112 <![CDATA[
113
114 SIP/2.0 200 OK
115 [last_Via:]
116 [last_From:]
117 [last_To:];tag=[call_number]
118 [last_Call-ID:]
119 [last_CSeq:]
120 Contact: sip:sipp@[local_ip]:[local_port]
121 Content-Type: application/sdp
122 Content-Length: [len]
123
124 v=0
125 o=- 3441953879 3441953879 IN IP4 192.168.0.15
126 s=pjmedia
127 c=IN IP4 192.168.0.15
128 t=0 0
129 m=audio 4004 RTP/AVP 0 111
130 a=rtpmap:0 PCMU/8000
131 a=rtpmap:111 telephone-event/8000
132 a=fmtp:111 0-15
133
134 ]]>
135 </send>
136
137 <recv request="ACK" crlf="true">
138 </recv>
139
140
141 <pause milliseconds="2000"/>
142
143
144 <send retrans="500">
145 <![CDATA[
146
147 BYE sip:[$5] SIP/2.0
148 Via: SIP/2.0/[transport] [local_ip]:[local_port]
149 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
150 To[$3]
151 Call-ID: [call_id]
152 Cseq: 1 BYE
153 Contact: sip:sipp@[local_ip]:[local_port]
154 Max-Forwards: 70
155 Content-Length: 0
156
157 ]]>
158 </send>
159
160 <recv response="200">
161 </recv>
162
163
164 <!-- definition of the response time repartition table (unit is ms) -->
165 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
166
167 <!-- definition of the call length repartition table (unit is ms) -->
168 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
169
170</scenario>
171