<div dir="ltr"><div><span style="font-size:12.8000001907349px">You can try to just show the extensions without extra text:</span></div><div><br></div><div>fs_cli -x "show registrations" | grep --only-matching --perl-regexp ^<span style="font-size:12.8000001907349px">00294539\\d*</span></div><div><span style="font-size:12.8000001907349px"><br></span><div>Perl regex was used for the number repeat and only matching start of line.</div><div><br></div><div><div>-Avi</div></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">-Avi Marcus<br><br>1-718-989-9485 (USA)<br>1-866-202-5850 (USA & Canada Toll Free)<br>02-372-1570 (Israel)<br>020-3298-2875 (UK)<br></div></div></div>
<br><div class="gmail_quote">On Mon, Jun 8, 2015 at 12:21 PM, Dmitry Mordovin <span dir="ltr"><<a href="mailto:dm@dwide.com" target="_blank">dm@dwide.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I want controll count of registrations.<br>
<br>
For example, registered users:<br>
00294539101<br>
00294539107<br>
00294539109<br>
00334719873<br>
<br>
<br>
How can I get count of registrations where users match 00294539* ?<br>
<br>
I can execute API through Mod event socket on each REGISTER message<br>
<br>
<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>