Hi Michael,

I spent quite a bit of time trying to get a single .pcap file with audio and 
video to work, but could not get it quite right.  I could get all of the 
packets to be generated but the issue I saw was that the destination UDP ports 
for the SIPp transmitted video packets would not use the same port offset as 
was negotiated in the SDP messages.  

In my system that I am developing, I use "RTPport" for RTP AUDIO, "RTPport+1" 
for RTCP, "RTPport+2" for T38, "RTPport+3" is reserved, "RTPport+4" for RTP 
VIDEO.  The SIP negotiation that my system sends to SIPp will then offer 
RTPport+4 for video of course.  The problem is that SIPp hardcodes the 
transmitted RTP Video port to RTPport+2.  So I get a mismatch and my system 
will not process incoming video packets from SIPp.  This is a problem for 
trying to push my video packet processing in SIPp testing.

Even if I setup SIPp XML script like this:

      m=audio [auto_media_port] RTP/AVP 0
      a=rtpmap:0 PCMU/8000
      a=silenceSupp:off - - - -
      m=video [auto_media_port+4] RTP/AVP 100
      a=rtpmap:100 h264/90000
      a=fmtp:100 profile-level-id=42800A;packetization-mode=1

...with auto_media_port+4, SIPp will not even use +4 for the source UDP port 
number in transmitted RTP Video packets.

There is another thread here that tracked this, and somebody helped me to 
identify the area in SIPp source code where the +2 offset is hardcoded, but in 
minimal time playing with it I could not get it working right (I use SIPp for 
Windows with PCAPPLAY).

It would be great if the "+4" above in SDP was actually another SIPp variable 
name, which could be applied when the PCAP file is parsed.

Thanks,

Greg Horton
Embedded Software Engineer
Dialogic Research Inc.

-----Original Message-----
From: Michael Hirschbichler [mailto:s...@hirschbichler.biz] 
Sent: Wednesday, December 21, 2011 9:03 AM
To: sipp-users@lists.sourceforge.net
Subject: Re: [Sipp-users] sipp play pcap file question ,can you help me?

Well, there is one option:

you can create a pcap-file containing _both_ audio and video.

Then you can use
<nop>
  <action>
    <exec play_pcap_audio="audiovideo.pcap"/>
  </action>
</nop>

This worked in 90% of all test-pcaps. Sometimes we (our students)
noticed, that it does only work if the first packet in the pcap-file is
an audio packet,

br
Michael

Am 12/21/2011 02:56 PM, schrieb Greg Thomas:
> 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!

-- 
Michael Hirschbichler, Mag. Dipl.-Ing.
Institute of Telecommunications
Vienna University of Technology
A-1040 Wien, Favoritenstr. 9-11/388
Phone: +43 1 58801 38846

------------------------------------------------------------------------------
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