<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Jun 2, 2014 at 4:45 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Mon, Jun 2, 2014 at 3:28 PM, Jim Black <<a href="mailto:jblack@mediu.com">jblack@mediu.com</a>> wrote:<br>
> Thanks again for the quick reply. I am using Java Websockets Java EE 7 JSR<br>
> 356 - Tyrus part of the Oracle Glassfish package. I have retested on various<br>
> servers and am seeing the same behavior. The call itself is fine but when<br>
> one party hangs up I get the exception (onClose) from Asterisk. I am not<br>
> sending a corresponding ARI event - the Hangup or StasisEnd have not yet<br>
> fired.<br>
><br>
> The object I capture in the onClose has the following info:<br>
><br>
> CloseReason object:<br>
> closeCode:<br>
> code:1007<br>
> Name:NOT_CONSISTENT<br>
> reasonPhrase:Illegal UTF-8 Sequence<br>
><br>
><br>
><br>
<br>
</div>The only way we'll know what is causing this is if we figure out what<br>
Asterisk sent to your client over the WebSocket connection. Wireshark<br>
should show that; hopefully, the client library also contains<br>
debugging capabilities allowing you to dump out the bytes received.</blockquote></div><br>A Wireshark capture would be very helpful here. I was able to connect to a local instance of Asterisk running ARI using version 1.6 of the Tyrus standalone client and was able to consistently get StasisStart and StasisEnd messages when originating calls using ARI.<br clear="all">
<div><br></div>-- <br><div dir="ltr"><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">Samuel Fortier-Galarneau
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: <a href="http://www.digium.com" target="_blank">www.digium.com</a> & <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></pre></pre></div>
</div></div>