<div dir="ltr">Hello,<div><br>Probably a silly question, but does your xhttp event_route go on to actually handle the WebSockets handshake?</div><div><br></div><div>There is an example websocket.cfg in the examples directory in Git.  Have you tried using this?</div>
<div><br></div><div>Peter</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 March 2014 16:03, jaflong jaflong <span dir="ltr"><<a href="mailto:jaflong@yandex.com" target="_blank">jaflong@yandex.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Ollie, Thanks for the info.<br>
<br>
I am not aware how to test SIP/TLS can you make a suggestion of how to do it and what is the url of the page you mention.<br>
<br>
However I have followed this page <a href="http://www.kamailio.org/wiki/tutorials/tls/testing-and-debugging" target="_blank">http://www.kamailio.org/wiki/tutorials/tls/testing-and-debugging</a><br>
<br>
I can get a successful tls connection when I connect with http so I know basic tls works.<br>
<br>
Tested by having this in kamailio.cfg<br>
<br>
event_route[xhttp:request] {<br>
    set_reply_close();<br>
    set_reply_no_connect();<br>
<br>
    xhttp_reply("200", "OK", "text/html","<html><body>Received HTTP request to $hu from [$si:$sp] with protocol $proto</body></html>");<br>
    xlog("L_INFO", "HTTP Request Received\n");<br>
<br>
    ......<br>
<br>
Going to <a href="https://10.1.2.3:6443" target="_blank">https://10.1.2.3:6443</a> gives this<br>
Received HTTP request to / from [<a href="http://10.1.1.1:58179" target="_blank">10.1.1.1:58179</a>] with protocol tls<br>
<br>
<br>
<br>
19.03.2014, 19:50, "Olle E. Johansson" <<a href="mailto:oej@edvina.net">oej@edvina.net</a>>:<br>
<div class="HOEnZb"><div class="h5">> On 19 Mar 2014, at 16:46, jaflong jaflong <<a href="mailto:jaflong@yandex.com">jaflong@yandex.com</a>> wrote:<br>
><br>
>>  Hi,<br>
>><br>
>>  What are the requirements for connecting with tls/wss.<br>
>><br>
>>  I have not come across any information or example for this.<br>
>><br>
>>  My config is working when the client uses ws. However if I change this to use wss, (this is it only paramter I change) it does not work.<br>
>>  I understand Kamailio does not support DTLS, I set the jssip client DtlsSrtpKeyAgreement to false to disable this, I also set the tls option to not require or verify certicficates and it still does not work.<br>

><br>
> Kamailio has nothing to do with DTLS - it's in the media layer, not in the signalling.<br>
><br>
>>  What if other considaerstion do I need to check?<br>
><br>
> Check if normal SIP/TLS works and if you can connect with a web browser. There is a TLS debugging page on the Kamailio wiki with a lot of helpful tips and tricks. We might want to add WSS to that page.<br>
><br>
> /O<br>
><br>
>>  thanks<br>
>><br>
>>  _______________________________________________<br>
>>  SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
>>  <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
>>  <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
> _______________________________________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><font face="courier new, monospace">Peter Dunkley</font></div><div><font face="courier new, monospace">Technical Director</font></div>
<div><font face="courier new, monospace">Acision</font></div></div>
</div>