i am trying to connect to my kamailio through
websocket. I added the below code in my config file:
event_route[xhttp:request] {
xlog("websocket connection request");
set_reply_close();
set_reply_no_connect();
if
(ws_handle_handshake())
xhttp_reply("404", "Not found", "", "");
}
However, when I try to connect from my web phone, It shows
:
Aug 15 15:22:31 ubuntu
/usr/local/kamailio-devel//sbin/kamailio[17202]: WARNING:
xhttp [xhttp_mod.c:133]: mod_init():
event_route[xhttp:request] is empty
Can someone please tell me what wrong im doing ?