Hi,

Using Valgrind, I found the bug causing the segmentation fault. I'll send a patch in a separate email that doesn't go to the entire list.

Now it works pretty well. There are still issues to work out, but I've not yet investigated whether they are issues with sipp or some other component of our system.

Regards
Ingemar


On 2011-09-19 11:42, Ingemar Nilsson wrote:
Hi,

Your patch looks wonderful, but the results so far are not completely to
my satisfaction. Today I fetched the latest sipp from svn, applied your
patch, and built it. There were a few complaints about conversion from
pointer to integer of a different size, but I ignored them for the time
being. When running it, the call was properly setup, but after a second
sipp terminated with a segmentation failt.

I figured the code wasn't prepared to run on 64-bit systems, so I added
the line

MFLAGS_x86_64=-m32

to the Makefile to build as a 32-bit binary, and now it built with no
warnings at all. Despite this, sipp terminated with a segmentation fault
in the same spot as it previously did. Since I wanted to determine how
far I actually got, I checked the logs on the receiving side. The call
was properly setup, and two DTMF digits were received before the call
terminated.

This is where I am right now. Since this would be a pretty useful
feature to us, I'm going to look into it further later today. If you
have any suggestions or ideas on how to fix this, you are more than
welcome to help.

Regards
Ingemar


On 2011-09-16 20:16, Dmitry Kunilov wrote:
This is possible with my DTMF patch. See
http://sourceforge.net/tracker/?func=detail&aid=3175395&group_id=104305&atid
=637566

-----Original Message-----
From: Ingemar Nilsson [mailto:ingemar.nils...@confy.se]
Sent: Friday, September 16, 2011 6:09 PM
To: sipp-users@lists.sourceforge.net
Subject: [Sipp-users] Play PCAP file depending on values from injection file

Hi,

I'm trying to send DTMF digits using RTP according to a CSV injection file,
but I don't understand how to get it right. First, I tried this:

<nop>
<action>
<exec play_pcap_audio="/usr/share/sipp/pcap/dtmf_2833_[field4].pcap"/>
</action>
</nop>

But SIPp claims it cannot find the file
"/usr/share/sipp/pcap/dtmf_2833_[field4].pcap", because it did not expand
[field4] from the injection file. I read some thread on sipp-users from 2007
that said that you should assign the value to a variable first, like this:

<nop>
<action>
<assignstr assign_to="2" value="[field4]" />   <exec
play_pcap_audio="/usr/share/sipp/pcap/dtmf_2833_$2.pcap"/>
</action>
</nop>

But that didn't work either, since $2 was not expanded to the value of
[field4] in pcap_play_audio.

Is there any way to do this? I have a working scenario that uses SIP INFO
and reads DTMF digits from an injection file, and I also have a working
scenario with a hard-coded pcap_play_audio sequence. But I would like the
pcap_play_audio sequence to be determined by the injection file, just like
in my SIP INFO scenario, and I cannot figure out how to do that.

I'm using SIPp 3.1.9 (from the EPEL repo) on CentOS 5.

Regards
Ingemar


----------------------------------------------------------------------------
--
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users



--
Confy AB
Ingemar Nilsson
Software Developer and Operations Manager

Mob: +46 73 524 02 33 | E-mail: ingemar.nils...@confy.se <mailto:ingemar.nils...@confy.se> Office: Eriksbergsgatan 10, 116 20 Stockholm | Phone: +46 774 10 10 35 | Web: www.confy.se <http://www.confy.se/> Confy support: +46 774 10 10 49 | E-mail: supp...@confy.se <mailto:supp...@confy.se>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to