<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
can you check to be sure that event_route is not in a disable part
of config by #!ifdef conditions?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 16/08/14 02:33, Kamrul Khan wrote:<br>
</div>
<blockquote cite="mid:BLU180-W74AF816DA4C035FBA59E91D5D60@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">i am trying to connect to my kamailio through
websocket. I added the below code in my config file:
<div><br>
</div>
<div>
<div> event_route[xhttp:request] {</div>
<div> xlog("websocket connection request");</div>
<div> set_reply_close();</div>
<div> set_reply_no_connect();</div>
</div>
<div><span style="font-size: 12pt;"> if
(ws_handle_handshake())</span></div>
<div>
<div>
<div> {</div>
<div> exit;</div>
<div> }</div>
</div>
</div>
<div> xhttp_reply("404", "Not found", "", "");</div>
<div>}</div>
<div><br>
</div>
<div>However, when I try to connect from my web phone, It shows
:</div>
<div><br>
</div>
<div>
<div>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</div>
</div>
<div><br>
</div>
<div>Can someone please tell me what wrong im doing ?</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
</body>
</html>