Hello,
On 9/13/12 10:44 PM, Krishna Kurapati wrote:
Hi,
Is there a module that can be used to collect number of MESSAGEs sent or received by a subscriber; number of registrations by a subscriber? These will be per subscriber as oppose to statistics collected for entire system.
there is no dedicated module for such functionality, but you can achieve it using htable module
Define a hash table where to store the statistics, then you can increment the values using variables:
modparam("htable", "htable", "stats=>size=8;initval=0;") ... if(is_method("REGISTER")) { $var(x) = $shtinc(stats=>regs:$tU); }
You can dump the content of hash table via MI/RPC commands (using kamctl/sercmd).
Cheers, Daniel