<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- UAS with multiple reinvite -->
<scenario name="Basic UAS responder">
<recv request="INVITE" crlf="true">
<action>
<ereg regexp=".*" search_in="hdr" header="From" assign_to="remote_from"/>
<ereg regexp=".*sip:([^;@]*)" search_in="hdr" header="Contact:" assign_to="duh,ct"/>
</action>
</recv>
<Reference variables="duh"/>
<send>
<![CDATA[
SIP/2.0 100 trying -- your call is important to us
[last_Via:]
[last_From:]
[last_To:];tag=[pid]SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:]
Content-Length: 0
]]>
</send>
<pause milliseconds="1590"/>
<send>
<![CDATA[
SIP/2.0 183 Session Progress
[last_Via:]
[last_From:]
[last_To:];tag=[pid]SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS
Content-Disposition: session; handling=required
Content-Type: application/sdp
Content-Length: [len]
v=0
o=- 833252837 32403 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 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:20
a=sendrecv
]]>
</send>
<pause milliseconds="10000"/>
<send retrans="500">
<![CDATA[
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[pid]SIPpTag01[call_number]
[last_Call-ID:]
[last_CSeq:]
Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Allow: INVITE,ACK,CANCEL,BYE,REGISTER,REFER,INFO,SUBSCRIBE,NOTIFY,PRACK,UPDATE,OPTIONS
Supported: replaces
Content-Disposition: session; handling=required
Content-Type: application/sdp
Content-Length: [len]
v=0
o=- 833252837 32403 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 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:20
a=sendrecv
]]>
</send>
<recv request="ACK"
optional="false"
rtd="true"
crlf="true">
</recv>
<send retrans="500">
<![CDATA[
INVITE sip:[$ct]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [service] <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
To[$remote_from]
[last_Call-ID:]
CSeq: 31993 INVITE
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Type: application/sdp
Content-Length: [len]
v=0
o=- 833252837 32404 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 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:20
a=sendrecv
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<send>
<![CDATA[
ACK sip:[$ct]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [service] <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
To[$remote_from]
[last_Call-ID:]
CSeq: 31993 ACK
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Max-Forwards: 70
]]>
</send>
<pause milliseconds="100"/>
<send retrans="500">
<![CDATA[
INVITE sip:[$ct]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [service] <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
To[$remote_from]
[last_Call-ID:]
CSeq: 31994 INVITE
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Type: application/sdp
Content-Length: [len]
v=0
o=- 833252837 32405 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 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=maxptime:20
a=sendrecv
]]>
</send>
<recv response="100" optional="true">
</recv>
<recv response="200">
</recv>
<send>
<![CDATA[
ACK sip:[$ct]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port]
From: [service] <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
To[$remote_from]
[last_Call-ID:]
CSeq: 31994 ACK
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Max-Forwards: 70
]]>
</send>
<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: 0
]]>
</send>
<!-- Keep the call open for a while in case the 200 is lost to be -->
<!-- able to retransmit it if we receive the BYE again. -->
<timewait milliseconds="4000"/>
<!-- 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>