blob: 860538147fcbda2f5ffdb69b84694b843314e499 [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 multiple formats, UAS supports UPDATE method">
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 <action>
28 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
29 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
30 <assign assign_to="4" variable="5" />
31 </action>
32 </recv>
33
34 <!-- The '[last_*]' keyword is replaced automatically by the -->
35 <!-- specified header if it was present in the last message received -->
36 <!-- (except if it was a retransmission). If the header was not -->
37 <!-- present or if no message has been received, the '[last_*]' -->
38 <!-- keyword is discarded, and all bytes until the end of the line -->
39 <!-- are also discarded. -->
40 <!-- -->
41 <!-- If the specified header was present several times in the -->
42 <!-- message, all occurences are concatenated (CRLF seperated) -->
43 <!-- to be used in place of the '[last_*]' keyword. -->
44
45 <send retrans="500">
46 <![CDATA[
47
48 SIP/2.0 200 OK
49 [last_Via:]
50 [last_From:]
51 [last_To:];tag=[call_number]
52 [last_Call-ID:]
53 [last_CSeq:]
54 Contact: sip:sipp@[local_ip]:[local_port]
55 Content-Type: application/sdp
56 Content-Length: [len]
57 Allow: INVITE, UPDATE, ACK, BYE
58
59 v=0
60 o=- 3441953879 3441953879 IN IP4 192.168.0.15
61 s=pjmedia
62 c=IN IP4 192.168.0.15
63 t=0 0
64 m=audio 4004 RTP/AVP 0 8 3 111
65 a=rtpmap:0 PCMU/8000
66 a=rtpmap:8 PCMA/8000
67 a=rtpmap:3 GSM/8000
68 a=rtpmap:111 telephone-event/8000
69 a=fmtp:111 0-15
70
71 ]]>
72 </send>
73
74 <recv request="ACK" crlf="true">
75 </recv>
76
77
78
79 <recv request="UPDATE" crlf="true">
80 </recv>
81
82 <send>
83 <![CDATA[
84
85 SIP/2.0 200 OK
86 [last_Via:]
87 [last_From:]
88 [last_To:];tag=[call_number]
89 [last_Call-ID:]
90 [last_CSeq:]
91 Contact: sip:sipp@[local_ip]:[local_port]
92 Content-Type: application/sdp
93 Content-Length: [len]
94 Allow: INVITE, UPDATE, ACK, BYE
95
96 v=0
97 o=- 3441953879 3441953879 IN IP4 192.168.0.15
98 s=pjmedia
99 c=IN IP4 192.168.0.15
100 t=0 0
101 m=audio 4004 RTP/AVP 0 111
102 a=rtpmap:0 PCMU/8000
103 a=rtpmap:111 telephone-event/8000
104 a=fmtp:111 0-15
105
106 ]]>
107 </send>
108
109 <pause milliseconds="2000"/>
110
111 <send retrans="500">
112 <![CDATA[
113
114 BYE sip:[$5] SIP/2.0
115 Via: SIP/2.0/[transport] [local_ip]:[local_port]
116 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
117 To[$3]
118 Call-ID: [call_id]
119 Cseq: 1 BYE
120 Contact: sip:sipp@[local_ip]:[local_port]
121 Max-Forwards: 70
122 Content-Length: 0
123
124 ]]>
125 </send>
126
127 <recv response="200">
128 </recv>
129
130
131 <!-- definition of the response time repartition table (unit is ms) -->
132 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
133
134 <!-- definition of the call length repartition table (unit is ms) -->
135 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
136
137</scenario>
138