Synopsis
Counts the number of channels in the specified group
Description
GROUP_COUNT([groupname][@category])
Calculates the group count for the specified group, or uses the channel’s current group if not specifed (and non-empty).
Notes
- *CLI> show function GROUP_COUNT
Return value
Returns the resulting number.
Example
exten => s,1,GotoIf($[ ${GROUP_COUNT(MyGroup)} > 1 ]?isdn:gsm)
exten => s,n(gsm),NoOp(– Now prepare to dial via GSM –)
exten => s,n(isdn),Set(ISDNINFO=${GROUP_COUNT(MyGroup)})
See also