[OpenSIPS-Users] opensipsctl fifo get_statistics 'usrloc:' registered_users=3, but in script stat(registered_users) is always 0
jing
605507247 at qq.com
Mon Jul 7 07:56:57 CEST 2014
hi,Bogdan
I found the problem,you are right ,thank you.
regards,
jing
------------------ Original ------------------
From: "Bogdan-Andrei Iancu"<bogdan at opensips.org>;
Date: 2014年7月4日(星期五) 晚上6:08
To: "users"<users at lists.opensips.org>; "jing "<605507247 at qq.com>;
Subject: Re: [OpenSIPS-Users] opensipsctl fifo get_statistics 'usrloc:' registered_users=3,but in script stat(registered_users) is always 0
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.comOn 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/20140707/c5e1f406/attachment.htm>
More information about the Users
mailing list