blob: 6debd134c927350276b43058850d1ea2b494aa6d [file] [log] [blame]
Alexandre Lision67916dd2014-01-24 13:33:04 -05001<?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<!-- -->
20
21<scenario name="Authorization retry after 1xx response test">
22 <!-- Wait for INVITE request -->
23 <recv request="INVITE" crlf="true">
24 </recv>
25
26 <!-- Send 100 Trying -->
27 <send>
28 <![CDATA[
29
30 SIP/2.0 100 Trying
31 [last_Via:]
32 [last_From:]
33 [last_To:]
34 [last_Call-ID:]
35 [last_CSeq:]
36 ]]>
37 </send>
38
39 <!-- Send 180 Ringing (with tag) -->
40 <send>
41 <![CDATA[
42
43 SIP/2.0 180 Ringing
44 [last_Via:]
45 [last_From:]
46 [last_To:];tag=[call_number]
47 [last_Call-ID:]
48 [last_CSeq:]
49 ]]>
50 </send>
51
52 <!-- Send 401 Unauthorized -->
53 <send retrans="500">
54 <![CDATA[
55
56 SIP/2.0 401 Unauthorized
57 [last_Via:]
58 [last_From:]
59 [last_To:];tag=[call_number]
60 [last_Call-ID:]
61 [last_CSeq:]
62 WWW-Authenticate: Digest realm="sipp", nonce="1234"
63 Content-Length: 0
64 ]]>
65 </send>
66
67 <!-- Wait for ACK -->
68 <recv request="ACK"
69 optional="false"
70 rtd="true"
71 crlf="true">
72 </recv>
73
74 <!-- Wait for INVITE retransmission -->
75 <recv request="INVITE" crlf="true">
76 </recv>
77
78 <!-- Send 500 Test Success to terminate the call -->
79 <send retrans="500">
80 <![CDATA[
81
82 SIP/2.0 500 Test Success
83 [last_Via:]
84 [last_From:]
85 [last_To:];tag=[call_number]
86 [last_Call-ID:]
87 [last_CSeq:]
88 Content-Length: 0
89 ]]>
90 </send>
91
92 <!-- Wait for ACK -->
93 <recv request="ACK"
94 optional="false"
95 rtd="true"
96 crlf="true">
97 </recv>
98
99 <!-- definition of the response time repartition table (unit is ms) -->
100 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
101
102 <!-- definition of the call length repartition table (unit is ms) -->
103 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
104
105</scenario>
106