Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sipp/uas-forked-200.xml

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