Ticket #1992: uas-reinv2.xml

File uas-reinv2.xml, 4.1 KB (added by ming, 2 years ago)
Line 
1<?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="Sending re-INVITE and ACK (with same branch) without SDP (#1045)">
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:]
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=- 3441953879 3441953879 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      a=rtpmap:96 telephone-event/8000
55      a=fmtp:96 0-16
56
57    ]]>
58  </send>
59
60  <recv request="ACK" crlf="true">
61  </recv>
62
63  <pause milliseconds="2000"/>
64
65  <send retrans="500">
66    <![CDATA[
67
68      INVITE sip:[$5] SIP/2.0
69      Via: SIP/2.0/[transport] [local_ip]:[local_port]
70      From: sipp  <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
71      To[$3]
72      Call-ID: [call_id]
73      Cseq: 2 INVITE
74      Max-Forwards: 70
75      Content-Type: application/sdp
76      Content-Length: [len]
77       
78      v=0
79      o=- 3441953879 3441953879 IN IP4 192.168.0.15
80      s=pjmedia
81      c=IN IP4 192.168.0.15
82      t=0 0
83      m=audio 4000 RTP/AVP 0 96
84      a=rtpmap:0 PCMU/8000
85      a=rtpmap:96 telephone-event/8000
86      a=sendonly
87
88    ]]>
89  </send>
90
91  <recv response="100"
92        optional="true">
93  </recv>
94
95  <recv response="180" optional="true">
96  </recv>
97
98  <recv response="200" rtd="true">
99  </recv>
100
101  <pause milliseconds="1000"/>
102
103  <send retrans="500">
104    <![CDATA[
105
106      INVITE sip:[$5] SIP/2.0
107      Via: SIP/2.0/[transport] [local_ip]:[local_port]
108      From: sipp  <sip:sipp@[local_ip]:[local_port]>;tag=[call_number]
109      To[$3]
110      Call-ID: [call_id]
111      Cseq: 3 INVITE
112      Max-Forwards: 70
113      Content-Type: application/sdp
114      Content-Length: [len]
115       
116      v=0
117      o=- 3441953879 3441953879 IN IP4 192.168.0.15
118      s=pjmedia
119      c=IN IP4 192.168.0.15
120      t=0 0
121      m=audio 4000 RTP/AVP 0 96
122      a=rtpmap:0 PCMU/8000
123      a=rtpmap:96 telephone-event/8000
124      a=sendonly
125
126    ]]>
127  </send>
128
129  <!-- definition of the response time repartition table (unit is ms)   -->
130  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
131
132  <!-- definition of the call length repartition table (unit is ms)     -->
133  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
134
135</scenario>
136