SIPp supports the ability to send a stream of pre-recorded RTP packets via the exec play_pcap_audio
directive. (See the built-in uac_pcap
scenario as a model for your scenario.) The packets to be sent are stored in a file with PCAP format. The packets can be extracted from a Wireshark capture of a test call, for instance.
$ sipp -sf custom_with_pcap_audio.xml SERVER_IP -s DESTINATION_NUMBER -ap AUTH_PASSWORD -aa -m 1 -l 1 -d 10000
To create custom_with_pcap_audio.xml
, start here:
$ sipp -sd uac_pcap > custom_with_pcap_audio.xml
then edit the scenario to refer to your pcap file (obtained via one of the techniques previously linked). You will also need to make the delay the appropriate length for your pcap recording (rather than the 10000 given in the example).