[asterisk-app-dev] Testing an ARI application using SIPp

Ben Klang bklang at mojolingo.com
Wed Mar 2 11:28:30 CST 2016


> On Mar 2, 2016, at 11:30 AM, Tickling Contest <tickling.contest at gmail.com> wrote:
> 
> Hello,
> 
> I have an ARI application that I would like to load test using SIPp (http://sipp.sourceforge.net/ <http://sipp.sourceforge.net/>).
> 

Shameless plug: you may find SippyCup will help make creating load test profiles easier: https://mojolingo.github.com/sippy_cup <https://mojolingo.github.com/sippy_cup>

> I understand how to REGISTER and send an INVITE out to a callee, but it is not clear to me:
> 
> (a) how to choose a RANDOM port for each client I launch using say http://tomeko.net/other/sipp/sipp_cheatsheet.php?lang=pl <http://tomeko.net/other/sipp/sipp_cheatsheet.php?lang=pl>
> (REGISTER_INVITE_client.xml). Should I generate this beforehand and pass it as field3, say? Or is there a method already available in SIPp to do this?

I don’t know about making the ports random, but you can allocate a unique port-per-connect by passing the “-t un” flag to sipp. Did you really need them random, or just unique? And out of curiosity, why?  Most of the time, the default of “-t u1”, which is a single UDP port shared for all dialogs, works fine.

> (b)  How do I receive a call into a SIPp client? In other words, how do I simulate a SIPp client to REGISTER and then wait for a call (from a SIPp client connected to the same PBX)?

This gets tricky because SIPp isn’t a real UA.  However, you can write a SIPp scenario that sends a REGISTER then waits for an INVITE.  The Sippy Cup documentation has an example of this.

> (c) Can I play an audio file (or an mp3) after the call starts from both the caller and callee?

You can replay audio in the form of a pcap file. If I need real audio, the easiest path is usually to place a real call with tcpdump running.
http://sipp.sourceforge.net/doc/reference.html#PCAP+Play <http://sipp.sourceforge.net/doc/reference.html#PCAP+Play>


/BAK/

--
Ben Klang
Principal/Technology Strategist, Mojo Lingo
bklang at mojolingo.com <mailto:bklang at mojolingo.com>
+1.404.475.4841

Mojo Lingo -- Voice applications that work like magic
http://mojolingo.com <http://mojolingo.com/>
Twitter: @MojoLingo


> 
> Your help is received with thanks!
> _______________________________________________
> asterisk-app-dev mailing list
> asterisk-app-dev at lists.digium.com
> http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160302/791004e2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20160302/791004e2/attachment.pgp>


More information about the asterisk-app-dev mailing list