<DIV>hi,Bogdan</DIV>
<DIV>I found the problem,you are right ,thank you.</DIV>
<DIV>regards,</DIV>
<DIV>jing</DIV><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;Original&nbsp;------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Bogdan-Andrei Iancu"&lt;bogdan@opensips.org&gt;; </div><div><b>Date:</b> 2014年7月4日(星期五) 晚上6:08</div><div><b>To:</b> "users"&lt;users@lists.opensips.org&gt;; "jing "&lt;605507247@qq.com&gt;; </div><div><b>Subject:</b> Re: [OpenSIPS-Users] opensipsctl fifo get_statistics &#39;usrloc:&#39; registered_users=3,but in script stat(registered_users) is always 0</div></div><div><br></div><DIV class=moz-cite-prefix><TT>Hi Jing,<BR><BR>I have in my script:<BR>&nbsp; &nbsp; &nbsp; &nbsp; 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" target=_blank>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>&nbsp; xlog ("$fu not registered, register users $stat(registered_users)");</DIV>
<DIV>&nbsp;</DIV>
<DIV>The log shows:</DIV>
<DIV><A class=moz-txt-link-abbreviated href="mailto:sip:10000@10.75.58.9" target=_blank>sip:10000@10.75.58.9</A> not registered, register users 0</DIV>
<DIV>&nbsp;</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>&nbsp;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" target=_blank>Users@lists.opensips.org</A>
<A class=moz-txt-link-freetext href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target=_blank>http://lists.opensips.org/cgi-bin/mailman/listinfo/users</A>
</PRE></BLOCKQUOTE><BR>