[asterisk-users] [OT] How to use audio files with SIPp

George Joseph gjoseph at digium.com
Fri Feb 9 07:39:03 CST 2018


On Fri, Feb 9, 2018 at 6:27 AM, Olivier <oza.4h07 at gmail.com> wrote:

> Hello,
>
> SIPp's PCAP play feature can replay pre-recorded audio stream towards
> destination (see [1]).
> Doc mentions tcpdump and Wireshark as tools to record such RTP streams
> without further details.
>
>
> Looking at SIPp 3.2 source archive, I found PCAP samples in a pcap/
> directory.
> Sample pcap/g711a.pcap file includes RTP from 10.1.3.1:5000 to
> 10.1.6.18:2006
>
> 1. How can you "forge" IPs and/or ports of a pcap file ?
>

You don't have to.  sipp only takes the rtp payload from the packets in the
pcap then just sends the datagrams to the remote in the scenario.


>
> 2. When generating simultaneous calls from one source device to a single
> target device, do you need to have specific PCAP files (one specific for
> each call) with specific source port ?
>

Nope.  See above.


>
> 3. How do you capture an RTP flux with thark or tcpdump ?
>

This is a little tricky.  tcpdump isn't much help if you don't know the
ports.  With tshark though you can create a "read" filter that can capture
only RTP packets but it's very expensive.  Usually, I just capture all UDP
packets between the hosts in question with tcpdump, then use the Wireshark
gui to filter the rtp stream.  Then you can just export those packets.



>
> Best regards
>
> [1] http://sipp.sourceforge.net/doc/reference.html#PCAP+Play
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at: https://community.asterisk.
> org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
George Joseph
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20180209/b9b2920a/attachment.html>


More information about the asterisk-users mailing list