summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-sipp/uas-register-ip-change.xml
blob: 2c984bedd463c76915d5b7fce619078ae9205d5d (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
138
139
140
141
142
143
144
145
<?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 100 Trying
      [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>

  <pause milliseconds="2000"/>

  <send>
    <![CDATA[
      SIP/2.0 401 Unauthorized
      [last_Via:];received=2.2.2.2;rport=2222
      [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 401 Unauthorized again
      [last_Via:];received=3.3.3.3;rport=3333
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      WWW-Authenticate: digest realm="test", stale=true
      Content-Length: 0
    ]]>
  </send>


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

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

  <!-- IP CHANGE FOR 200/OK -->

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

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

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

  <send>
    <![CDATA[
      SIP/2.0 401 Nasty Unauthorized
      [last_Via:];received=6.6.6.6;rport=6666
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      WWW-Authenticate: digest realm="test", stale=true
      Content-Length: 0
    ]]>
  </send>

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

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

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

  <send>
    <![CDATA[
      SIP/2.0 200 OK
      [last_Via:];received=8.8.8.8;rport=8888
      [last_From:]
      [last_To:];tag=[call_number]
      [last_Call-ID:]
      [last_CSeq:]
      [last_Contact:]
      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>