blob: 229f7d89d8cb682b14deb05633eb98508090cfc6 [file] [log] [blame]
Benny Prijono7efa2d62009-04-27 12:50:16 +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="hdr"
27 header="Via"
28 assign_to="1,2"/>
29 <assign assign_to="1" variable="2"/>
30 </action>
31 </recv>
32
33 <send>
34 <![CDATA[
35 SIP/2.0 100 Trying
36 [last_Via:]
37 [last_From:]
38 [last_To:];tag=[call_number]
39 [last_Call-ID:]
40 [last_CSeq:]
41 ]]>
42 </send>
43
44 <!-- Call leg 1: 200/OK -->
45 <send>
46 <![CDATA[
47 SIP/2.0 200 OK
48 Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2]
49 [last_From:]
50 [last_To:];tag=UA_1
51 [last_Call-ID:]
52 [last_CSeq:]
53 Contact: <sip:UA_1@[local_ip]:[local_port]>
54 Content-Type: application/sdp
55
56 v=0
57 o=- 3442013205 3442013205 IN IP4 192.168.0.13
58 s=pjsip
59 c=IN IP4 192.168.0.13
60 t=0 0
61 m=audio 4002 RTP/AVP 0
62 a=rtpmap:0 PCMU/8000
63 ]]>
64 </send>
65
66 <!-- Call leg 2: 200/OK -->
67 <send>
68 <![CDATA[
69 SIP/2.0 200 OK
70 Via: SIP/2.0/UDP 127.0.0.1;received=127.0.0.1;rport=5080;branch=[$2]
71 [last_From:]
72 [last_To:];tag=UA_2
73 [last_Call-ID:]
74 [last_CSeq:]
75 Contact: <sip:UA_2@[local_ip]:[local_port]>
76 Content-Type: application/sdp
77
78 v=0
79 o=- 3442013205 3442013205 IN IP4 192.168.0.13
80 s=pjsip
81 c=IN IP4 192.168.0.13
82 t=0 0
83 m=audio 4002 RTP/AVP 0
84 a=rtpmap:0 PCMU/8000
85 ]]>
86 </send>
87
88 <!-- Receive ACK -->
89 <recv request="ACK"
90 optional="false"
91 rtd="true"
92 crlf="true">
93 </recv>
94
95 <!-- Receive BYE -->
96 <recv request="BYE" crlf="true">
97 </recv>
98
99 <!-- Send 200/OK to BYE -->
100 <send>
101 <![CDATA[
102 SIP/2.0 200 OK
103 [last_Via:]
104 [last_From:]
105 [last_To:]
106 [last_Call-ID:]
107 [last_CSeq:]
108 ]]>
109 </send>
110
111
112
113 <!-- Receive ACK -->
114 <recv request="ACK"
115 optional="false"
116 rtd="true"
117 crlf="true">
118 </recv>
119
120 <!-- Receive BYE -->
121 <recv request="BYE" crlf="true">
122 </recv>
123
124 <!-- Send 200/OK to BYE -->
125 <send>
126 <![CDATA[
127 SIP/2.0 200 OK
128 [last_Via:]
129 [last_From:]
130 [last_To:]
131 [last_Call-ID:]
132 [last_CSeq:]
133 ]]>
134 </send>
135
136 <!-- definition of the response time repartition table (unit is ms) -->
137 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
138
139 <!-- definition of the call length repartition table (unit is ms) -->
140 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
141
142</scenario>
143