blob: 60c65f73e5d766329fa17fb6310c1683633613e2 [file] [log] [blame]
Benny Prijono964bbf62010-12-02 10:13:46 +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="Offer answer glare (#1166)">
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
27 <recv request="INVITE" crlf="true">
28 <action>
29 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
30 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
31 <assign assign_to="4" variable="5" />
32 </action>
33 </recv>
34
35 <send retrans="500">
36 <![CDATA[
37
38 SIP/2.0 200 OK
39 [last_Via:]
40 [last_From:]
41 [last_To:];tag=[call_number]
42 [last_Call-ID:]
43 [last_CSeq:]
44 Contact: sip:sipp@[local_ip]:[local_port]
45 Content-Type: application/sdp
46 Content-Length: [len]
47
48 v=0
49 o=- 1 1 IN IP4 192.168.0.15
50 s=pjmedia
51 c=IN IP4 192.168.0.15
52 t=0 0
53 m=audio 4004 RTP/AVP 0
54
55 ]]>
56 </send>
57
58 <recv request="ACK" crlf="true">
59 </recv>
60
61 <recv request="UPDATE" crlf="true">
62 <action>
63 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
64 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
65 <assign assign_to="4" variable="5" />
66 <ereg regexp=".*" search_in="hdr" header="Via" assign_to="6"/>
67 <ereg regexp=".*" search_in="hdr" header="CSeq" assign_to="7"/>
68 </action>
69 </recv>
70
71 <send retrans="500">
72 <![CDATA[
73
74 INVITE sip:[$5] SIP/2.0
75 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
76 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
77 To[$3]
78 Call-ID: [call_id]
79 Cseq: 1 INVITE
80 Contact: sip:sipp@[local_ip]:[local_port]
81 Max-Forwards: 70
82 Content-Type: application/sdp
83 Content-Length: [len]
84
85 v=0
86 o=- 2 2 IN IP4 192.168.0.15
87 s=pjmedia
88 c=IN IP4 192.168.0.15
89 t=0 0
90 m=audio 4004 RTP/AVP 0
91
92 ]]>
93 </send>
94
95 <recv response="491" rtd="true">
96 </recv>
97
98 <send>
99 <![CDATA[
100
101 ACK sip:[$5] SIP/2.0
102 Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
103 From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
104 To[$3]
105 Call-ID: [call_id]
106 Cseq: 1 INVITE
107 Contact: sip:sipp@[local_ip]:[local_port]
108 Max-Forwards: 70
109 Content-Length: 0
110
111 ]]>
112 </send>
113
114
115 <send>
116 <![CDATA[
117
118 SIP/2.0 200 OK
119 Via[$6]
120 [last_From:]
121 [last_To:];tag=[call_number]
122 [last_Call-ID:]
123 CSeq[$7]
124 Contact: sip:sipp@[local_ip]:[local_port]
125 Content-Type: application/sdp
126 Content-Length: [len]
127 Allow: INVITE, UPDATE, ACK, BYE
128
129 v=0
130 o=- 3441953879 3441953879 IN IP4 192.168.0.15
131 s=pjmedia
132 c=IN IP4 192.168.0.15
133 t=0 0
134 m=audio 4004 RTP/AVP 0 111
135 a=rtpmap:0 PCMU/8000
136 a=rtpmap:111 telephone-event/8000
137 a=fmtp:111 0-15
138
139 ]]>
140 </send>
141 <!-- Keep the call open for a while in case the 200 is lost to be -->
142 <!-- able to retransmit it if we receive the BYE again. -->
143 <pause milliseconds="4000"/>
144
145
146 <!-- definition of the response time repartition table (unit is ms) -->
147 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
148
149 <!-- definition of the call length repartition table (unit is ms) -->
150 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
151
152</scenario>
153