Zhang Shukun
2010-Jan-12 03:26 UTC
[asterisk-users] is roundrobin and rrmemory the same meaning?
Dear all, I can't understand the diff between roundrobin and rrmemory strategy. Could you explain for me ? and is roundrobin means each available interface ring once or several times and ring another? ; A strategy may be specified. Valid strategies include: ; ; ringall - ring all available channels until one answers (default) ; roundrobin - take turns ringing each available interface ; leastrecent - ring interface which was least recently called by this queue ; fewestcalls - ring the one with fewest completed calls from this queue ; random - ring random interface ; rrmemory - round robin with memory, remember where we left off last ring pass ; ;strategy = ringall Thanks! -- Best regards, Sucan
Tony Mountifield
2010-Jan-12 08:39 UTC
[asterisk-users] is roundrobin and rrmemory the same meaning?
In article <a160a7d61001111926h6d2e6f88m64175b92cfcc2b3a at mail.gmail.com>, Zhang Shukun <bitzsk at gmail.com> wrote:> Dear all, > > I can't understand the diff between roundrobin and rrmemory strategy. > Could you explain for me ? > > and is roundrobin means each available interface ring once or several > times and ring another? > > ; A strategy may be specified. Valid strategies include: > ; > ; ringall - ring all available channels until one answers (default) > ; roundrobin - take turns ringing each available interface > ; leastrecent - ring interface which was least recently called by this queue > ; fewestcalls - ring the one with fewest completed calls from this queue > ; random - ring random interface > ; rrmemory - round robin with memory, remember where we left off last ring pass > ; > ;strategy = ringallBoth roundrobin and rrmemory will ring phones one at a time, for the length of time given in "timeout", and then if not answered will move along to the next phone and ring it. Let's say you have three of more phones in the queue. Phone 1 gets rung but not answered, then Phone 2 gets rung and is answered. When another call comes in, roundrobin would start again with Phone 1, but rrmemory would start with Phone 3, as it was Phone 2 that picked up the last call. Hope this helps, Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Robert Lister
2010-Jan-12 18:25 UTC
[asterisk-users] is roundrobin and rrmemory the same meaning?
On Tue, 2010-01-12 at 11:26 +0800, Zhang Shukun wrote:> Dear all, > > I can't understand the diff between roundrobin and rrmemory strategy. > Could you explain for me ? > > and is roundrobin means each available interface ring once or several > times and ring another?roundrobin is deprecated in 1.4 and you probably shouldn't use it, but rrmemory is probably what you want, trying each extension in order, but continuing the position in the queue where it left off for subsequent calls. roundrobin always starts at the top of the queue and works along rrmemory remembers which queue member was tried last, and continues for subsequent calls from where it left off, rather than starting again from the top of the queue. In 1.6, the old "roundrobin" behaviour (or equivalent) is renamed "linear" and "rrmemory" is renamed "roundrobin" If you want to add some dialplan actions for queue members, have a look at PauseQueueMember and UnpauseQueueMember which allows for queue members to be 'in' and 'out' of the group (although if using Agents then you will probably want to implement agents logging in and out), but you could replace agents with dynamic queues and program buttons on the phones which dial codes to pause and unpause the queue member. Rob