[SR-Users] Accessing Message Buffer in Kamailio

AliReza Khoshgoftar Monfared khoshgoftar at gmail.com
Fri Aug 8 20:08:18 CEST 2014


Thanks very much Daniel,
So, I assume that to look at the congestion of the messages there are two
options:

1) surveying the socket buffer using netstat
2) counting processed messages of Kamailio inside the route block

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?

Warmly,
Alireza


On Fri, Aug 8, 2014 at 2:12 AM, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

>  Hello,
>
> 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.
>
> 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.
>
> 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).
>
> Cheers,
> Daniel
>
>
> On 07/08/14 19:06, AliReza Khoshgoftar Monfared wrote:
>
> Hi list,
>
>  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?
>
>  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.)?
>
>
>  I know that the ratelimit module (
> http://kamailio.org/docs/modules/stable/modules/ratelimit.html) shall
> access such buffers, but I do not see any variable accessible in the config
> offered by that module.
>
>  Am I missing sth or is there a way to do so?
>
>  Thanks
> Alireza
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
> Sep 22-25, Berlin, Germany ::: Oct 15-17, San Francisco, USA
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140808/57e993b5/attachment.html>


More information about the sr-users mailing list