blob: 7bf0664838ee2f7f812000b6d9eff723557ad7b3 [file] [log] [blame]
Tristan Matthews0a329cc2013-07-17 13:20:14 -04001<?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<!-- Late NOTIFY scenario: -->
20<!-- - UAC sends SUBSCRIBE, we reply with 200 -->
21<!-- - we send NOTIFY, expect 200 -->
22<!-- - UAC sends SUBSCRIBE, we ignore -->
23<!-- - we send NOTIFY -->
24<!-- See http://trac.pjsip.org/repos/ticket/911 -->
25<!-- -->
26
27<scenario name="Late NOTIFY">
28 <!-- By adding rrs="true" (Record Route Sets), the route sets -->
29 <!-- are saved and used for following messages sent. Useful to test -->
30 <!-- against stateful SIP proxies/B2BUAs. -->
31 <recv request="SUBSCRIBE" crlf="true">
32 <action>
33 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
34 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
35 <assign assign_to="4" variable="5" />
36 </action>
37 </recv>
38
39
40 <!-- The '[last_*]' keyword is replaced automatically by the -->
41 <!-- specified header if it was present in the last message received -->
42 <!-- (except if it was a retransmission). If the header was not -->
43 <!-- present or if no message has been received, the '[last_*]' -->
44 <!-- keyword is discarded, and all bytes until the end of the line -->
45 <!-- are also discarded. -->
46 <!-- -->
47 <!-- If the specified header was present several times in the -->
48 <!-- message, all occurences are concatenated (CRLF seperated) -->
49 <!-- to be used in place of the '[last_*]' keyword. -->
50
51 <send>
52 <![CDATA[
53
54 SIP/2.0 200 OK
55 [last_Via:]
56 [last_From:]
57 [last_To:];tag=[call_number]
58 [last_Call-ID:]
59 [last_CSeq:]
60 Contact: <sip:sipp@[local_ip]:[local_port]>
61 Content-Length: 0
62 Expires: 60
63 ]]>
64 </send>
65
66 <send retrans="500">
67 <![CDATA[
68 NOTIFY sip:[$5] SIP/2.0
69 Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj01
70 From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
71 To[$3]
72 Call-ID: [call_id]
73 Cseq: 1 NOTIFY
74 Contact: sip:sipp@[local_ip]:[local_port]
75 Max-Forwards: 70
76 Event: presence
77 Subscription-State: active;expires=10
78 Content-Type: application/pidf+xml
79
80 <?xml version="1.0" encoding="UTF-8"?>
81 <presence xmlns="urn:ietf:params:xml:ns:pidf" xmlns:op="urn:oma:xml:prs:pidf:oma-pres" entity="sip:moto_red@ptt.intra.genaker.net">
82 <tuple id="17415d5738f332a64a2f1d8cfb4ab0a5">
83 <status>
84 <basic>open</basic>
85 </status>
86 <op:willingness>
87 <op:basic>closed</op:basic>
88 </op:willingness>
89 <op:barring-state>active</op:barring-state>
90 <op:service-description>
91 <op:service-id>org.openmobilealliance:PoC-session</op:service-id>
92 <op:version>1.0</op:version>
93 </op:service-description>
94 </tuple>
95 </presence>
96 ]]>
97 </send>
98
99 <recv response="200">
100 </recv>
101
102 <recv request="SUBSCRIBE" crlf="true">
103 </recv>
104
105 <!-- UAC sends SUBSCRIBE, we do nothing -->
106 <send>
107 <![CDATA[
108
109 SIP/2.0 408 Timeout Bo
110 [last_Via:]
111 [last_From:]
112 [last_To:];tag=[call_number]
113 [last_Call-ID:]
114 [last_CSeq:]
115 Contact: <sip:sipp@[local_ip]:[local_port]>
116 Content-Length: 0
117 Expires: 60
118 ]]>
119 </send>
120
121
122 <!-- <pause milliseconds="32070"/> -->
123
124 <!-- Now send late NOTIFY -->
125 <send retrans="500">
126 <![CDATA[
127 NOTIFY sip:[$5] SIP/2.0
128 Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj02
129 From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
130 To[$3]
131 Call-ID: [call_id]
132 Cseq: 2 NOTIFY
133 Contact: sip:sipp@[local_ip]:[local_port]
134 Max-Forwards: 70
135 Event: presence
136 Subscription-State: terminated;reason=timeout
137 Content-Length: 0
138 ]]>
139 </send>
140
141 <recv response="481">
142 </recv>
143
144
145 <!-- definition of the response time repartition table (unit is ms) -->
146 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
147
148 <!-- definition of the call length repartition table (unit is ms) -->
149 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
150
151</scenario>
152