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 0.

    ; 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( )