~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/test/sippxml/test_1.xml

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

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
<!--                 Sipp default 'uas' scenario.                       -->
 
20
<!--                                                                    -->
 
21
 
 
22
<scenario name="UAS responder put on hold then hungup">
 
23
  
 
24
  <!-- This scenario implies a second call made by the uac which implies -->
 
25
  <!-- This call to be put on hold automatically                         -->
 
26
 
 
27
  <recv request="INVITE" crlf="true">
 
28
  </recv>
 
29
 
 
30
  <send>
 
31
    <![CDATA[
 
32
 
 
33
      SIP/2.0 180 Ringing
 
34
      [last_Via:]
 
35
      [last_From:]
 
36
      [last_To:];tag=[pid]SIPpTag01[call_number]
 
37
      [last_Call-ID:]
 
38
      [last_CSeq:]
 
39
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
 
40
      Content-Length: 0
 
41
 
 
42
    ]]>
 
43
  </send>
 
44
 
 
45
  <send retrans="500">
 
46
    <![CDATA[
 
47
 
 
48
      SIP/2.0 200 OK
 
49
      [last_Via:]
 
50
      [last_From:]
 
51
      [last_To:];tag=[pid]SIPpTag01[call_number]
 
52
      [last_Call-ID:]
 
53
      [last_CSeq:]
 
54
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
 
55
      Content-Type: application/sdp
 
56
      Content-Length: [len]
 
57
 
 
58
      v=0
 
59
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
 
60
      s=-
 
61
      c=IN IP[media_ip_type] [media_ip]
 
62
      t=0 0
 
63
      m=audio [media_port] RTP/AVP 0
 
64
      a=rtpmap:0 PCMU/8000
 
65
 
 
66
    ]]>
 
67
  </send>
 
68
 
 
69
  <recv request="ACK"
 
70
        optional="true"
 
71
        rtd="true"
 
72
        crlf="true">
 
73
  </recv>
 
74
 
 
75
 
 
76
  <!-- Here process a second invite with updated sdp, this call is placed on HOLD -->
 
77
  <!-- TODO: parse in sdp: Media Attribute (a): sendonly -->
 
78
  <recv request="INVITE" crlf="true">
 
79
  </recv>
 
80
 
 
81
  <send>
 
82
    <![CDATA[
 
83
 
 
84
      SIP/2.0 100 Trying
 
85
      [last_Via:]
 
86
      [last_From:]
 
87
      [last_To:];tag=[pid]SIPpTag01[call_number]
 
88
      [last_Call-ID:]
 
89
      [last_CSeq:]
 
90
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
 
91
      Content-Length: 0
 
92
 
 
93
    ]]>
 
94
  </send>
 
95
 
 
96
  <send retrans="500">
 
97
    <![CDATA[
 
98
 
 
99
      SIP/2.0 200 OK
 
100
      [last_Via:]
 
101
      [last_From:]
 
102
      [last_To:];tag=[pid]SIPpTag01[call_number]
 
103
      [last_Call-ID:]
 
104
      [last_CSeq:]
 
105
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
 
106
      Content-Type: application/sdp
 
107
      Content-Length: [len]
 
108
 
 
109
      v=0
 
110
      o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
 
111
      s=-
 
112
      c=IN IP[media_ip_type] [media_ip]
 
113
      t=0 0
 
114
      m=audio [media_port] RTP/AVP 0
 
115
      a=rtpmap:0 PCMU/8000
 
116
 
 
117
    ]]>
 
118
  </send>
 
119
 
 
120
  <recv request="ACK"
 
121
        optional="true"
 
122
        rtd="true"
 
123
        crlf="true">
 
124
  </recv>
 
125
 
 
126
  <!-- expect to be hung up immediately -->
 
127
  <recv request="BYE">
 
128
  </recv>
 
129
 
 
130
  <send>
 
131
    <![CDATA[
 
132
 
 
133
      SIP/2.0 200 OK
 
134
      [last_Via:]
 
135
      [last_From:]
 
136
      [last_To:]
 
137
      [last_Call-ID:]
 
138
      [last_CSeq:]
 
139
      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
 
140
      Content-Length: 0
 
141
 
 
142
    ]]>
 
143
  </send>
 
144
 
 
145
  <!-- Keep the call open for a while in case the 200 is lost to be     -->
 
146
  <!-- able to retransmit it if we receive the BYE again.               -->
 
147
  <timewait milliseconds="4000"/>
 
148
 
 
149
 
 
150
  <!-- definition of the response time repartition table (unit is ms)   -->
 
151
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
 
152
 
 
153
  <!-- definition of the call length repartition table (unit is ms)     -->
 
154
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
 
155
 
 
156
</scenario>
 
157