<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 2:58 AM, Steve Ng <span dir="ltr"><<a href="mailto:steveng.1988@gmail.com" target="_blank">steveng.1988@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">Hi,<div><br></div><div>Have anyone tried using SIPML5 to connect to Asterisk over wss?</div>
<div><br></div><div>I'm having the error as shown below </div><div><br></div><div><div style="clear:right;border-bottom:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px">
<span style="white-space:pre-wrap"><span>Connecting to '<a title="wss://54.254.228.251:8080/ws" style="color:rgb(84,84,84);text-decoration:none">wss://54.xxx.xxx.xxx:8080/ws</a>'</span> <a title="http://sipml5.org/SIPml-api.js?svn=224:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84);text-decoration:underline">SIPml-api.js?svn=224:1</a></span></div>
<div style="clear:right;border-bottom:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px">
<span style="white-space:pre-wrap"><span>==stack event = starting</span> <a title="http://sipml5.org/SIPml-api.js?svn=224:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84);text-decoration:underline">SIPml-api.js?svn=224:1</a></span></div>
<div style="clear:right;border-bottom:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px">
<span style="white-space:pre-wrap"><span>__tsip_transport_ws_onerror</span> <a title="http://sipml5.org/SIPml-api.js?svn=224:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84);text-decoration:underline">SIPml-api.js?svn=224:1</a></span></div>
<div style="clear:right;border-bottom:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px">
<span style="white-space:pre-wrap"><span>__tsip_transport_ws_onclose</span> <a title="http://sipml5.org/SIPml-api.js?svn=224:1" style="float:right;text-align:right;max-width:100%;margin-left:4px;color:rgb(84,84,84);text-decoration:underline">SIPml-api.js?svn=224:1</a></span></div>
<div style="clear:right;border-bottom:1px solid rgb(240,240,240);padding:1px 22px 1px 0px;margin-left:24px;min-height:16px;color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px">
<span style="white-space:pre-wrap"><span>==stack event = failed_to_start</span> </span></div><div><br><br></div><div>Where if I'm connecting through ws://54.xxx.xxx.xxxx:8080/ws, it works fine. Any idea why? </div>
</div></div>
<br clear="all"></blockquote></div><br></div><div class="gmail_extra">There was a bug in secure WebSockets (tracked under ASTERISK-21930) that was fixed in Asterisk 11.9.0:<br><br><a href="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.9.0-summary.html">http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.9.0-summary.html</a><br>
<br></div><div class="gmail_extra">Which version of Asterisk are you using? Is it 11.9.0 or later?<br></div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div>
<div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>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></div>
</div>
</div></div>