O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

GetGroupMatchCount() — Counts the number of members in all groups matching the specified pattern

Synopsis

    GetGroupMatchCount(groupmatch[@category])

Counts the number of members in all groups matching the regular expression specified by groupmatch. The result is stored in the ${GROUPCOUNT} variable.

Note that standard regular expressions are used in the groupmatch argument.

Always returns 0.

    ; get the count of members in any group that starts with tech
    exten => 123,1,GetGroupMatchCount(tech.*)
    exten => 123,2,SayNumber($GROUPMATCH)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required