SetGroup( )

SetGroup( ) Sets the channel group to the specified value

 SetGroup(   groupname   [@   category   ]) 

Sets the channel group to the specified groupname value. Equivalent to Set(GROUP= group ) . Used in conjunction with CheckGroup( ) to limit the number of calls accessing a particular resource. A group category may also be set.

Always returns .

 ; limit the number of concurrent receptionist calls to three  exten => s,1,SetGroup(receptionist)  exten => s,2,2,CheckGroup(3)     exten => s,3,Dial(${RECEPTIONIST})     exten => s,103,VoiceMail(u${RECEPTION_VM}) 

See Also

CheckGroup( ) , GetGroupCount( ) , GetGroupMatchCount( )

Asterisk. The Future of Telephony
Asterisk: The Future of Telephony: The Future of Telephony
Year: 2001
Pages: 380 © 2008-2017.
If you may any questions please contact us: