[SR-Users] stats in kamailio

Juha Heinanen jh at tutpro.com
Mon Apr 18 11:35:32 CEST 2011


Daniel-Constantin Mierla writes:

> Here is what I do if I want to get like "load" stats - i.e., number of 
> events in a specific period of time. For example number of 2xx 
> transactions per minute:
> 
> Load htable module and define a htable, say stats.
> 
> In event_route[htable:mod-init] I set $sht(stats=>2xx_transactions) =
> 0;

i'm coming back to this rather old thread.  my question is, what is the
benefit (if any) of using htable to store the stats as opposed to shared
variables ($shv instead of $sht)?

-- juha



More information about the sr-users mailing list