Menu Chiudi

Gestire i gruppi di utenti

Link interessanti relativi alle code/gruppi di Asterisk:
http://voiptech.altervista.org/it/articoli/asterisk/strategie_ACD.html

I gruppi di utenti sono stati gestiti tramite le “queues”, nello specifico tramite il file /etc/asterisk/queues.conf e
tramite l’applicativo queues direttemente nel file /etc/asterisk/extensions.ael

es.

Link interessanti relativi alle code/gruppi di Asterisk:
http://voiptech.altervista.org/it/articoli/asterisk/strategie_ACD.html

I gruppi di utenti sono stati gestiti tramite le “queues”, nello specifico tramite il file /etc/asterisk/queues.conf e
tramite l’applicativo queues direttemente nel file /etc/asterisk/extensions.ael

es.

# cat /etc/asterisk/queues.conf
[gruppoSegreteria]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoSegreteriaSindaco]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoUrbanistica]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoOperePubbliche]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoQualitaAmbiente]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoAttivitaEconomicheSociali]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoDemografico]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoTributi]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoRagioneriaGenerale]
strategy = ringall
member => SIP/290
member => SIP/293

[gruppoBiblioteca]
strategy = ringall
member => SIP/290
member => SIP/293

e per quanto riguarda l’applicativo “queue”:

Queue(NOMEGRUPPO,c,,,20);

in questo esempio viene richiamata la coda NOMEGRUPPO e attende che qualcuno risponda fino al timeout di 20 secondi.

NB. Nello specifico, vengono fatti suonare contemporaneamente tutti i telefoni appartenenti al gruppo, se un interno risponde
alla chiamata NON verrà registrata alcuna chiamata persa per tutti gli altri interni
.

Sintassi del comanque queue:

core show application Queue

  -= Info about application 'Queue' =- 

[Synopsis]
Queue a call for a call queue. 

[Description]
In addition to transferring the call, a call may be parked and then picked
up by another user.
This application will return to the dialplan if the queue does not exist,
or any of the join options cause the caller to not enter the queue.
This application does not automatically answer and should be preceeded by
an application such as Answer(), Progress(), or Ringing().
This application sets the following channel variable upon completion:
${QUEUESTATUS}: The status of the call as a text string.
    TIMEOUT
    FULL
    JOINEMPTY
    LEAVEEMPTY
    JOINUNAVAIL
    LEAVEUNAVAIL
    CONTINUE

[Syntax]
Queue(queuename[,options[,URL[,announceoverride[,timeout[,AGI[,macro[,gosub[,rule[,position]]]]]]]]])

[Arguments]
options
    C: Mark all calls as "answered elsewhere" when cancelled.

    c: Continue in the dialplan if the callee hangs up.

    d: data-quality (modem) call (minimum delay).

    h: Allow *callee* to hang up by pressing '*'.

    H: Allow *caller* to hang up by pressing '*'.

    n: No retries on the timeout; will exit this application and go to
    the next step.

    i: Ignore call forward requests from queue members and do nothing
    when they are requested.

    I: Asterisk will ignore any connected line update requests or any
    redirecting party update requests it may receive on this dial attempt.

    r: Ring instead of playing MOH. Periodic Announcements are still
    made, if applicable.

    R: Ring instead of playing MOH when a member channel is actually
    ringing.

    t: Allow the *called* user to transfer the calling user.

    T: Allow the *calling* user to transfer the call.

    w: Allow the *called* user to write the conversation to disk via
    Monitor.

    W: Allow the *calling* user to write the conversation to disk via
    Monitor.

    k: Allow the *called* party to enable parking of the call by sending
    the DTMF sequence defined for call parking in "features.conf".

    K: Allow the *calling* party to enable parking of the call by sending
    the DTMF sequence defined for call parking in "features.conf".

    x: Allow the *called* user to write the conversation to disk via
    MixMonitor.

    X: Allow the *calling* user to write the conversation to disk via
    MixMonitor.

URL
     will be sent to the called party if the channel supports it.
timeout
    Will cause the queue to fail out after a specified number of seconds,
    checked between each "queues.conf"  and  cycle.
AGI
    Will setup an AGI script to be executed on the calling party's channel
    once they are connected to a queue member.
macro
    Will run a macro on the calling party's channel once they are
    connected to a queue member.
gosub
    Will run a gosub on the calling party's channel once they are
    connected to a queue member.
rule
    Will cause the queue's defaultrule to be overridden by the rule
    specified.
position
    Attempt to enter the caller into the queue at the numerical position
    specified. '1' would attempt to enter the caller at the head of the queue,
    and '3' would attempt to place the caller third in the queue.
WordPress Appliance - Powered by TurnKey Linux