<div dir="ltr">Thanks very much Daniel,<div>So, I assume that to look at the congestion of the messages there are two options:</div><div><br></div><div>1) surveying the socket buffer using netstat</div><div>2) counting processed messages of Kamailio inside the route block</div>

<div><br></div><div>And I assume that Ratelimit does the latter, right? ie it maintains a counter that is incremented after parsing any message and decremented after it is relayed?</div><div><br></div><div>Warmly,</div><div>

Alireza</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 2:12 AM, Daniel-Constantin Mierla <span dir="ltr"><<a 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">
  
    
  
  <div 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<div><div class="h5"><br>
    <br>
    <div>On 07/08/14 19:06, AliReza Khoshgoftar
      Monfared wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <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 href="http://kamailio.org/docs/modules/stable/modules/ratelimit.html" target="_blank">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></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a 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><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA</pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a 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><br></div>