<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
for UDP and SCTP traffic there is no buffer in Kamailio. The kernel
does buffering and kamailio receives each datagram at once, process
it and then gets the next one.<br>
<br>
For tcp (tls), there is a read buffer in kamailio to parse as
received, because it has to split the traffic in sip messages. But
still the main buffer is in kernel.<br>
<br>
In other words, kamailio doesn't have access to pending packets from
the network. Ratelimit module works on the number of packets
processed by kamailio (those already read from kernel buffer).<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 07/08/14 19:06, AliReza Khoshgoftar
Monfared wrote:<br>
</div>
<blockquote
cite="mid:CABoSzTsto5whN6z+6KrKJR9bmR=N9tCc=YdyAJMh5cP3QRrhvQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi list,
<div><br>
</div>
<div>Is there a way to survey the message buffer (iei the queue
where arriving sip messages wait to be processed by worker
threads) in Kamailio?</div>
<div><br>
</div>
<div>Is there a way to check the number of messages in this
buffer? Additionally, is it possible to survey the number of
messages by method (INVITE, BYE, etc.)?</div>
<div><br>
</div>
<div><br>
</div>
<div>I know that the ratelimit module (<a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules/ratelimit.html">http://kamailio.org/docs/modules/stable/modules/ratelimit.html</a>)
shall access such buffers, but I do not see any variable
accessible in the config offered by that module.</div>
<div><br>
</div>
<div>Am I missing sth or is there a way to do so?</div>
<div><br>
</div>
<div>Thanks</div>
<div>Alireza</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
</pre>
</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>