Hi, Found the issue. I needed to configure, tcp_accept_no_cl=yes. Working fine now.


From: dodul@live.com
To: miconda@gmail.com; sr-users@lists.sip-router.org
Subject: RE: [SR-Users] event_route xhttp:request
Date: Mon, 18 Aug 2014 21:38:18 +0600

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.


Date: Mon, 18 Aug 2014 13:27:32 +0200
From: miconda@gmail.com
To: sr-users@lists.sip-router.org
Subject: Re: [SR-Users] event_route xhttp:request

Hello,

can you check to be sure that event_route is not in a disable part of config by #!ifdef conditions?

Cheers,
Daniel

On 16/08/14 02:33, Kamrul Khan wrote:
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 ?


_______________________________________________
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

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA

_______________________________________________ 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