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})

Get Asterisk: The Future of Telephony now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.