Hello,
I'm trying to have rtp_stream send a different audio file for each call
using SIPp v3.4-beta1 (aka v3.3.990)-SCTP-PCAP-RTPSTREAM. I see that my
variable is getting the expected filename string, but rtp_stream doesn't
appear to be processing the variable. Here's the relevant XML:
<assignstr assign_to="my_wavefile"
value="audio_file_[call_number].wav"/>
<log message="Variable my_wavefile=[$my_wavefile]" />
<exec rtp_stream="[$my_wavefile],1,0" />
If I comment out the <exec> line (so that it doesn't error when trying to
read the audio file) I see these entries in the log file:
Variable my_wavefile=audio_file_1.wav
Variable my_wavefile=audio_file_2.wav
With the <exec> line enabled I get the error and SIPp fails to start:
Cannot read/cache rtpstream file [$my_wavefile]
I've tried all variations of "[my_wavefile]", "[$my_wavefile]",
"$my_wavefile", etc.
The docs seem pretty clear that this should be supported, e.g. from:
http://sipp.sourceforge.net/doc1.1/reference.html#Execute+a+command
<exec rtp_stream="[filename],[loopcount],[payloadtype]" /> will
stream the audio contained in [filename], repeat the stream [loopcount]
times (the default is 1, and -1 indicates it will repeat forever), and will
treat the audio as being of [payloadtype] (where 8 is the default of PCMA,
0 indicates PCMU, and 18 indicates G729).
I've searched through the e-mail archives and found some other references
to this, but most of those messages are very old and talk about <assignstr>
being available in v3.0 and later.
Thanks in advance for any help,
-Joe
------------------------------------------------------------------------------
_______________________________________________
Sipp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sipp-users