š
Hi Peter,
š
I have this in my cfg file.
š
It appears maybe it does it go in the event_route because there is no log entry
š
event_route[xhttp:request] {
ššš set_reply_close();
ššš set_reply_no_connect();

ššš #xhttp_reply("200", "OK", "text/html","<html><body>Received HTTP request to $hu from [$si:$sp] with protocol $proto</body></html>");
ššš xlog("L_INFO", "HTTP Request Received\n");

ššš if ($hdr(Upgrade)=~"websocket" && $hdr(Connection)=~"Upgrade" && $rm =~"GET") {

ššššššš if (ws_handle_handshake()) {
ššššššššššš exit;
ššššššš }
ššš }

ššš xhttp_reply("404", "Not Found", "", "");
}
š
š
š
š
19.03.2014, 20:11, "Peter Dunkley" <peter.dunkley@crocodilertc.net>:
Hello,

Probably a silly question, but does your xhttp event_route go on to actually handle the WebSockets handshake?
š
There is an example websocket.cfg in the examples directory in Git. šHave you tried using this?
š
Peter
š


On 19 March 2014 15:50, Olle E. Johansson <oej@edvina.net> wrote:

On 19 Mar 2014, at 16:46, jaflong jaflong <jaflong@yandex.com> wrote:

> Hi,
>
> What are the requirements for connecting with tls/wss.
>
> I have not come across any information or example for this.
>
> 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.
> 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.
Kamailio has nothing to do with DTLS - it's in the media layer, not in the signalling.

>
> What if other considaerstion do I need to check?
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.

/O
>
>
> thanks
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
š
--
Peter Dunkley
Technical Director
Acision
,

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users