Asterisk func group_match_count

Synopsis:

Counts the number of channels in the groups matching the specified pattern

Description:

GROUP_MATCH_COUNT(groupmatch@category)

Calculates the group count for all groups that match the specified pattern.
Uses standard regular expression matching (see regex(7)).

New in Asterisk 1.8: GROUP_MATCH_COUNT has been improved to allow regex matching on category

Notes

  • *CLI> show function GROUP_MATCH_COUNT

Return value

Returns the resulting string.

Example

exten => s,1,Set(foo=${GROUP_MATCH_COUNT(g[0-3])})


See also



Created by: murf, Last modification: Sat 24 of Jul, 2010 (04:22 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! - support@voip-info.org

Page Changes | Comments

 

Featured -

Search: