~ubuntu-branches/ubuntu/trusty/sflphone/trusty

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.0.1/tests/pjsua/scripts-sipp/uas-subscribe-notify-terminate.xml

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2014-01-28 18:23:36 UTC
  • mfrom: (4.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20140128182336-jrsv0k9u6cawc068
Tags: 1.3.0-1
* New upstream release 
  - Fixes "New Upstream Release" (Closes: #735846)
  - Fixes "Ringtone does not stop" (Closes: #727164)
  - Fixes "[sflphone-kde] crash on startup" (Closes: #718178)
  - Fixes "sflphone GUI crashes when call is hung up" (Closes: #736583)
* Build-Depends: ensure GnuTLS 2.6
  - libucommon-dev (>= 6.0.7-1.1), libccrtp-dev (>= 2.0.6-3)
  - Fixes "FTBFS Build-Depends libgnutls{26,28}-dev" (Closes: #722040)
* Fix "boost 1.49 is going away" unversioned Build-Depends: (Closes: #736746)
* Add Build-Depends: libsndfile-dev, nepomuk-core-dev

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
 
<!-- NOTIFY with instant termination:                                   -->
20
 
<!--  - UAC sends SUBSCRIBE, we reply with 200 and Expires=0            -->
21
 
<!--  - we send NOTIFY with state=terminated                            -->
22
 
<!--                                                                    -->
23
 
 
24
 
<scenario name="NOTIFY with instant termination">
25
 
  <!-- By adding rrs="true" (Record Route Sets), the route sets         -->
26
 
  <!-- are saved and used for following messages sent. Useful to test   -->
27
 
  <!-- against stateful SIP proxies/B2BUAs.                             -->
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
 
  <!-- The '[last_*]' keyword is replaced automatically by the          -->
38
 
  <!-- specified header if it was present in the last message received  -->
39
 
  <!-- (except if it was a retransmission). If the header was not       -->
40
 
  <!-- present or if no message has been received, the '[last_*]'       -->
41
 
  <!-- keyword is discarded, and all bytes until the end of the line    -->
42
 
  <!-- are also discarded.                                              -->
43
 
  <!--                                                                  -->
44
 
  <!-- If the specified header was present several times in the         -->
45
 
  <!-- message, all occurences are concatenated (CRLF seperated)        -->
46
 
  <!-- to be used in place of the '[last_*]' keyword.                   -->
47
 
 
48
 
  <send>
49
 
    <![CDATA[
50
 
 
51
 
      SIP/2.0 200 OK
52
 
      [last_Via:]
53
 
      [last_From:]
54
 
      [last_To:];tag=[call_number]
55
 
      [last_Call-ID:]
56
 
      [last_CSeq:]
57
 
      Contact: <sip:sipp@[local_ip]:[local_port]>
58
 
      Content-Length: 0
59
 
      Expires: 0
60
 
    ]]>
61
 
  </send>
62
 
 
63
 
  <send retrans="500">
64
 
    <![CDATA[
65
 
      NOTIFY sip:[$5] SIP/2.0
66
 
      Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=z9hG4bKPj01
67
 
      From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
68
 
      To[$3]
69
 
      Call-ID: [call_id]
70
 
      Cseq: 1 NOTIFY
71
 
      Contact: sip:sipp@[local_ip]:[local_port]
72
 
      Max-Forwards: 70
73
 
      Event: presence
74
 
      Subscription-State: terminated;reason=timeout
75
 
      Content-Type: application/pidf+xml
76
 
 
77
 
      <?xml version="1.0" encoding="UTF-8"?>
78
 
      <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">
79
 
       <tuple id="17415d5738f332a64a2f1d8cfb4ab0a5">
80
 
         <status>
81
 
            <basic>open</basic>
82
 
         </status>
83
 
         <op:willingness>
84
 
            <op:basic>closed</op:basic>
85
 
         </op:willingness>
86
 
         <op:barring-state>active</op:barring-state>
87
 
            <op:service-description>
88
 
              <op:service-id>org.openmobilealliance:PoC-session</op:service-id>
89
 
              <op:version>1.0</op:version>
90
 
            </op:service-description>
91
 
       </tuple>
92
 
      </presence>
93
 
    ]]>
94
 
  </send>
95
 
 
96
 
   <recv response="200">
97
 
   </recv>
98
 
 
99
 
  <pause milliseconds="32000"/>
100
 
 
101
 
  <!-- definition of the response time repartition table (unit is ms)   -->
102
 
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
103
 
 
104
 
  <!-- definition of the call length repartition table (unit is ms)     -->
105
 
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
106
 
 
107
 
</scenario>