The other option is to comment out / delete the offending bit of the code and 
recompile sipp.

In call.cpp around line 3816:

      if (media_thread != 0) {
      //   If a media_thread is already active, kill it before starting a new 
one
        pthread_cancel(media_thread);
        pthread_join(media_thread, NULL);
        media_thread = 0;
      }


Comment out, or delete the above lines, and then recompile.

These lines deliberately stop multiple pcaps being played on the same call.  So 
if you want to do this, these lines have to go.  The downside is that if a call 
fails then the pcap will continue to play until it terminates even if another 
call is established.

The way the code is written is, in my opinion, wrong.  It should be killing the 
associated pcap plays when the call terminates, not when a new play is 
initiated.


Matt

________________________________________
From: Greg Thomas [greg.d.tho...@gmail.com]
Sent: Thursday, 22 December 2011 2:56 a.m.
To: sipp-users
Subject: Re: [Sipp-users] sipp play pcap file question ,can you help me?

You can only play one pcap file at a time; so you'll need to put a
delay between the first and second ones to give the first one time to
complete. e.g.

<nop>
  <action>
    <exec play_pcap_audio="g711t2.pcap"/>
  </action>
</nop>
<pause milliseconds="25000"/> <!-- or however long is required -->
<nop>
  <action>
    <exec play_pcap_video="263.cap"/>
  </action>
</nop>

Greg

2011/12/21 做些什么好呢 <123544...@qq.com>:
> in my uac xml with sipp ,I want to play audio and video pcap file same time
> ,like following:
>
> <nop>
>   <action>
>    <exec play_pcap_audio="g711t2.pcap"/>
>     <exec play_pcap_video="263.cap"/>
>         </action>
>   </nop>
>
> I found sipp only plays the video file . If i erase the '    <exec
> play_pcap_video="263.cap"/>
> ' ,the audio file can be played successfully,so the two media file are both
> ok.
>
> so ,what can i do to play the two file same time.
>
> tks for your answer ,thank you!
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Sipp-users mailing list
> Sipp-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sipp-users
>

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to