<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">We are working with stasis.</span></div><div style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">1. The below dialplan is being used ,</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">exten=>700,1,Verbose(Stasis testing</span><span style="font-family:Calibri,sans-serif;font-size:15px">)</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">same=>n,stasis(hello,world)</span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">same=>n,Hangup() </span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:Calibri,sans-serif;font-size:15px">2. Then we connect to asterisk through the below websocket,</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"></div><div style="font-family:arial,sans-serif;font-size:13px"><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(51,51,51);line-height:20px;width:827px;font-size:14px;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;min-height:inherit!important">

<tbody style="border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important"><tr style="border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;height:auto!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">

<td style="width:812px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;border:0px dashed!important;overflow:visible!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;float:none!important;height:auto!important;outline:0px!important;padding:0px 0px 0px 15px!important;vertical-align:baseline!important;min-height:inherit!important">

<div title="Hint: double-click to select code" style="border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;margin:15px 0px 0px!important;outline:0px!important;overflow:visible!important;padding:0px 0px 15px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;white-space:pre-wrap!important">

<div style="border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px 1em 0px 0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">

<b><code style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:rgb(0,0,0)!important">$ wscat.py </code><code style="font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:rgb(0,51,102)!important">'ws://<a href="http://192.168.1.60:8088/ari/events?app=hello&api_key=hey:peekaboo" target="_blank">192.168.1.60:8088/ari/events?app=hello&api_key=hey:peekaboo</a>'</code></b></div>

</div></td></tr></tbody></table></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><font face="Calibri, sans-serif" style="font-size:13px"><span style="font-size:15px">I try to make a call to 700 and find the stasis_start,stasis_end events receiving at the console.  Using the channel information received, we are able to answer the channel.</span></font><div style="font-family:arial,sans-serif;font-size:13px">

<font face="Calibri, sans-serif"><span style="font-size:15px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="Calibri, sans-serif"><span style="font-size:15px">The other scenario is given below,</span></font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div><span style="font-family:Calibri,sans-serif;font-size:15px">exten=>600,1,Verbose(stasis Queue testing</span><span style="font-family:Calibri,sans-serif;font-size:15px">)</span></div>

<div><span style="font-family:Calibri,sans-serif;font-size:15px">same=>n,stasis(Queue,sales)</span></div><div><span style="font-family:Calibri,sans-serif;font-size:15px">same=>n,Hangup() </span></div></div><div style="font-family:arial,sans-serif;font-size:13px">

<span style="font-family:Calibri,sans-serif;font-size:15px"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="Calibri, sans-serif"><span style="font-size:15px">Now my query is whether its </span></font><span style="font-size:15px;font-family:Calibri,sans-serif">possible to monitor queue events using stasis or will the call be passed to the queue, like the normal queue(sales) app does and we can monitor the queue?</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:15px;font-family:Calibri,sans-serif"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:15px;font-family:Calibri,sans-serif">With Regards</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:15px;font-family:Calibri,sans-serif"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:15px;font-family:Calibri,sans-serif">N.Prakash</span></div>

</div>