[asterisk-dev] Dynamic queue members with penalty and rrmemory

Mark Michelson mmichelson at digium.com
Wed Oct 17 15:41:56 CDT 2007


Atis Lezdins wrote:
> Hi,
> 
> I'm experiencing something like this:
> 
> Agent A with penalty 0 logs into queue
> Agent B with penalty 1 logs into queue
> Agent C with penalty 1 logs into queue
> Call arrives, it goes to agent A (penalty 0)
> Call arrives, it goes to agent C (penalty 1)
> Agent D with penalty 1 logs into queue
> Call arrives, it goes to agent D (penalty 1)
> 
> and so on.. it is possible for agent B to wait quite some long time (if not 
> forever), until he gets a call. I suppose, it's not expected behaviour. Can 
> anybody confirm?
> 
> Regards,
> Atis
> 

If you're using a recent version of 1.4, then members are not kept in any 
particular order in memory since they are now kept in a hash table. Most likely, 
even though B logs in first, C and D appear earlier when iterating the hash 
table, so they will get calls before B.

Mark Michelson



More information about the asterisk-dev mailing list