[SR-Users] event_route xhttp:request

Kamrul Khan dodul at live.com
Sat Aug 16 02:33:03 CEST 2014


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())                {                         exit;                }    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 ? 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140816/a632ff9f/attachment.html>


More information about the sr-users mailing list