[Freeswitch-users] Count of registrations by regex rule
Dmitry Mordovin
dm at dwide.com
Mon Jun 8 14:16:37 MSD 2015
Thank you!
This helps
On 06/08/2015 01:59 PM, Avi Marcus wrote:
> 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 at dwide.com
> <mailto:dm at 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 at freeswitch.org <mailto:consulting at 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 at lists.freeswitch.org
> <mailto:FreeSWITCH-users at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150608/c1bcd923/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list