<div>š</div><div>Hi Peter,</div><div>š</div><div>I have this in my cfg file.</div><div>š</div><div>It appears maybe it does it go in the event_route because there is no log entry</div><div>š</div><div>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 />ššš if ($hdr(Upgrade)=~"websocket" && $hdr(Connection)=~"Upgrade" && $rm =~"GET") {<br /><br />ššššššš if (ws_handle_handshake()) {<br />ššššššššššš exit;<br />ššššššš }<br />ššš }<br /><br />ššš xhttp_reply("404", "Not Found", "", "");<br />}</div><div>š</div><div>š</div><div>š</div><div>š</div><div>19.03.2014, 20:11, "Peter Dunkley" <peter.dunkley@crocodilertc.net>:</div><blockquote type="cite"><div><span style="font-family:arial,sans-serif;font-size:13px;">Hello,</span><div style="font-family:arial,sans-serif;font-size:13px;"><br />Probably a silly question, but does your xhttp event_route go on to actually handle the WebSockets handshake?</div><div style="font-family:arial,sans-serif;font-size:13px;">š</div><div style="font-family:arial,sans-serif;font-size:13px;">There is an example websocket.cfg in the examples directory in Git. šHave you tried using this?</div><div style="font-family:arial,sans-serif;font-size:13px;">š</div><div style="font-family:arial,sans-serif;font-size:13px;">Peter</div><div style="font-family:arial,sans-serif;font-size:13px;">š</div></div><div><br /><br /><div>On 19 March 2014 15:50, Olle E. Johansson <span><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br /><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br /> 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.</div>Kamailio has nothing to do with DTLS - it's in the media layer, not in the signalling.<br /><div><br /> ><br /> > What if other considaerstion do I need to check?</div>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 /> <span><font color="#888888"><br /> /O<br /> </font></span><div><div>><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 /> _______________________________________________<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<br /></a><div>š</div><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">-- <br /></a><div><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></div></blockquote></div></div>,<p>_______________________________________________<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">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a></p></blockquote>