Upgrade 3CX to v18 and get it hosted free!

Asterisk func group_count

Author image

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


 

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.