<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Jing,<br>
<br>
I have in my script:<br>
xlog ("We have $stat(registered_users) users registered
so far !\n");<br>
and it works perfectly (in 1.11). I placed it just after the
save("location").<br>
<br>
What version do you have? <br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 04.07.2014 12:34, jing wrote:<br>
</div>
<blockquote cite="mid:tencent_3A1F293905CE65D936F088B1@qq.com"
type="cite">
<div>hi,all</div>
<div>I want to get the value of registered_users in my script :</div>
<div> xlog ("$fu not registered, register users
$stat(registered_users)");</div>
<div> </div>
<div>The log shows:</div>
<div><a class="moz-txt-link-abbreviated" href="mailto:sip:10000@10.75.58.9">sip:10000@10.75.58.9</a> not registered, register users 0</div>
<div> </div>
<div>But when I use opensipsctl fifo get_statistics 'usrloc:' in
command line,it shows:</div>
<div>usrloc:registered_users = 4<br>
usrloc:location-users = 4<br>
usrloc:location-contacts = 4<br>
usrloc:location-expires = 0<br>
</div>
<div>I don't how to use the export statistics in script.</div>
<div>regards,</div>
<div> jing</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>