[asterisk-dev] Dynamic queue members with penalty and rrmemory
Atis Lezdins
atis at iq-labs.net
Wed Oct 17 16:03:47 CDT 2007
On Wednesday 17 October 2007 23:41:56 Mark Michelson wrote:
> 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.
Well, not quite - i grep'ed changelog, and astobj2 is added in 1.4.12, but i
have 1.4.10.
Any ideas on fixing this? New strategies?
Regards,
Atis
--
Atis Lezdins
VoIP Developer,
IQ Labs Inc.
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Work phone: +1 800 7502835
More information about the asterisk-dev
mailing list