Thank you for response, Rob!
But I can't do this.

<Global variables="timervalue,tmresult" />
...
<nop>
<action>
<assignstr assign_to="timervalue" value="[field0]" />
<todouble assign_to="tmresult" variable="timervalue" />
<log message="timeout will be set to [$tmresult]" />
</action>
</nop>
<recv request="BYE" rtd="2" timeout="[$tmresult]" ontimeout="3" next="2" />

It says:
 message timeout 'timeout' parameter, "[$tmresult]" is not a valid integer!


I've tried some different variations. No results. It seems that sipp
doesn't substitute [$tmresult] with actual value...




On Sat, Mar 1, 2014 at 1:51 AM, Robert Day <r...@rkd.me.uk> wrote:

> Hi Illya,
>
> I think the best approach is to do an assignstr/todouble to get [field0]
> into a variable (like at
> http://sipp.sourceforge.net/doc/reference.html#action_variables), and
> then use that variable in the timeout parameter. I agree it would be a lot
> nicer to just be able to use [field0] directly - I'll keep that in mind.
>
> Rob
>
> On 28 Feb 2014, at 15:11, Ilya Girman wrote:
>
> > Hello!
> > I need something like this:
> >
> > <recv request="BYE" rtd="2" timeout="[field0]" ontimeout="3"/>
> >
> > But it seems that values substitution from -inf file doesn't work here.
> It works only inside CDATA[] sections and commands like <assignstr>. Am I
> wrong?
> >
> > I need this to make the calls with different call duration distribution.
> Something like this: 25% calls with duration of 15 sec, 60% calls with
> duration of 30 sec and so on.
> >
> > Thanks.
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Flow-based real-time traffic analytics software. Cisco certified tool.
> > Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> > Customize your own dashboards, set traffic alerts and generate reports.
> > Network behavioral analysis & security monitoring. All-in-one tool.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________
> > Sipp-users mailing list
> > Sipp-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to