Queue priorities and penalties

From MiRTA PBX documentation
Jump to navigation Jump to search

Before starting to use Queue rules, please verify to have it referenced in /etc/asterisk/extconfig.conf

 queue_rules => odbc,asterisk1,queue_rules,1
 queue_rules => odbc,asterisk2,queue_rules,2

When a queue is defined, you list the agents that will be part of the queue.


Based on the strategy, when a call arrives, in this case, all extensions will ring. You may like to arrange the call pattern in more fancy ways, like in the following:

I want 106 to ring first and to ring 104 only if 106 is not available or busy and ring 102 only if both are unavailable or busy

You can achieve this configuration using the Penalties and arranging the agents in the following way


I want 106 to ring first and to ring 104 and 102 only if 106 is busy or not available, after at least 60 seconds.

In this case, the caller will stay in the queue at least 60 seconds before being sent to 104 and 102, if 106 is unavailable or busy. To achieve this configuration, you need to use the Queue rules and the min and max queue penalty. So, arrange the queue penalty as following


Set the min and max penalty


Create a Queue rule as following and assign to the queue

Schermata del 2020-10-09 11-29-44.png

I want 106 to ring first and after 30 seconds to ring 104 and 102

In this case, you need to use the above agents configuration, but to use the queue raise penalty as following