<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-09-25 18:29 GMT+04:00 Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4x" class="a3s" style="overflow:hidden">The application 'starts' when your WebSocket connection is made.<br>
Asterisk uses the presence of a WebSocket connection to know that<br>
something is able to handle the Stasis application. Without that, it<br>
will simply bounce channels out of your Stasis application.<br>
<br>
Because the client initiates the application, there isn't really any<br>
need for an event. Asterisk doesn't make the decision; you do.<br></div></blockquote></div><br><div><br></div><div>Matt, thanks for your reply.</div><div>Seems I was not clear enough.</div><div>Yes Asterisk knows when smth is able to handle the Stasis application.</div><div>And when I do a connection I also know.</div><div>Know what? </div><div>You mean that client.connect(...) success call is enouth? After it returns Stasis app is setup in asterisk?</div><div>And this mean I have to signal to other thread exactly after exit from client.connect(..)?</div><div>Thanks.</div><div><br></div>
</div></div>