Asterisk func group_count
Synopsis
Counts the number of channels in the specified groupDescription
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
Created by: murf, Last modification: Tue 14 of Aug, 2007 (18:56 UTC) by JustRumours
Featured -
Search:

Page Changes






