O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SetGroup() — Sets the channel group to the specified value

Synopsis

    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})

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required