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

« back to all changes in this revision

Viewing changes to sflphone-common/libs/pjproject/tests/pjsua/scripts-sipp/uas-mwi.xml

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2011-11-25 13:24:12 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111125132412-dc4qvhyosk74cd42
Tags: 1.0.1-4
Don't assume that arch:all packages will get built (closes: #649726)

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