-
Notifications
You must be signed in to change notification settings - Fork 80
/
uas-mwi.xml
150 lines (116 loc) · 4.29 KB
/
uas-mwi.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
<?xml version="1.0" encoding="iso-8859-2" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="Unsolicited NOTIFY with MWI (message-summary Event)">
<recv request="REGISTER" crlf="true">
<action>
<ereg regexp="<(.*)>;.*" search_in="hdr" header="Contact" assign_to="trash,remote_c"/>
</action>
</recv>
<!-- since SIPp complains about not used variable reference the trach var -->
<Reference variables="trash"/>
<send crlf="true">
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Expires: 3600
Content-Length: 0
]]>
</send>
<nop display=">>>>> received the REGISTER <<<<" crlf="true"/>
<!-- Send unsolicited NOTIFY with MWI info (2 new/8 old messages, 0 new urgent/ 2 old urgent ) -->
<send retrans="500" crlf="true">
<![CDATA[
NOTIFY [$remote_c] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[service]@[local_ip]>;tag=[call_number]
To: <sip:[service]@[local_ip]>
Call-ID: [call_id]
CSeq: [cseq] NOTIFY
Contact: sip:[local_ip]:[local_port]
Max-Forwards: 10
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: [len]
Messages-Waiting: yes
Message-Account: sip:[service]@[local_ip]
Voice-Message: 2/8 (0/2)
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> sent NOTIFY with 2 new/8 old - 0 new urgent/2 old urgent <<<<" crlf="true"/>
<pause milliseconds="10000" />
<!-- Send unsolicited NOTIFY with MWI info: no messages -->
<send retrans="500">
<![CDATA[
NOTIFY [$remote_c] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[service]@[local_ip]>;tag=[call_number]
To: <sip:[service]@[local_ip]>
Call-ID: [call_id]
CSeq: [cseq] NOTIFY
Contact: sip:[local_ip]:[local_port]
Max-Forwards: 10
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: [len]
Messages-Waiting: no
Message-Account: sip:[service]@[local_ip]
Voice-Message: 0/0 (0/0)
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> sent NOTIFY with 0 new/0 old - 0 new urgent/0 old urgent <<<<" crlf="true"/>
<pause milliseconds="10000" />
<!-- Send unsolicited NOTIFY with MWI info (3 new/9 old messages, 1 new urgent/ 1 old urgent ) -->
<send retrans="500">
<![CDATA[
NOTIFY [$remote_c] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[service]@[local_ip]>;tag=[call_number]
To: <sip:[service]@[local_ip]>
Call-ID: [call_id]
CSeq: [cseq] NOTIFY
Contact: sip:[local_ip]:[local_port]
Max-Forwards: 10
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: [len]
Messages-Waiting: yes
Message-Account: sip:[service]@[local_ip]
Voice-Message: 3/9 (1/1)
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> sent NOTIFY with 3 new/9 old - 1 new urgent/1 old urgent <<<<" crlf="true"/>
<pause milliseconds="10000" />
<!-- Send unsolicited NOTIFY with MWI info: no messages -->
<send retrans="500">
<![CDATA[
NOTIFY [$remote_c] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[service]@[local_ip]>;tag=[call_number]
To: <sip:[service]@[local_ip]>
Call-ID: [call_id]
CSeq: [cseq] NOTIFY
Contact: sip:[local_ip]:[local_port]
Max-Forwards: 10
Event: message-summary
Content-Type: application/simple-message-summary
Content-Length: [len]
Messages-Waiting: no
Message-Account: sip:[service]@[local_ip]
Voice-Message: 0/0 (0/0)
]]>
</send>
<recv response="200">
</recv>
<nop display=">>>>> sent NOTIFY with 0 new/0 old - 0 new urgent/0 old urgent <<<<" crlf="true"/>
</scenario>