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
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users