<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I am trying to get the wss connection work, tried everything and still doesn&#39;t work, I don&#39;t think it is a certificate problem because if I try this manually:<br>
<br>curl -v <a href="https://myhost.com:10081/">https://myhost.com:10081/</a> -H &quot;Upgrade: WebSocket&quot; -H &quot;Connection: Upgrade&quot; -H &quot;Sec-WebSocket-Protocol: sip&quot; -H &quot;Sec-WebSocket-Key: +LLGYSDSKelND6UVF9z71w==&quot; -H &quot;Sec-WebSocket-Version: 13&quot; <br>
* About to connect() to <a href="http://myhost.com">myhost.com</a> port 10081 (#0)<br>*   Trying X.X.X.X... connected<br>* Connected to <a href="http://myhost.com">myhost.com</a> (X.X.X.X) port 10081 (#0)<br>* successfully set certificate verify locations:<br>
*   CAfile: none<br>  CApath: /etc/ssl/certs<br>* SSLv3, TLS handshake, Client hello (1):<br>* SSLv3, TLS handshake, Server hello (2):<br>* SSLv3, TLS handshake, CERT (11):<br>* SSLv3, TLS handshake, Server finished (14):<br>
* SSLv3, TLS handshake, Client key exchange (16):<br>* SSLv3, TLS change cipher, Client hello (1):<br>* SSLv3, TLS handshake, Finished (20):<br>* SSLv3, TLS change cipher, Client hello (1):<br>* SSLv3, TLS handshake, Finished (20):<br>
* SSL connection using AES256-SHA<br>* Server certificate:<br>*      subject: OU=Domain Control Validated; CN=<a href="http://myhost.com">myhost.com</a><br>*      start date: 2014-06-16 10:09:42 GMT<br>*      expire date: 2016-06-07 11:02:46 GMT<br>
*      subjectAltName: <a href="http://myhost.com">myhost.com</a> matched<br>*      issuer: C=US; ST=Arizona; L=Scottsdale; O=GoDaddy.com, Inc.; OU=<a href="http://certs.godaddy.com/repository/">http://certs.godaddy.com/repository/</a>; CN=Go Daddy Secure Certificate Authority - G2<br>
*      SSL certificate verify ok.<br>&gt; GET / HTTP/1.1<br>&gt; User-Agent: curl/7.21.0 (i486-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8o zlib/<a href="http://1.2.3.3">1.2.3.3</a> libidn/1.15<br>&gt; Host: <a href="http://myhost.com:10081">myhost.com:10081</a><br>
&gt; Accept: */*<br>&gt; Upgrade: WebSocket<br>&gt; Connection: Upgrade<br>&gt; Sec-WebSocket-Protocol: sip<br>&gt; Sec-WebSocket-Key: +LLGYSDSKelND6UVF9z71w==<br>&gt; Sec-WebSocket-Version: 13<br>&gt; <br>&lt; HTTP/1.1 101 Switching Protocols<br>
&lt; Upgrade: websocket<br>&lt; Connection: Upgrade<br>&lt; Sec-WebSocket-Accept: CQsVOMdurBA <br><br><br></div>so it seems to work, but if I try with jssip or sipml5 library I got this trace log and the socket gets disconnected within half second<br>
<br>freeswitch@internal&gt; tport.c:2749 tport_wakeup_pri() tport_wakeup_pri(0x7f2198004f20): events IN<br>tport.c:862 tport_alloc_secondary() tport_alloc_secondary(0x7f2198004f20): new secondary tport 0x7f21980afb20<br>tport.c:2640 tport_accept() tport_accept(0x7f21980afb20): new connection from wss/<a href="http://130.117.88.33:62056/sips">130.117.88.33:62056/sips</a><br>
tport.c:2773 tport_wakeup() tport_wakeup(0x7f21980afb20): events IN<br>tport.c:2864 tport_recv_event() tport_recv_event(0x7f21980afb20)<br>tport.c:2296 tport_set_secondary_timer() tport(0x7f21980afb20): reset timer<br>tport.c:2773 tport_wakeup() tport_wakeup(0x7f21980afb20): events IN HUP ERR<br>
nta.c:2719 agent_tp_error() nta_agent: tport: Conexión reinicializada por la máquina remota<br>tport.c:2090 tport_close() tport_close(0x7f21980afb20): wss/<a href="http://130.117.88.33:62056/sips">130.117.88.33:62056/sips</a><br>
<br></div>I am using last version from git and I also tried with 1.4 versions.<br></div>I have accept-blind-auth and accept-blind-reg to true, any clue?<br><div><div><br><br><br><br></div></div></div>