Thanks Pavel
actually the audios.csv file is like this
RANDOM
audio0.wav
audio1.wav
audio2.wav
audio3.wav
audio4.wav
....
audioN.wav
i just want to play audio randomly
as you say i have to do something like this
<nop condexec="1">
<action>
<exec rtp_stream="/root/sipp/talago/audio1.wav,-1,18" />
</action>
</nop>
<nop condexec="2">
<action>
<exec rtp_stream="/root/sipp/talago/audio2.wav,-1,18" />
</action>
</nop>
<nop condexec="3">
<action>
<exec rtp_stream="/root/sipp/talago/audio3.wav,-1,18" />
</action>
</nop>
but i don't know how to set just one variable to play just one audio,
because with a regex i will always set the same variable
<nop>
<action>
<assignstr assign_to="1" value="[field0 file="randomnumber.csv"]" />
</action>
</nop>
is there a way to do this?
thanks in advance for your help!
2016-03-30 15:49 GMT-06:00 sindelka <sinde...@ttc.cz>:
> Hi Octavio,
>
> not this direct way. sipp needs to pre-cache the files to be played before
> actually starting to execute the scenario, so you'd have to prepare a
> sequence of <nop condexec="variable_name_N"><action><exec
> rtp_stream.../></action></nop> statements, and use a set of <ereg .../>
> before to set exactly one of variable_name_N depending on the contents of
> the [field0 file=audios.csv].
>
> This makes sense if you have at most low tens of different files to play;
> for more, sipp is probably not the best choice.
>
> Pavel
>
> Dne 30.3.2016 v 22:19 Octavio Duarte napsal(a):
>
> Hello everyone
>
> i am wondering if there is a way to play a wav audio from a file,
> something like this
>
> <action>
> <!--<exec rtp_stream="/root/sipp/filipino1.wav,-1,18" />-->
> <exec rtp_stream="/root/sipp/talago/[field0 file="audios.csv"],-1,18"
> />
> </action>
> </nop>
>
> when i try to test this i get this error
>
> 2016-03-30 14:04:45.887580 1459368285.887580: Cannot read/cache
> rtpstream file /root/sipp/talago/[field0 file=
>
>
> Thanks in advance!
>
>
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn
> more.http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
>
>
>
> _______________________________________________
> Sipp-users mailing
> listSipp-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
>
>
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> _______________________________________________
> Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users