You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
239 lines
4.8 KiB
239 lines
4.8 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<scenario name="Sipwise NGCP Benchmark UAS Responder">
|
|
|
|
<recv request="INVITE" crlf="true" rtd="true">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
SIP/2.0 180 Ringing
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:];tag=[pid]SIPpTag01[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Length: 0
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<pause milliseconds="500"/>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:];tag=[pid]SIPpTag01[call_number]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
[last_Record-Route:]
|
|
[last_Route:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Type: application/sdp
|
|
Content-Length: [len]
|
|
|
|
v=0
|
|
o=user1 53655765 2353687637 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 8
|
|
a=rtpmap:8 PCMA/8000
|
|
a=ptime:50
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<recv request="ACK" crlf="true" rtd="true" rrs="true">
|
|
<action>
|
|
<ereg regexp=".*" search_in="hdr" header="From:" assign_to="1" />
|
|
<ereg regexp=".*" search_in="hdr" header="To:" assign_to="2" />
|
|
<ereg regexp="Contact: <(.*)>" search_in="msg" assign_to="3,4" />
|
|
</action>
|
|
</recv>
|
|
|
|
<!-- CALL IS UP -->
|
|
|
|
<pause milliseconds="500"/>
|
|
<nop>
|
|
<action>
|
|
<exec play_pcap_audio="media181sec.pcap"/>
|
|
</action>
|
|
</nop>
|
|
|
|
<!-- PUT CALLER ON HOLD -->
|
|
|
|
<pause milliseconds="500"/>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
INVITE [$4] SIP/2.0
|
|
[last_Via:]
|
|
From: [$2]
|
|
To: [$1]
|
|
[last_Call-ID:]
|
|
[routes]
|
|
CSeq: 5 INVITE
|
|
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
|
|
Max-Forwards: 70
|
|
Content-Type: application/sdp
|
|
Content-Length: [len]
|
|
Test: [$3]
|
|
|
|
v=0
|
|
o=user1 53655766 2353687638 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 8
|
|
a=rtpmap:8 PCMA/8000
|
|
a=ptime:50
|
|
a=sendonly
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<recv response="100" optional="true">
|
|
</recv>
|
|
|
|
<recv response="200" rtd="true" rrs="true" rtd="3">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
ACK [next_url] SIP/2.0
|
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[routes]
|
|
CSeq: 5 ACK
|
|
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
|
|
Max-Forwards: 70
|
|
Content-Length: 0
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<!-- XFER START -->
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
REFER [next_url] SIP/2.0
|
|
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[routes]
|
|
CSeq: 6 REFER
|
|
Contact: sip:[field0 file="caller.csv"]@[local_ip]:[local_port]
|
|
Max-Forwards: 70
|
|
Refer-To: <sip:testuser1004@spce.test>
|
|
Referred-By: <sip:testuser1003@spce.test>
|
|
Content-Length: 0
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<recv response="202">
|
|
</recv>
|
|
|
|
<recv request="INVITE" crlf="true" rtd="true">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
[last_Record-Route:]
|
|
[last_Route:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Type: application/sdp
|
|
Content-Length: [len]
|
|
|
|
v=0
|
|
o=user1 53655765 2353687637 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 8
|
|
a=rtpmap:8 PCMA/8000
|
|
a=ptime:50
|
|
a=recvonly
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<recv request="ACK" crlf="true">
|
|
</recv>
|
|
|
|
<recv request="NOTIFY">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Length: [len]
|
|
]]>
|
|
</send>
|
|
|
|
<recv request="NOTIFY">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Length: [len]
|
|
]]>
|
|
</send>
|
|
|
|
<!-- XFER COMPLETED -->
|
|
|
|
<recv request="BYE">
|
|
</recv>
|
|
|
|
<send>
|
|
<![CDATA[
|
|
|
|
SIP/2.0 200 OK
|
|
[last_Via:]
|
|
[last_From:]
|
|
[last_To:]
|
|
[last_Call-ID:]
|
|
[last_CSeq:]
|
|
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
|
|
Content-Length: [len]
|
|
|
|
]]>
|
|
</send>
|
|
|
|
<ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>
|
|
<CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>
|
|
|
|
</scenario>
|