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.
Thanks Krish Kura
Hello,
On 9/13/12 10:44 PM, Krishna Kurapati wrote:
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
Thanks Daniel for quick response.
Can we access these using XMLRPC interface remotely? Appreciate if you could share the command to dump htable.
Thanks
On Fri, Sep 14, 2012 at 3:04 AM, Daniel-Constantin Mierla miconda@gmail.com wrote: