-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpfca_uac_apattern_g729.xml
193 lines (155 loc) · 5 KB
/
pfca_uac_apattern_g729.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
189
190
191
192
193
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- UC360 INVITE/200/ACK/BYE/200 sample UAC scenario -->
<scenario name="Basic UC360 UAC">
<send retrans="500">
<![CDATA[
INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: 16001 <sip:16001@[remote_ip]:[remote_port]>;tag=[call_number]
To: <sip:[service]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 10 INVITE
Contact: <sip:16001@[local_ip]:[local_port];transport=[transport]>
Content-Type: application/sdp
Max-Forwards: 70
User-Agent: VIRTUAL Mitel-UC-Endpoint (Mitel UC360 Collaboration Point/2.1.0.99; 08:00:0F:74:80:E1)
Subject: Conference
Session-Expires: 3600;refresher=uas
Min-SE: 90
Supported: 100rel
Require: 100rel
Content-Length: [len]
v=0
o=16001 0 0 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[media_ip_type] [media_ip]
t=0 0
m=audio [media_port] RTP/AVP 18 0 9 103 8 101
a=rtcp:[media_port+1]
a=sendrecv
a=rtpmap:18 G729/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/16000
a=fmtp:9 bitrate=64000
a=rtpmap:103 G7221/16000
a=fmtp:103 bitrate=32000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
]]>
</send>
<recv response="100"
optional="true">
</recv>
<recv response="180">
<action>
<!-- NOTE: Save the 180 Ringing's CSeq header for later reuse -->
<ereg regexp=".*" search_in="hdr" header="CSeq:" check_it="true" assign_to="1" />
<!-- NOTE: Save the 180 Ringing's RSeq header for later reuse -->
<ereg regexp=".*" search_in="hdr" header="RSeq:" check_it="true" assign_to="2" />
</action>
</recv>
<!-- Send PRACK for 180 Ringing -->
<send retrans="500">
<![CDATA[
PRACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: 16001 <sip:16001@[local_ip]:[local_port]>;tag=[call_number]
To: <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 11 PRACK
RAck: [$2][$1]
Contact: <sip:16001@[local_ip]:[local_port];transport=[transport]>
Max-Forwards: 70
Subject: Conference
Content-Length: 0
]]>
</send>
<!-- receive 200 OK / PRACK (180 Ringing) -->
<recv response="200">
</recv>
<!-- receive 200 OK / INVITE -->
<recv response="200">
</recv>
<!-- NOTE: [branch-5] is used to specify reuse of same [branch] value that was used five messages earlier (e.g. INVITE) -->
<send>
<![CDATA[
ACK sip:[service]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-5]
From: "16001" <sip:16001@[remote_ip]:[remote_port]>;tag=[call_number]
To: <sip:[service]@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 10 ACK
Content-Length: 0
]]>
</send>
<nop>
<action>
<exec rtp_stream="apattern,1,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000" />
<nop>
<action>
<exec rtp_stream="pauseapattern"/>
</action>
</nop>
<pause milliseconds="2000"/>
<nop>
<action>
<exec rtp_stream="resumeapattern"/>
</action>
</nop>
<nop>
<action>
<exec rtp_stream="apattern,2,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000"/>
<nop>
<action>
<exec rtp_stream="apattern,3,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000"/>
<nop>
<action>
<exec rtp_stream="apattern,4,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000"/>
<nop>
<action>
<exec rtp_stream="apattern,5,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000"/>
<nop>
<action>
<exec rtp_stream="apattern,6,18,G729/8000" />
</action>
</nop>
<pause milliseconds="2000"/>
<send retrans="500">
<![CDATA[
BYE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch-1]
From: "16001" <sip:16001@[remote_ip]:[remote_port]>;tag=[call_number]
To: <sip:[service]@[remote_ip]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 12 BYE
Contact: <sip:16001@[local_ip]:[local_port];transport=[transport]>
Max-Forwards: 70
Subject: Conference
User-Agent: VIRTUAL Mitel-UC-Endpoint (Mitel UC360 Collaboration Point/2.1.0.99; 08:00:0F:74:80:E1)
Content-Length: 0
]]>
</send>
<recv response="200">
</recv>
<!-- 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>