[Home]

Summary:ASTERISK-17570: [patch] queue does not handle longest waiting caller first
Reporter:Sjoerd (telecats)Labels:patch
Date Opened:2011-03-17 08:01:47Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Applications/app_queue
Versions:1.8.3 13.18.4 Frequency of
Occurrence
Related
Issues:
is duplicated byASTERISK-17732 [patch] With multiple queues & agents, calls with the longest waiting time don't always get handled first
Environment:Attachments:( 0) app_queue.patch
( 1) auto_weight_queue_usec.patch
Description:If you have two or more queues with shared agents (agents logged in to both queues), both queues have the same chance of getting an agent. Suppose you have a busy and a quiet queue it is not desirable to have the same chance, the busy queue should get much more.



****** ADDITIONAL INFORMATION ******

I've made a patch that introduces a auto-weight feature. If enabled every caller to the queue has a weight equal to its holdtime. This way the queue with the highest holdtime will get served first.
Comments:By: Marcos Jose Setim (msetim) 2011-03-24 13:54:18

Sorry guys,

I need to speak to oeboema but I can't figure out your contact address.I wanna to buy a development of this patch to 1.4. Do you have interest for this job?

To avoid spammers please send me a message on http://twitter.com/msetim

By: dimitripietro (dimitripietro) 2011-04-05 13:14:49

I'm confused when I read the description. I'm under the impression that it gives priority to the queue with more people waiting on hold. Which means that the queue with less people would have longer hold times. Is this understanding correct?

By: Rafael Prado Rocchi (prado) 2011-04-17 16:52:49

I converted and applied you patch to our 1.4 version.
It worked fine.

The test scario was:

Two empty queues, respectively queue1 and queue2.
We put some calls waiting on both queues, the calls were put with a delay of one minute each.

Next I logged the same agent on both queues.

The longest waiting call were answered by that agent.


Tried diferent combinations, with more agent,calls and queues. The feature worked like promissed.

By: silentaccord (silentaccord) 2011-04-20 10:29:31

Prado, can you upload the patch for 1.4? I would like to test this as well.

Does this fix have any chance of making it into SVN for version 1.4 now that 1.4 is entering the final year of support with only security fixes after 2011-04-21?

By: laszlovl (lvl) 2011-04-21 05:49:10

I just submitted another patch for this issue, one with a complete different approach: ASTERISK-17732 (we started development on it before this patch was submitted)

For the Asterisk 1.4 users: you should check out http://lists.digium.com/pipermail/asterisk-users/2010-January/243598.html : it's a working patch for this problem for 1.4



By: millsu2 (millsu2) 2013-10-09 15:49:16.202-0500

Will the original reporter please re-submit the patch?

By: Sébastien Couture (sysreq) 2016-06-08 10:23:36.153-0500

I know it's been a while, but we're still looking for a solution for this issue on Asterisk 11 and up. Any chance the original poster, or someone else, has been using this patch and ported it to 11 as well? I'd be willing to port it myself if not.

By: Sjoerd Boomstra (oeboema) 2016-06-09 02:56:03.515-0500

Hi Sebastien,

We don't use Asterisk11 here, so I did not port this patch to Asterisk11. Perhaps others did.

Best regards,
Sjoerd.

By: Sébastien Couture (sysreq) 2016-06-09 08:43:50.552-0500

Hi Sjoerd,

Thanks for your answer! Would you perhaps have that patch, no matter which version of Asterisk you're using? It is not attached to the JIRA issue anymore. Like I said, I'd be willing to port it to Asterisk 11 myself, but I just need the original patch to do that.

Any help would be appreciated!

By: Sébastien Couture (sysreq) 2016-06-13 14:01:46.538-0500

Sjoerd,

Sorry to be a bother, but by "we don't use Asterisk 11 here", did you mean that you only had that patch for an earlier version of Asterisk, or that you weren't using Asterisk at all?

Like I said previously, I would _greatly_ appreciate if you could provide this patch for ANY version of Asterisk. I would gladly try to port it to Asterisk 11 and up.

Thank you for your help!

By: Sjoerd Boomstra (oeboema) 2016-06-15 09:32:27.632-0500

My improved patch for asterisk 1.8

By: Sébastien Couture (sysreq) 2016-06-15 09:36:51.014-0500

Thank you so much Sjoerd!