<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 14, 2016 at 7:41 PM, Tickling Contest <span dir="ltr"><<a href="mailto:tickling.contest@gmail.com" target="_blank">tickling.contest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Also, it would be amazing if someone could tell me how to stop a SIPp test after one such call described in my OP.</div><div class=""><div class="h5"><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>A SIPp scenario will stop either when it encounters an error or runs to completion. You have to form your scenario in a way that it will execute all commands and receive all expected events in the proper order. For instance maybe in your scenario you'll have a call enter your application. The application does what it needs to do with the channel and then hangs it up. The SIPp scenario can be waiting to receive the hang up. Once it does it will end.<br><br></div><div>See more below about an example.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 14, 2016 at 8:37 PM, Tickling Contest <span dir="ltr"><<a href="mailto:tickling.contest@gmail.com" target="_blank">tickling.contest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am testing an ARI application written over Asterisk 13.6.0. In my ARI application, I wrote a bunch of features that manipulate call state, and I would now like to stress test it so that the application is production ready.</div><div><br></div><div>So, I am using SIPp, but I am having a LOT of trouble with docs.</div><div><br></div><div>Here's what I want to do, assuming each SIPp "peer" in the following description means a single SIPp process on, say, a linux host:</div><div>(a) REGISTER SIPp peer A and SIPp peer B to my Asterisk 13.6.0 using TCP transport using username and password.</div><div>(b) Use SIPp peer A to call SIPp peer B, both of whom are registered to my Asterisk 13.6.0/TCP PBX using INVITE.</div><div>(c) Wait for the call to be answered at peer B, and then pause 2 seconds and then kill the call by sending a BYE from SIPp peer B.</div><div><br></div><div>Here is what I am able to do so far: I am able to REGISTER the peers, but for the life of me, not able to get the peers to call each other.<br></div><div><br></div><div>I have tried sippy_cup, but I have had a similar issue where the documentation is spotty and I don't think it actually works for TCP. So that's not an option for me.</div><div><br></div><div>I would like to know how to create XML scenario files so that I can generate my own scenario files for my own set up from actual pjsip set logger on output.</div></div></blockquote></div></div></div></div></blockquote><div><br></div><div>If you would like to simply originate a call from SIPp into Asterisk you can find many such examples that do just that in the Asterisk Testsuite (1). One such example can be found beneath the pjsip channel driver tests: ident_by_user (2). Check out the playback_with_initial_sdp.xml (3) file specifically.<br><br></div><div>Note, this example calls the playback extension, which then plays a file back and then hangs up. Instead of calling the playback app your's would call your app instead.<br></div><div><br>(1) <a href="https://github.com/asterisk/testsuite">https://github.com/asterisk/testsuite</a><br>(2) <a href="https://github.com/asterisk/testsuite/tree/master/tests/channels/pjsip/basic_calls/incoming/nominal/unauthed/ident_by_user">https://github.com/asterisk/testsuite/tree/master/tests/channels/pjsip/basic_calls/incoming/nominal/unauthed/ident_by_user</a><br>(3) <a href="https://github.com/asterisk/testsuite/blob/master/tests/channels/pjsip/basic_calls/incoming/nominal/unauthed/ident_by_user/sipp/playback_with_initial_sdp.xml">https://github.com/asterisk/testsuite/blob/master/tests/channels/pjsip/basic_calls/incoming/nominal/unauthed/ident_by_user/sipp/playback_with_initial_sdp.xml</a><br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Any help is deeply appreciated!</div><div><br></div><div>Thanks!</div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br>-- <br><div class="gmail_signature"><div dir="ltr"><pre style="padding:2px;border:1px solid rgb(114,99,77);background-color:rgb(238,238,238);color:rgb(0,0,0);overflow:auto">Kevin Harwell
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></pre></div></div>
</div></div>