-
Notifications
You must be signed in to change notification settings - Fork 80
/
uas-blf-recipient.xml
188 lines (159 loc) · 6.19 KB
/
uas-blf-recipient.xml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="BLF NOTIFY">
<!-- Receive the SUBSCRIBE from the UAS -->
<recv request="SUBSCRIBE" crlf="true">
<action>
<!-- extract the SIP URI form the Contact header -->
<!-- The SIP URI is into the uac_uri variable -->
<!-- trash variable contains the whole header -->
<ereg regexp="sip:(.*)>" search_in="hdr" header="Contact" assign_to="trash,uac_uri"/>
</action>
</recv>
<!-- Since SIPp complains about unused variables trash must be referenced -->
<Reference variables="trash"/>
<!-- Accept the SUBSCRIBE -->
<send>
<![CDATA[
SIP/2.0 202 Accepted
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:sipp@[local_ip]:[local_port]>
Content-Length: 0
]]>
</send>
<pause milliseconds="3000"/>
<nop display=">>>>> Accepted <<<<<"/>
<!-- After accepting the subscribe sends the inital state with no dialogs -->
<send retrans="500">
<![CDATA[
NOTIFY sip:[$uac_uri] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
To: "[service]" <sip:[service]@[local_ip]>
[last_Call-ID:]
Cseq: [cseq] NOTIFY
Max-Forwards: 70
Event: dialog
Subscription-State: active
Content-Type: application/dialog-info+xml
Content-Length: [len]
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0" state="full" entity="sip:[service]@[local_ip]"></dialog-info>
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> Initial state <<<<<"/>
<!-- call from 131 to 124 -->
<!-- Monitored extension receives an incoming dialog -->
<pause milliseconds="5000"/>
<send retrans="500">
<![CDATA[
NOTIFY sip:[$uac_uri] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
To: "[service]" <sip:[service]@[local_ip]>;tag=1
[last_Call-ID:]
Cseq: [cseq] NOTIFY
Max-Forwards: 70
Event: dialog
Subscription-State: active
Content-Type: application/dialog-info+xml
Content-Length: [len]
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="1" state="full" entity="sip:[service]@[local_ip]">
<dialog id="XYZ" direction='recipient' call-id='1234' local-tag="abc" remote-tag="def">
<state>early</state>
<local>
<identity display="[local_display]">[local_identity]</identity>
<target uri="[local_uri]"/>
</local>
<remote>
<identity display="[remote_display]">[remote_identity]</identity>
<target uri="[target_uri]"/>
</remote>
</dialog>
</dialog-info>
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> Early state <<<<<"/>
<!-- monitored extension answers the call -->
<pause milliseconds="5000"/>
<send retrans="500">
<![CDATA[
NOTIFY sip:[$uac_uri] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
To: "[service]" <sip:[service]@[local_ip]>;tag=1
[last_Call-ID:]
Cseq: [cseq] NOTIFY
Max-Forwards: 70
Event: dialog
Subscription-State: active
Content-Type: application/dialog-info+xml
Content-Length: [len]
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="2" state="full" entity="sip:[service]@[local_ip]">
<dialog id="XYZ" direction='recipient' call-id='1234' local-tag="abc" remote-tag="def">
<state>confirmed</state>
<local>
<identity display="[local_display]">[local_identity]</identity>
<target uri="[local_uri]"/>
</local>
<remote>
<identity display="[remote_display]">[remote_identity]</identity>
<target uri="[target_uri]"/>
</remote>
</dialog>
</dialog-info>
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> Confirmed state <<<<<"/>
<!-- the monitored extension received the first response (see the remote tag) -->
<pause milliseconds="5000"/>
<send retrans="500">
<![CDATA[
NOTIFY sip:[$uac_uri] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];rport;branch=[branch]
From: sipp <sip:sipp@[local_ip]>;tag=[call_number]
To: "[service]" <sip:[service]@[local_ip]>;tag=1
[last_Call-ID:]
Cseq: [cseq] NOTIFY
Max-Forwards: 70
Event: dialog
Subscription-State: active
Content-Type: application/dialog-info+xml
Content-Length: [len]
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="2" state="full" entity="sip:[service]@[local_ip]">
<dialog id="XYZ" direction='recipient' call-id='1234' local-tag="abc" remote-tag="def">
<state>terminated</state>
<local>
<identity display="[local_display]">[local_identity]</identity>
<target uri="[local_uri]"/>
</local>
<remote>
<identity display="[remote_display]">[remote_identity]</identity>
<target uri="[target_uri]"/>
</remote>
</dialog>
</dialog-info>
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> Terminated state <<<<<"/>
<pause milliseconds="2000"/>
<!-- 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>