[SR-Users] use of $stat(name)

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 12 10:29:26 CET 2011


Hello,

On 12/12/11 10:17 AM, Uri Shacked wrote:
> hi,
> anyone knows what is the options to use $stat ?
> in siremis there are some examples.
> but, where can i see what kind of names can i write in the (name) part 
> and what kind of info do they give?
using $stat(x) can be done if you load pv module.

There are predefined statistics implemented in modules -- these ones are 
documented in the readmes. Then you can define extra statistics from 
config file via statistics module and operate them in routing blocks.

To see what statistics are available on your kamailio running instance, do:

kamctl fifo get_statistics all

In the output you should get a prefix on statistics name which should 
lead you to the module exporting them -- if there is no such module, 
they are exported by the core, kex module or they are custom.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-users mailing list