[Asterisk-Users] Queue Prioritization

Peter Svensson psvasterisk at psv.nu
Tue Nov 2 14:19:05 MST 2004


On Tue, 2 Nov 2004, TC wrote:

> > I have been thinking about adding inter-queue dependencies to ICD. It
> > seems better suited to more advanced queues than the built in queue
> > system.
> >
> > Another option in icd would be to keep all callers in one queue and then
> > pop the first customer whose profile matches the agent. That change seemed
> > not to be too hard to make.

> yah but now you serial all the load on that 1 thread & what happens when
> you want each q to have it normal strategy but only allowed to work
> based on the queuepriority ...this is not the way to go unless you want it
> quick & dirty

It has some advantages though. It is ideal if you want to be "fair", 
menaing all customers wait in the same line regardless of which language 
they speak. Then each time an agent becomes available it will check and 
pop the first matching customer. This way there can be no starvation in 
one queue. For our setup this really is the ideal behaviour, that is what 
we want to have.

You are right though, it is not several different prioritized queues. It 
is one queue with properties on the callers (agents andd customers). 

I was thinking of adding it as a property list on the callers and then 
creating a version of the link_via_pop function that uses 
something similar to icd_list__find to find the first matching customer 
for a given agent. 

Peter





More information about the asterisk-users mailing list