[Asterisk-Users] SetGroup and CheckGroup problems

Kevin P. Fleming kpfleming at starnetworks.us
Mon Jan 24 20:24:41 MST 2005


Mike Sander wrote:
> I have a rather long dial plan, but it includes support for call waiting.
> However, the setgroup checkgroup commands don't seem to be working. Can
> anyone help on this one?

Long story short: you cannot put a channel into two groups, unless you 
add "categories" to your group names. Calling SetGroup multiple times 
without category designators just replaces the channel's group each time 
you call it.

However, you do not need to use SetGroup/CheckGroup to check a group's 
status; you can use GetGroupCount to directly check any group you want, 
even one that the current channel is not in. If you are using CVS HEAD, 
you can even use GetGroupMatchCount to get counts of multiple groups 
with similar names. Also in CVS HEAD, you can set OUTBOUND_GROUP before 
calling Dial(), and the channels it creates to actually call the targets 
will be automatically placed into that group, as if you had used 
SetGroup on them (which you cannot do normally, since you can't run any 
dialplan code on those channels).



More information about the asterisk-users mailing list