Asterisk func group_count

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




Created by: murf, Last modification: Tue 14 of Aug, 2007 (18:56 UTC) by JustRumours


Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+

Page Changes | Comments

 

Featured -

Search: