<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 3/23/12 3:15 PM, Jijo wrote:
<blockquote
cite="mid:CAOYmDE8VDMp3GzGhfFPQu14m=j6y2O0Vc7cm+Q0giK1_vCMD3w@mail.gmail.com"
type="cite">Hello,
<div><br>
</div>
<div>Yes it is sending CRLF after the second CRLF from client. </div>
<div><br>
</div>
<div>Another thing is, Kamailio would send CRLF even if the second
CRLF come after few seconds.</div>
<div><br>
</div>
<div>
I believe we don't have any way to drop it ?</div>
</blockquote>
<br>
not really, in a stream protocol, such delays can appear due to
congestions in some routers -- the apps just have to keep reading
until a format error, packet is complete or connection is closed.
Few seconds could be very common in between parts of large sip
messages.<br>
<br>
Are these sequential CRLFs causing problems?<br>
<br>
Cheers,<br>
Daniel <br>
<br>
<blockquote
cite="mid:CAOYmDE8VDMp3GzGhfFPQu14m=j6y2O0Vc7cm+Q0giK1_vCMD3w@mail.gmail.com"
type="cite">
<div><br>
</div>
<div>Thanks</div>
<div>Jijo</div>
<div><br>
<br>
<div class="gmail_quote">On Fri, Mar 23, 2012 at 5:34 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
is kamailio sending crlf after the second crlf from the
client?<br>
<br>
There is no notion of a packet in a stream connection,
even a sip packet can be send char by char and the server
has to assemble it by keep reading in a local buffer until
all is retrieved.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
On 3/23/12 1:50 AM, Jijo wrote:
<blockquote type="cite">Hi
<div><br>
</div>
<div>Sorry for the late reply,</div>
<div><br>
</div>
<div>I observed this issue when testing with broken
TLS UA, which was sending CRLF in two packets
instead of double CRLF in a single packet.</div>
<div><br>
</div>
<div>It is very easy to recreate using openssl
s_client command , where kamailio as server</div>
<div><br>
</div>
<div> openssl s_client -connect <a
moz-do-not-send="true"
href="http://192.168.2.151:5061" target="_blank">192.168.2.151:5061</a>
-CAfile serverCA.pem -crlf</div>
<div><br>
</div>
<div><br>
</div>
<div>After the connection established by the client,
Press enter key two times from the key board,
which will send CRLF in two packet to server and
You would see CRLF replied back by Kamailio </div>
<div><br>
</div>
<div>Note:-crlf will send CR as CRLF in a single
packet to server. </div>
<div><br>
</div>
<div>Thanks</div>
<div>Jijo</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<br>
<div class="gmail_quote">On Sat, Mar 10, 2012 at
6:27 AM, Daniel-Constantin Mierla <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">Hello,<br>
<br>
looking at the code, it seems that CRLF is
sent only after CRLFCRLF. Can you get a pcap
for your case?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="gmail_quote">
<div>
<div>On Tue, Feb 28, 2012 at 5:28 PM, Jijo
<span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:realjijo@gmail.com"
target="_blank">realjijo@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px
#ccc solid;padding-left:1ex">
<div>
<div>Hi All.
<div><br>
</div>
<div>As per the tcp_crlf_ping
description, kamailio shall reply
CRLF only when it receives "CRLF
CRLF". But In the 3.1.0 version, if
kamailio recieves "CRLF", it respond
back CRLF. Is this an expected
behavior or an error?</div>
<div><br>
</div>
<div>Thanks</div>
<span><font color="#888888">
<div>Jijo</div>
</font></span><br>
</div>
</div>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
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><br>
<br>
</blockquote>
</div>
<span><font color="#888888"><br>
<br clear="all">
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a moz-do-not-send="true"
href="http://www.asipto.com"
target="_blank">http://www.asipto.com</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
<span class="HOEnZb"><font color="#888888">
<pre cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a moz-do-not-send="true" href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>