Skip to content

Instantly share code, notes, and snippets.

@kennyhlee
Created November 4, 2012 21:09
Show Gist options
  • Save kennyhlee/4013791 to your computer and use it in GitHub Desktop.
Save kennyhlee/4013791 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<!-- act as UAS -->
<!-- wait for invite from UAC/Proxy
1=>180
2=>183
3=>180,183
4=>183,180
5=>180,180
6=>183,183
7=>404
8=>480
9=>486
10=>200,180
cmd: sipp -sf ringtone_loadtest_uas.xml -p 5061 -trace_err -inf message.txt
-->
<scenario name="Ringtone_test_UAS">
<recv request="INVITE" crlf="true">
</recv>
<send>
<![CDATA[
SIP/2.0 183 Session Progress
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
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
a=sendrecv
m=audio [media_port] RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
]]>
</send>
<!-- pause before answer -->
<pause distribution="uniform" min="5000" max="5000"/>
<send retrans="500">
<![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]>
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
a=sendrecv
m=audio [media_port] RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
]]>
</send>
<recv request="ACK"
optional="true"
rtd="true"
crlf="true">
</recv>
<!--- Call Session Established --->
<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>
<pause milliseconds="1" next="12"/>
<label id="11"/>
<recv request="ACK"
optional="true"
timeout="1000"
rtd="true"
crlf="true">
</recv>
<label id="12"/>
<!--pause milliseconds="5000"/-->
<!-- 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment