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

GetGroupCount() — Counts the number of members in a particular group

Synopsis

    GetGroupCount([group][@category])

Counts the members in the given group (and optional category) and sets the ${GROUPCOUNT} variable to the corresponding value. If no group is specified, the current channel’s group is used.

Use SetGroup() to assign a call as a member of a particular group.

Always returns 0.

    ; say the number of callers in the tech-support group
    exten => 123,1,GetGroupCount(tech-support)
    exten => 123,2,SayNumber(${GROUPCOUNT})

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