[asterisk-bugs] [Asterisk 0009165]: Extend RRMEMORY strategy to use penalty (1.4.0 and 1.2.15)

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Aug 22 16:34:46 CDT 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=9165 
====================================================================== 
Reported By:                x893
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   9165
Category:                   Applications/app_queue
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.4.0 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
Resolution:                 suspended
Fixed in Version:           
====================================================================== 
Date Submitted:             02-27-2007 23:49 CST
Last Modified:              08-22-2007 16:34 CDT
====================================================================== 
Summary:                    Extend RRMEMORY strategy to use penalty (1.4.0 and
1.2.15)
Description: 
As for now if RRMEMORY startegy is chosen Queue calls only members with
lowest penalty. It will never call member if any member with lower penalty
is available, even if it doesn't answer.

For example, we have 4 members in queue:

Member 1 with Penalty 0
Member 2 with Penalty 0
and
Member 3 with Penalty 1
Member 4 with Penalty 1

Member 3 & 4 will never be called if Member 1 and Member 2 don't answer
the phone. Queue will try to call Member 1 and Member 2 forever.

I added new strategy called XRRMEMORY which can be chosen in queue.conf.
Using this strategy Queue will try all members with penalty=0 then it will
try members with penalty=1 and so on. Moreover it remembers the members it
called last time for each peanlty and next time if it reaches this penalty
it will dial next member.

This strategy support penalty from 0 to 9 (you can change #define
MAX_QUEUE_PENALTY  9 constant in app_queue.c)

====================================================================== 

---------------------------------------------------------------------- 
 qwell - 08-22-07 16:34  
---------------------------------------------------------------------- 
Closing.

Please reopen once you've submitted a license agreement via mantis, and
reupload the patches. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-22-07 16:34  qwell          Note Added: 0069283                          
======================================================================




More information about the asterisk-bugs mailing list