<div dir="ltr">Hi,<div><br></div><div style>Wondering if anyone could please help me debug what is wrong with my kamailio.cfg for Websockets support.  I&#39;m using JsSIP sample application, and I&#39;ve compiled Kamailio 4.0 for WS support.  My config is borrowed from link this link [1].  Wondering if anyone can help me debug this.  Error is bad request, from syslog:</div>
<div style><br></div><div style>Mar 26 19:26:42 ace /usr/local/sbin/kamailio[25774]: ERROR: &lt;core&gt; [tcp_read.c:1296]: ERROR: tcp_read_req: bad request, state=7, error=4 buf:#012GET / HTTP/1.1#015#012Upgrade: websocket#015#012Connection: Upgrade#015#012Host: <a href="http://sip.XXX.net:8888#015#012Origin">sip.XXX.net:8888#015#012Origin</a>: <a href="http://sip.XXX.net#015#012Sec-WebSocket-Protocol">http://sip.XXX.net#015#012Sec-WebSocket-Protocol</a>: sip#015#012Pragma: no-cache#015#012Cache-Control: no-cache#015#012Sec-WebSocket-Key: p2cM0XbAejvloY1h+pACIw==#015#012Sec-WebSocket-Version: 13#015#012Sec-WebSocket-Extensions: x-webkit-deflate-frame#015#012Cookie: _pk_id.6.4c1d=3ee006d4f8af735c.1363914085.2.1364326003.1363915087.; _pk_ses.6.4c1d=*#015#012#015#012#012parsed:#012GET / HTTP/1.1#015#012Upgrade: websocket#015#012Connection: Upgrade#015#012Host: <a href="http://sip.XXX.net:8888#015#012Origin">sip.XXX.net:8888#015#012Origin</a>: <a href="http://sip.XXX.net#015#012Sec-WebSocket-Protocol">http://sip.XXX.net#015#012Sec-WebSocket-Protocol</a>: sip#015#012Pragma: no-cache#015#012Cache-Control: no-cache#015#012Sec-WebSocket-Key: p2cM0XbAejvloY1h+pACIw==#015#012Sec-WebSocket-Version: 13#015#012Sec-WebSocket-Extensions: x-webkit-deflate-frame#015#012Cookie: _pk_id.6.4c1d=3ee006d4f8af735c.1363914085.2.1364326003.1363915087.; _pk_ses.6.4c1d=*#015#012#015#012<br>
</div><div style><br></div><div style>Any ideas?  Can send my kamailio.cfg if necessary.</div><div style><br></div><div style><br></div><div style>[1]  Kamailio sample config for WebSockets</div><div style><a href="https://gist.github.com/jesusprubio/4066845">https://gist.github.com/jesusprubio/4066845</a><br>
</div><div style><br></div></div>