Hi, Have anyone tried using SIPML5 to connect to Asterisk over wss? I'm having the error as shown below Connecting to 'wss://54.xxx.xxx.xxx:8080/ws <wss://54.254.228.251:8080/ws>' SIPml-api.js?svn=224:1 ==stack event = starting SIPml-api.js?svn=224:1 __tsip_transport_ws_onerror SIPml-api.js?svn=224:1 __tsip_transport_ws_onclose SIPml-api.js?svn=224:1 ==stack event = failed_to_start Where if I'm connecting through ws://54.xxx.xxx.xxxx:8080/ws, it works fine. Any idea why? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140611/ca1ab634/attachment.html>
On Wed, Jun 11, 2014 at 2:58 AM, Steve Ng <steveng.1988 at gmail.com> wrote:> Hi, > > Have anyone tried using SIPML5 to connect to Asterisk over wss? > > I'm having the error as shown below > > Connecting to 'wss://54.xxx.xxx.xxx:8080/ws' SIPml-api.js?svn=224:1 > ==stack event = starting SIPml-api.js?svn=224:1 > __tsip_transport_ws_onerror SIPml-api.js?svn=224:1 > __tsip_transport_ws_onclose SIPml-api.js?svn=224:1 > ==stack event = failed_to_start > > > Where if I'm connecting through ws://54.xxx.xxx.xxxx:8080/ws, it works > fine. Any idea why? > >There was a bug in secure WebSockets (tracked under ASTERISK-21930) that was fixed in Asterisk 11.9.0: http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.9.0-summary.html Which version of Asterisk are you using? Is it 11.9.0 or later? -- Matthew Jordan Digium, Inc. | Engineering Manager 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140611/2ded6f9f/attachment.html>
> I'm having the error as shown below? > > Connecting to 'wss://54.xxx.xxx.xxx:8080/ws' SIPml-api.js?svn=224:1 > ==stack event = starting SIPml-api.js?svn=224:1 > __tsip_transport_ws_onerror SIPml-api.js?svn=224:1 > __tsip_transport_ws_onclose SIPml-api.js?svn=224:1 > ==stack event = failed_to_start > > > Where if I'm connecting through ws://54.xxx.xxx.xxxx:8080/ws, it works fine. > Any idea why??Sorry for the delay in answering: I meant to reply and forgot. "ws://" uses HTTP and "wss://" uses HTTPS so there's no way they can work via the same socket. You have to set up a separate HTTPS socket for wss.