Debian Codegraph @

configs/samples/queuerules.conf.sample

raw
1
2 [general]
3
4 ; Look for queue rules in the queue_rules database table through RealTime. Note
5 ; that this option is not strictly "RealTime", in the sense that the queue
6 ; rules are only loaded and parsed during module load/reload. Queue rules
7 ; must have a unique rule name and support relative min/max penalties.
8 ;
9 ; realtime_rules = yes
10 ;
11
12 ; It is possible to change the value of the QUEUE_MAX_PENALTY, QUEUE_MIN_PENALTY and QUEUE_RAISE_PENALTY
13 ; channel variables in mid-call by defining rules in the queue for when to do so. This can allow for
14 ; a call to be opened to more members or potentially a different set of members.
15 ; The advantage to changing members this way as opposed to inserting the caller into a
16 ; different queue with more members or reinserting the caller into the same queue with a different
17 ; QUEUE_MAX_PENALTY or QUEUE_MIN_PENALTY set is that the caller does not lose his place in the queue.
18 ;
19 ; QUEUE_MAX_PENALTY, QUEUE_MIN_PENALTY and QUEUE_RAISE_PENALTY only apply to a queue call, and are only
20 ; modified by these rules if they are initially set in the dialplan.
21 ;
22 ; If QUEUE_MIN_PENALTY is set, agents with a lower penalty value will not be considered for the caller.
23 ; If QUEUE_MAX_PENALTY is set, agents with a higher penalty value will not be considered for the caller.
24 ; If QUEUE_RAISE_PENALTY is set, agents with a lower penalty will be treated as having a penalty = QUEUE_RAISE_PENALTY.
25 ;
26 ; QUEUE_RAISE_PENALTY example:
27 ; - Agent 1 has penalty 1
28 ; - Agent 2 has penalty 2
29 ; - the queue rule is set to:
30 ; penaltychange => 30,,,2
31 ;
32 ; Prior to the 30 second mark, Agent 1 will take priority over Agent 2 for call distribution.
33 ; After 30 seconds, Agent 1's priority is bumped to 2 by the penaltychange, so both agents are treated equally.
34 ;
35 ; Note: There is a limitation to these rules; a caller will follow the penaltychange rules for
36 ; the queue that were defined at the time the caller entered the queue. If an update to the rules is
37 ; made during the caller's stay in the queue, these will not be reflected for that caller.
38 ;
39 ; The syntax for these rules is
40 ; penaltychange => <number of seconds into the call>,<absolute or relative change to QUEUE_MAX_PENALTY>[,absolute or relative change to QUEUE_MIN_PENALTY][,absolute or relative change to QUEUE_RAISE_PENALTY or rN>]
41 ;
42 ; - If QUEUE_RAISE_PENALTY is set to rN (e.g., r20), only agents with penalty between QUEUE_MIN_PENALTY and QUEUE_MAX_PENALTY (inclusive)
43 ; will have their penalty raised to N. Others remain unchanged.
44 ; Example:
45 ; [myrule]
46 ; penaltychange => 30,+3 ; 30 seconds into the call increase the QUEUE_MAX_PENALTY by 3, no change to QUEUE_MIN_PENALTY
47 ; penaltychange => 60,10,5 ; 60 seconds into the call increase the QUEUE_MAX_PENALTY to 10 and increase the QUEUE_MIN_PENALTY to 5
48 ; penaltychange => 75,,7 ; 75 seconds into the call keep the QUEUE_MAX_PENALTY the same and increase the QUEUE_MIN_PENALTY to 7
49 ; penaltychange => 90,,,20 ; 90 seconds into the call leave QUEUE_MAX_PENALTY and QUEUE_MIN_PENALTY untouched and set QUEUE_RAISE_PENALTY to 20
50 ; penaltychange => 120,5,3,r20 ; After 120 seconds, set max=5, min=3, and raise only agents with penalty 3–5 to 20