login | register
Thu 04 of Dec, 2008 [01:50 UTC]

voip-info.org

Discuss [0] History

Asterisk func group_count

Created by: murf,Last modification on Tue 14 of Aug, 2007 [18:56 UTC] by JustRumours

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





Comments