Hi community,
Does anyone know if it is possible to randomly preform a pre-emptive
conditional branch?
For example, the provided "branchc.xml" scenario first sends a SIP
message then prefoms a conditional branch. It seems that SIPp can ONLY
preform a conditional branch AFTER it has sent (or received) message,
for example ONLY AFTER <send> or <recv>.
How can I preform a pre-emptive conditional branch?
For example I want to send a large (content body) SIP MESSAGE 30% of
the time and a small SIP MESSAGE 70% of the time. How can this be
done?
Cheers,
Simon
Here is my scenario file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">
<scenario name="AS Send a Basic Message">
<nop>
<action>
<test assign_to="1" chance="0.70" />
</action>
</nop>
WHAT TO DO HERE????????????????????????????
<label id="1" />
<!-- In client mode (sipp placing calls), the Call-ID MUST be
generated by sipp. To do so, use [call_id] keyword. -->
<send retrans="500" start_rtd="true">
<![CDATA[
MESSAGE sip:[EMAIL PROTECTED] SIP/2.0
To: [field3] <sip:[EMAIL PROTECTED]>
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
Call-ID: [call_id]
CSeq: [cseq] MESSAGE
Max-Forwards: 69
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: <sip:172.23.195.186:7070;lr>
Contact: [field0] <sip:[EMAIL PROTECTED]:[local_port]>
Accept-Contact:
Content-Type: text/plain
P-Asserted-Identity: <sip:[EMAIL PROTECTED]>
User-Agent: PoC-client/OMA1.0
Content-Length: [len]
Hello World from the news desk. This is a small message. Hello
World from the news desk. This is a small message. Hello World from
the news desk. This is a small message. Hello World from the news
desk. This is a small message. Hello World from the news desk. This is
a small message. Hello World from the news desk. This is a small
message.
]]>
</send>
<recv response="200" rtd="true" rrs="true" next="3" />
<label id="2" />
<!-- In client mode (sipp placing calls), the Call-ID MUST be
generated by sipp. To do so, use [call_id] keyword. -->
<send retrans="500" start_rtd="true">
<![CDATA[
MESSAGE sip:[EMAIL PROTECTED] SIP/2.0
To: [field3] <sip:[EMAIL PROTECTED]>
From: [field0] <sip:[EMAIL PROTECTED]>;tag=[call_number]
Call-ID: [call_id]
CSeq: [cseq] MESSAGE
Max-Forwards: 69
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Route: <sip:172.23.195.186:7070;lr>
Contact: [field0] <sip:[EMAIL PROTECTED]:[local_port]>
Accept-Contact:
Content-Type: text/plain
P-Asserted-Identity: <sip:[EMAIL PROTECTED]>
User-Agent: PoC-client/OMA1.0
Content-Length: [len]
Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message. Hello World from the news desk. This is a big message. Hello
World from the news desk. This is a big message. Hello World from the
news desk. This is a big message. Hello World from the news desk. This
is a big message. Hello World from the news desk. This is a big
message.
]]>
</send>
<recv response="200" rtd="true" rrs="true" next="3" />
<label id="3" />
<pause distribution="fixed" value="2000" />
<!-- 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: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users