Use the method described previously (a value in the CSV file) to detect which
is the 1st call and jump to separate bits of the script depending on whether
this is the 1st or subsequent calls ...
- For the 1st call set a global variable to 0, then sleep for your ## seconds,
then set the variable to 1
- For all other calls check the global variable, and if it's still 0, sleep for
a second and then jump back to the check - only exiting the loop when the
variable has been set to 1
I use a similar technique to allow a registration script to run in the 1st call
and register a trunk, with all subsequent calls on child numbers pausing until
the registration script confirms that it is complete by setting a global
variable.
Matt
________________________________
From: Vignesh [mailto:mvi...@yahoo.co.uk]
Sent: Monday, 20 May 2013 7:28 p.m.
To: sipp-users@lists.sourceforge.net; santhosh.bi...@gmail.com
Subject: Re: [Sipp-users] A way to start sipp script after a delay
Nice idea. But when there are multiple calls in parallel (-r option), then
second call might end up executing immediately.
Ideally, I would like all the calls to run after a few seconds....
Regards,
Vignesh
________________________________
From: Santosh Reddy <santhosh.bi...@gmail.com>
To: Vignesh <mvi...@yahoo.co.uk>
Cc: "sipp-users@lists.sourceforge.net" <sipp-users@lists.sourceforge.net>
Sent: Monday, 20 May 2013, 12:56
Subject: Re: [Sipp-users] A way to start sipp script after a delay
You get this pause value from .csv file. Where for the first iteration give
5000 (ms) and for all other entries give 0
I have not tries this, but in theory it should work.
Thanks & Regards,
Santosh Reddy.
On Mon, May 20, 2013 at 12:47 PM, Vignesh
<mvi...@yahoo.co.uk<mailto:mvi...@yahoo.co.uk>> wrote:
Hi,
Is there a way to start the execution of the sipp script after a delay that is
effected only for the first call? I need this in an automation setup, where
the server and client comes up together and it takes a while for the server to
come up. Ideally, I would like the client to send SIP commands after the
server is up.
My initial thought was to add a delay at the top of the scenario file, but I
realized that if I include a delay, then every call will be delayed by 5
seconds.
The scenario file I have will run for 100 calls and I just want the entire
execution to start after 5 seconds. Having a batch file (on windows
environment) to sleep for a few seconds before execution of the sipp script is
ruled out as well due to legacy reasons.
Thank you for your help.
Regards,
Vignesh
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net<mailto:Sipp-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users