<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 18/08/14 17:38, Kamrul Khan wrote:<br>
</div>
<blockquote cite="mid:BLU180-W516377A9FB7DB09643E277D5D40@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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 ?</span></div>
</div>
</blockquote>
No special #!ifdef needed -- what I meant was to check that you
didn't add the event_route inside an #!ifdef or #!else with
undefined id. <br>
<br>
Cheers,<br>
Daniel<br>
<blockquote cite="mid:BLU180-W516377A9FB7DB09643E277D5D40@phx.gbl"
type="cite">
<div dir="ltr">
<div><span style="font-size: 12pt;"> 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="stopSpelling">Date: Mon, 18 Aug 2014 13:27:32 +0200<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><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 moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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 moz-do-not-send="true" 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
<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></div>
</div>
</div>
</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>