<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.4.3">
</HEAD>
<BODY>
Hi Juha,<BR>
<BR>
The tcp_accept_no_cl=yes is just to enable Kamailio to accept TCP/TLS messages without a Content-Length: header. Some bad SIP clients send these, and it is not always used in HTTP GETs either - and you need to handle an HTTP GET as part of the WebSocket handshake.<BR>
<BR>
I have no idea about the specifics of that test. It's not something I've ever used. But, the sipML5 client does send quite large INVITEs, so I wouldn't be at all surprised if they were larger than 4096 bytes.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Mon, 2012-07-09 at 17:21 +0300, Juha Heinanen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Peter Dunkley writes:
> Also, make sure tcp_accept_no_cl=yes is in your kamailio.cfg.
that got me further. register request now works ok, but when i send
invite, it fails in this test:
if (msg:len >= 4096) {
xlog("L_NOTICE", "Message $rm to <$ru> is too big\n");
send_reply("513", "Message too big");
exit;
};
is it so that msg:len test cannot be used when tcp_accept_no_cl=yes? if
so, what is alternative test to make sure that message is not too big?
-- juha
_______________________________________________
sr-dev mailing list
<A HREF="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
--
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>