~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.2.1/tests/pjsua/scripts-sipp/uas-mwi.xml

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
20
<scenario name="MWI server">
 
21
  <recv request="SUBSCRIBE" crlf="true">
 
22
    <action>
 
23
        <ereg regexp=".*" search_in="hdr" header="From" assign_to="3"/>
 
24
        <ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="4,5"/>
 
25
        <assign assign_to="4" variable="5" />
 
26
    </action>
 
27
  </recv>
 
28
 
 
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: 600
 
42
    ]]>
 
43
  </send>
 
44
 
 
45
  <!-- initial notify -->
 
46
  <send retrans="500">
 
47
    <![CDATA[
 
48
      NOTIFY sip:[$5] SIP/2.0
 
49
      Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
 
50
      From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
 
51
      To[$3]
 
52
      Call-ID: [call_id]
 
53
      Cseq: 1 NOTIFY
 
54
      Contact: sip:sipp@[local_ip]:[local_port]
 
55
      Max-Forwards: 70
 
56
      Event: message-summary
 
57
      Subscription-State: active;expires=50
 
58
      Content-Type: application/simple-message-summary
 
59
      Content-Length: [len]
 
60
 
 
61
      Messages-Waiting: yes
 
62
      Voice-Message: 4/8 (1/2)
 
63
 
 
64
    ]]>
 
65
  </send>
 
66
 
 
67
   <recv response="200">
 
68
   </recv>
 
69
 
 
70
  <pause milliseconds="2000"/> 
 
71
 
 
72
 
 
73
  <!-- terminate subscription -->
 
74
  <send retrans="500">
 
75
    <![CDATA[
 
76
      NOTIFY sip:[$5] SIP/2.0
 
77
      Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
 
78
      From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
 
79
      To[$3]
 
80
      Call-ID: [call_id]
 
81
      Cseq: 2 NOTIFY
 
82
      Contact: sip:sipp@[local_ip]:[local_port]
 
83
      Max-Forwards: 70
 
84
      Event: message-summary
 
85
      Subscription-State: terminated;reason=noresource
 
86
      Content-Type: application/simple-message-summary
 
87
      Content-Length: [len]
 
88
 
 
89
      Messages-Waiting: yes
 
90
      Voice-Message: 4/8 (1/2)
 
91
 
 
92
    ]]>
 
93
  </send>
 
94
 
 
95
   <recv response="200">
 
96
   </recv>
 
97
 
 
98
  <!-- definition of the response time repartition table (unit is ms)   -->
 
99
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
 
100
 
 
101
  <!-- definition of the call length repartition table (unit is ms)     -->
 
102
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
 
103
 
 
104
</scenario>
 
105