<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, <span style="font-size: 12pt;">Found the issue. I needed to configure, tcp_accept_no_cl=yes. Working fine now.</span><div><br><div><hr id="stopSpelling">From: dodul@live.com<br>To: miconda@gmail.com; sr-users@lists.sip-router.org<br>Subject: RE: [SR-Users] event_route xhttp:request<br>Date: Mon, 18 Aug 2014 21:38:18 +0600<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<div dir="ltr"><div><span style="font-size:12pt;">Hey, thanks for your reply. Do I need additional #!define to enable event_route ? I didnt see any in my configuration. I didnt find anything like #!ifdef EVENT_ROUTE or anything slimier in my configuration aswell.</span></div><div><br><div><hr id="ecxstopSpelling">Date: Mon, 18 Aug 2014 13:27:32 +0200<br>From: miconda@gmail.com<br>To: sr-users@lists.sip-router.org<br>Subject: Re: [SR-Users] event_route xhttp:request<br><br>
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="ecxmoz-cite-prefix">On 16/08/14 02:33, Kamrul Khan wrote:<br>
</div>
<blockquote cite="mid:BLU180-W74AF816DA4C035FBA59E91D5D60@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
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="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="ecxmoz-txt-link-freetext" 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>
</pre>
</blockquote>
<br>
<pre class="ecxmoz-signature">--
Daniel-Constantin Mierla
<a class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a class="ecxmoz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="ecxmoz-txt-link-freetext" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
<br>_______________________________________________
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</div></div> </div></div></div> </div></body>
</html>