blob: 0cb26829bd4ac717b2eec8e2016cda4bc8839c64 [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
20<scenario name="SUBSCRIBE tests">
21 <!-- Establish subscription -->
22 <recv request="SUBSCRIBE" crlf="true">
23 <action>
24 <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
25 <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
26 <assign assign_to="4" variable="5" />
27 </action>
28 </recv>
29
30 <send>
31 <![CDATA[
32
33 SIP/2.0 200 OK
34 [last_Via:]
35 [last_From:]
36 [last_To:];tag=[call_number]
37 [last_Call-ID:]
38 [last_CSeq:]
39 Contact: <sip:sipp@[local_ip]:[local_port]>
40 Content-Length: 0
41 Expires: 60
42 ]]>
43 </send>
44
45 <send retrans="500">
46 <![CDATA[
47 NOTIFY sip:[$5] SIP/2.0
48 Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj01
49 From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
50 To[$3]
51 Call-ID: [call_id]
52 Cseq: 1 NOTIFY
53 Contact: sip:sipp@[local_ip]:[local_port]
54 Max-Forwards: 70
55 Event: presence
56 Subscription-State: active;expires=10
57 Content-Type: application/pidf+xml
58
59 <?xml version="1.0" encoding="UTF-8"?>
60 <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">
61 <tuple id="17415d5738f332a64a2f1d8cfb4ab0a5">
62 <status>
63 <basic>open</basic>
64 </status>
65 </tuple>
66 </presence>
67 ]]>
68 </send>
69
70 <recv response="200">
71 </recv>
72
73 <!-- Subscription has been established at this point -->
74
75
76 <!-- *******
77
78 Wait for subscription refresh, reply with 481
79
80 -->
81
82 <recv request="SUBSCRIBE" crlf="true">
83 </recv>
84
85 <send>
86 <![CDATA[
87
88 SIP/2.0 481 You should resubscribe mow
89 [last_Via:]
90 [last_From:]
91 [last_To:];tag=[call_number]
92 [last_Call-ID:]
93 [last_CSeq:]
94 Contact: <sip:sipp@[local_ip]:[local_port]>
95 Content-Length: 0
96 ]]>
97 </send>
98
99
100
101
102 <!-- definition of the response time repartition table (unit is ms) -->
103 <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
104
105 <!-- definition of the call length repartition table (unit is ms) -->
106 <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
107
108</scenario>
109