summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-sipp/uas-register-ip-change.xml
blob: c663c7470e93d3537369b2ed6d4d4f2631fed1e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="Basic UAS responder">
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 401 Unauthorized
      [last_Via:];received=1.1.1.1;rport=1111
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      WWW-Authenticate: digest realm="test"
      Content-Length: 0
    ]]>
  </send>

  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=1.1.1.1;rport=1111
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Content-Length: 0
    ]]>
  </send>

  <!-- REREGISTER -->
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=1.1.1.1;rport=1111
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Subject: Reregister due to IP change, this has two Contacts
      Content-Length: 0
    ]]>
  </send>


  <!-- REFRESH, GOT IP CHANGE AGAIN -->
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=2.2.2.2;rport=2222
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Subject: Refresh, got IP change again
      Content-Length: 0
    ]]>
  </send>


  <!-- REREGISTER -->
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=2.2.2.2;rport=2222
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Subject: Reregister due to IP change to 2.2.2.2, this has two Contacts
      Content-Length: 0
    ]]>
  </send>


  <!-- WHATEVER -->
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=2.2.2.2;rport=2222
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Subject: Whatever 1
      Content-Length: 0
    ]]>
  </send>

  <!-- WHATEVER -->
  <recv request="REGISTER" crlf="true">
  </recv>

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=2.2.2.2;rport=2222
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      Subject: Whatever 2
      Content-Length: 0
    ]]>
  </send>

  <!-- definition of the response time repartition table (unit is ms)   -->
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>

  <!-- definition of the call length repartition table (unit is ms)     -->
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>

</scenario>