Hello all,
I am testing the following UAC scenario. Since the server sends an
options timer every 2 min, and UAC needs to be responding with 200 OK. In my
scenario the user can provide the duration of the call to be 1min and 30
seconds or 2 min or 2min 30 seconds or more. The idea here is that if the
duration of the call is more that the options timer , UAC should wait until
it receives the options timer, reply and then pause for the remaining
seconds.
Scenario:
=======
I get the duration in a variable dur = x seconds, then I divide x by
120000ms and store the Remainder in Duration seconds to be paused and
Quotient in an injection file in field5.
If the quotient is 0 then it would pause for the duration specified as the
duration is less that 2 min. Now when the duration is greater than 2 min
(eg 3 min) the UAC should respond to the options timer with 200 OK and then
pause for the ramainder duration and then exit. If the duration is 5 min
then the options should be sent twice.
When I run this scenario with duration 150 seconds , the call is paused for
30 seconds and released.
I am pasting the UAC scenario with this file can you please let me know what
may be wrong with the scenario.
INVITE ---------->
[ NOP ] => <assignstr assign_to="1" value="[field5]"/>
100 <----------
180 <----------
200 <---------- E-RTD1
[ NOP ] => <test assign_to="2" variable="1" compare ="equal"
value="0"/>
ACK ----------> <send next="11" test="2">
<label id="12"/>
OPTIONS <----------
[ NOP ] => <subtract assign_to="1" value="1"/>
[ NOP ] => <test assign_to="3" variable="1"
compare="greater_than" value="0"/>
200 ----------> <send next="12" test="3">
<label id="11"/>
PAUSE y ms
BYE ---------->
200 <----------
I would really appreciate if somebody could help me in this regard, Thanks
in advance,
Niven.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="UAC Load Test">
<send retrans="500">
<![CDATA[
INVITE sip:[EMAIL PROTECTED]:[field4] SIP/2.0
Via: SIP/2.0/[transport] [field3]:[local_port];branch=[branch]
From:
[field1]<sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag09[call_number]
To: sut <sip:[EMAIL PROTECTED]:[field4]>
Call-ID: [call_id]
CSeq: 1 INVITE
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: [len]
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[local_ip_type] [local_ip]
t=0 0
m=audio [auto_media_port] RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
]]>
</send>
<nop>
<action>
<!-- Assign the value in field0 of the CSV file to a $1. -->
<assignstr assign_to="1" value="[field5]" />
<log message="value of variable is 1 is : [$1]"/>
</action>
</nop>
<recv response="100" optional="true">
</recv>
<recv response="180" optional="true">
</recv>
<recv response="200" rtd="true" crlf="true">
</recv>
<nop>
<action>
<test assign_to="2" variable="1" compare="equal" value="0"/>
</action>
</nop>
<send next="11" test="2">
<![CDATA[
ACK sip:[EMAIL PROTECTED]:[field4] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1]
<sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag09[call_number]
To: sut <sip:[EMAIL PROTECTED]:[field4]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 1 ACK
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<label id="12"/>
<recv request="OPTIONS" crlf="true">
</recv>
<nop>
<action>
<!-- Subtract the value in $1. -->
<subtract assign_to="1" value="1" />
</action>
</nop>
<nop>
<action>
<test assign_to="3" variable="1" compare="greater_than" value="0"/>
</action>
</nop>
<send retrans="500" next="12" test="3">
<![CDATA[
SIP/2.0 200 OK
[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-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 [auto_media_port] RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
]]>
</send>
<label id="11" />
<!-- The 'crlf' option inserts a blank line in the statistics report. -->
<send retrans="500">
<![CDATA[
BYE sip:[EMAIL PROTECTED]:[field4] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: [field1]
<sip:[EMAIL PROTECTED]:[local_port]>;tag=[pid]SIPpTag09[call_number]
To: sut <sip:[EMAIL PROTECTED]:[field4]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 BYE
Contact: sip:[EMAIL PROTECTED]:[local_port]
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0
]]>
</send>
<recv response="200" crlf="true">
</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>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users