<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Mar 2, 2016, at 12:57 PM, Tickling Contest <<a href="mailto:tickling.contest@gmail.com" class="">tickling.contest@gmail.com</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thanks for your response, Ben.<div class=""><br class=""></div><div class="">To clarify, I'd like to just wait for an INVITE and then ANSWER. And then I'd like to do it a random number of times (so I can ANSWER a random number of calls). I don't need to hear audio, but I do want to simulate two people being on a call (no need to call a real endpoint etc.). </div><div class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>Are you talking about having SIPp A call SIPp B? If so, it’s possible, you just need two separate scenarios: One to send the INVITE  and wait for the ANSWER, and another to (optionally) REGISTER and wait for the INVITE, then send the ANSWER.  You can also use RTP Echo within SIPp to reflect any received media back to the far end, which is an easy way to pass audio without messing with recordings.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">BTW, when I try to install sippy_cup, I get an error:</div><div class=""><br class=""></div><div class=""><div class="">~/sipp-3.5.0$ sudo gem install sippy_cup</div><div class="">Fetching: network_interface-0.0.1.gem (100%)</div><div class="">Building native extensions.  This could take a while...</div><div class="">ERROR:  Error installing sippy_cup:</div><div class=""><span class="" style="white-space:pre">      </span>ERROR: Failed to build gem native extension.</div><div class=""><br class=""></div><div class="">        /usr/bin/ruby1.9.1 extconf.rb</div><div class="">/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)</div><div class=""><span class="" style="white-space:pre">       </span>from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'</div><div class=""><span class="" style="white-space:pre">     </span>from extconf.rb:1:in `<main>'</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Gem files will remain installed in /var/lib/gems/1.9.1/gems/network_interface-0.0.1 for inspection.</div><div class="">Results logged to /var/lib/gems/1.9.1/gems/network_interface-0.0.1/ext/network_interface_ext/gem_make.out</div></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""></div></div></blockquote><div><br class=""></div><div>You need the Ruby development package installed to get mkmf, something like “apt-get install ruby-dev".  If you have further questions on SippyCup I’ll be happy to help you off-list, as it’s not really relevant here. Feel free to open an issue at <a href="https://github.com/mojolingo/sippy_cup/issues/new" class="">https://github.com/mojolingo/sippy_cup/issues/new</a></div><div><br class=""></div><div>/BAK/</div><div><br class=""></div><div><div class=""><div style="line-height: normal; orphans: 2; text-align: -webkit-auto; widows: 2; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; text-align: -webkit-auto; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; text-align: -webkit-auto; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; line-height: normal; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">-- </div><div class="">Ben Klang</div><div class="">Principal/Technology Strategist, Mojo Lingo</div><div class=""><a href="mailto:bklang@mojolingo.com" class="">bklang@mojolingo.com</a></div><div class="">+1.404.475.4841</div><div class=""><br class=""></div><div class="">Mojo Lingo -- <i class="">Voice applications that work like magic</i></div><div class=""><a href="http://mojolingo.com/" class="">http://mojolingo.com</a></div></div><div class="">Twitter: @MojoLingo</div><div class=""><br class=""></div></div></span></div></span></div></span></div></span></div></div></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 2, 2016 at 12:28 PM, Ben Klang <span dir="ltr" class=""><<a href="mailto:bklang@mojolingo.com" target="_blank" class="">bklang@mojolingo.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><br class=""><div class=""><span class=""><blockquote type="cite" class=""><div class="">On Mar 2, 2016, at 11:30 AM, Tickling Contest <<a href="mailto:tickling.contest@gmail.com" target="_blank" class="">tickling.contest@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Hello,<div class=""><br class=""></div><div class="">I have an ARI application that I would like to load test using SIPp (<a href="http://sipp.sourceforge.net/" target="_blank" class="">http://sipp.sourceforge.net/</a>).</div><div class=""><br class=""></div></div></div></blockquote><div class=""><br class=""></div></span>Shameless plug: you may find SippyCup will help make creating load test profiles easier: <a href="https://mojolingo.github.com/sippy_cup" target="_blank" class="">https://mojolingo.github.com/sippy_cup</a></div><div class=""><span class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">I understand how to REGISTER and send an INVITE out to a callee, but it is not clear to me:</div><div class=""><br class=""></div><div class="">(a) how to choose a RANDOM port for each client I launch using say <a href="http://tomeko.net/other/sipp/sipp_cheatsheet.php?lang=pl" target="_blank" class="">http://tomeko.net/other/sipp/sipp_cheatsheet.php?lang=pl</a> </div><div class="">(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?</div></div></div></blockquote><div class=""><br class=""></div></span><div class="">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.</div><span class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">(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)?</div></div></div></blockquote><div class=""><br class=""></div></span><div class="">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.</div><span class=""><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">(c) Can I play an audio file (or an mp3) after the call starts from both the caller and callee?</div></div></div></blockquote><div class=""><br class=""></div></span>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.</div><div class=""><a href="http://sipp.sourceforge.net/doc/reference.html#PCAP+Play" target="_blank" class="">http://sipp.sourceforge.net/doc/reference.html#PCAP+Play</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">/BAK/</div><div class=""><br class=""></div><div class=""><div class=""><div style="line-height:normal;text-align:-webkit-auto;word-wrap:break-word" class=""><span style="border-collapse:separate;line-height:normal;border-spacing:0px" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse:separate;line-height:normal;text-align:-webkit-auto;border-spacing:0px" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse:separate;line-height:normal;text-align:-webkit-auto;border-spacing:0px" class=""><div style="word-wrap:break-word" class=""><span style="border-collapse:separate;line-height:normal;border-spacing:0px" class=""><div style="word-wrap:break-word" class=""><div class=""><div class="">-- </div><div class="">Ben Klang</div><div class="">Principal/Technology Strategist, Mojo Lingo</div><div class=""><a href="mailto:bklang@mojolingo.com" target="_blank" class="">bklang@mojolingo.com</a></div><div class=""><a href="tel:%2B1.404.475.4841" value="+14044754841" target="_blank" class="">+1.404.475.4841</a></div><div class=""><br class=""></div><div class="">Mojo Lingo -- <i class="">Voice applications that work like magic</i></div><div class=""><a href="http://mojolingo.com/" target="_blank" class="">http://mojolingo.com</a></div></div><div class="">Twitter: @MojoLingo</div><div class=""><br class=""></div></div></span></div></span></div></span></div></span></div></div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><span class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Your help is received with thanks!<br class=""></div></div></span>
_______________________________________________<br class="">asterisk-app-dev mailing list<br class=""><a href="mailto:asterisk-app-dev@lists.digium.com" target="_blank" class="">asterisk-app-dev@lists.digium.com</a><br class=""><a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" target="_blank" class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br class=""></div></blockquote></div><br class=""></div><br class="">_______________________________________________<br class="">
asterisk-app-dev mailing list<br class="">
<a href="mailto:asterisk-app-dev@lists.digium.com" class="">asterisk-app-dev@lists.digium.com</a><br class="">
<a href="http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev" rel="noreferrer" target="_blank" class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">asterisk-app-dev mailing list<br class=""><a href="mailto:asterisk-app-dev@lists.digium.com" class="">asterisk-app-dev@lists.digium.com</a><br class="">http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev<br class=""></div></blockquote></div><br class=""></body></html>