[SR-Users] How to check message queue (buffer) in Kamailio

Morten Isaksen misak at misak.dk
Wed Jul 2 12:57:10 CEST 2014


Hi,

You can use netstat and look at the Recv-Q counter. This should indicate
the packets that is waiting for kamailio to process.

/Morten


On Tue, Jul 1, 2014 at 1:12 PM, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

>  Hello,
>
> the SIP messages send on UDP/SCTP are received directly from the buffer in
> kernel one by one, each being processed once read. It is hard to know how
> many are waiting in the kernel.
>
> My question would be, when such information would really help? If kamailio
> is too busy handling traffic, won't get much time to care of other tasks
> (e.g., predict what is in network read kernel queue).
>
> Cheers,
> Daniel
>
>
> On 30/06/14 16:40, AliReza Khoshgoftar Monfared wrote:
>
>  Hi,
>
>  I had another simple question:
>
>  In a kamailio server (proxy), how do I check the number of messages
> currently waiting for processing?
>
>
>  Is there a variable that I can monitor, say, if I want to make a routing
> decision in my config based on the number of messages in the queue?
>
>  Also, is it possible to get a head count by method? or is it only
> possible after fully parsing the message?
>
>  I see that "ratelimit" module uses similar information, but I am not
> sure how to get the status of these queues that the module uses.
>
>  Thanks
>
>
> _______________________________________________
> 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 Mierla - http://www.asipto.comhttp://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
>
>
> _______________________________________________
> 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
>
>


-- 
Morten Isaksen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140702/3e6e4777/attachment.html>


More information about the sr-users mailing list