You can try to just show the extensions without extra text:

fs_cli -x "show registrations" | grep --only-matching --perl-regexp ^00294539\\d*

Perl regex was used for the number repeat and only matching start of line.

-Avi

-Avi Marcus

1-718-989-9485 (USA)
1-866-202-5850 (USA & Canada Toll Free)
02-372-1570 (Israel)
020-3298-2875 (UK)

On Mon, Jun 8, 2015 at 12:21 PM, Dmitry Mordovin <dm@dwide.com> wrote:
Hello,

I want controll count of registrations.

For example, registered users:
  00294539101
  00294539107
  00294539109
  00334719873


How can I get count of registrations where users match  00294539* ?

I can execute API through Mod event socket on each REGISTER message



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org