[SR-Users] stats in kamailio
Daniel-Constantin Mierla
miconda at gmail.com
Mon Apr 18 11:45:53 CEST 2011
On 4/18/11 11:35 AM, Juha Heinanen wrote:
> 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)?
the benefit of using htable is dynamic name for keys, otherwise the
shared variables are faster to access.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-users
mailing list