You need to have the pcap libraries installed.  Make sure you run "make 
clean" before "make pcapplay".

If you are planning on doing any development you should do it against the 
trunk.  To do the changes you'll need to follow the code starting from:
      } else if (ptr = xp_get_value((char *) "play_pcap_audio")) {
        tmpAction->setPcapArgs(ptr);
        tmpAction->setActionType(CAction::E_AT_PLAY_PCAP_AUDIO);
        hasMedia = 1;
in scenario.cpp, so that instead of using a hardcoded string you create a 
SendingMessage structure (as is done for messages).  You'll also need to 
do a late binding of this packet stream to the play_args_a structure 
around these lines of call.cpp:
        } else if ((currentAction->getActionType() == 
CAction::E_AT_PLAY_PCAP_AUDIO) ||
                   (currentAction->getActionType() == 
CAction::E_AT_PLAY_PCAP_VIDEO)) {

Charles

vivek bangera <[EMAIL PROTECTED]> wrote on 11/27/2007 01:40:19 AM:

> Thanks Wright.
> 
> We have downloaded the latest SIPP version 2.0.1. We
> are facing a problem while running the xml scenario
> with "exec pcap file". Following is the error
> 
> 2007-11-27 11:56:50: play_pcap_audio requires pcap
> support! Please recompile SIPp.
> 
> Do we need any library file while we compile with
> "make pcapplay"?
> 
> 
> Also,I am not from the development background. Can you
> provide the changes that needs to be done in the 
> scenario.cpp, scenario.hpp,call.cpp files in order to
> import the file from the CSV.
> 
> Thanks for the help,
> 
> Vivek
> 
> 
> 
> 
> 
> --- Charles P Wright <[EMAIL PROTECTED]> wrote:
> 
> > If you modify the SIPp source code to use a
> > SendingMessage structure 
> > instead of a string for the play_pcap_audo element
> > of the scenario you can 
> > do this.  The changes would need to be made in
> > scenario.cpp, scenario.hpp, 
> > and call.cpp.
> > 
> > Charles
> > 
> > [EMAIL PROTECTED] wrote on
> > 11/26/2007 07:12:19 AM:
> > 
> > > Hi,
> > > 
> > > Is there is any option of getting the
> > > value(dtmf_2833_1.pcap)from the csv file to the
> > exec
> > > command.
> > > 
> > > At the moment, we need to hardcode the dtmf file
> > in
> > > the exec command( in the xml scenario).
> > > 
> > > 
> > > <exec play_pcap_audio="pcap/dtmf_2833_1.pcap"/>
> > > 
> > > Thanks,
> > > Bangy
> > > 
> > > 
> > > 
> > > 
> >
> 
____________________________________________________________________________________
> > > Get easy, one-click access to your favorites. 
> > > Make Yahoo! your homepage.
> > > http://www.yahoo.com/r/hs 
> > > 
> > > 
> >
> 
-------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft
> > > Defy all challenges. Microsoft(R) Visual Studio
> > 2005.
> > >
> >
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > > _______________________________________________
> > > Sipp-users mailing list
> > > Sipp-users@lists.sourceforge.net
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/sipp-users
> > 
> > 
> 
> 
> 
> 
> 
____________________________________________________________________________________
> Be a better sports nut!  Let your teams follow you 
> with Yahoo Mobile. Try it now.  http://mobile.yahoo.com/sports;
> _ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to