[OpenSIPS-Users] opensipsctl fifo get_statistics 'usrloc:' registered_users=3, but in script stat(registered_users) is always 0
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jul 4 12:08:09 CEST 2014
Hi Jing,
I have in my script:
xlog ("We have $stat(registered_users) users registered so far
!\n");
and it works perfectly (in 1.11). I placed it just after the
save("location").
What version do you have?
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 04.07.2014 12:34, jing wrote:
> hi,all
> I want to get the value of registered_users in my script :
> xlog ("$fu not registered, register users $stat(registered_users)");
> The log shows:
> sip:10000 at 10.75.58.9 not registered, register users 0
> But when I use opensipsctl fifo get_statistics 'usrloc:' in command
> line,it shows:
> usrloc:registered_users = 4
> usrloc:location-users = 4
> usrloc:location-contacts = 4
> usrloc:location-expires = 0
> I don't how to use the export statistics in script.
> regards,
> jing
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140704/8c7b2348/attachment.htm>
More information about the Users
mailing list