Summary: | ASTERISK-17931: [patch] Asterisk do not respect order of queue members | ||
Reporter: | Dmitry Dudkin (ddv2005) | Labels: | |
Date Opened: | 2011-05-26 14:57:52 | Date Closed: | 2011-05-26 19:18:47 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_queue |
Versions: | 1.6.2.18 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ( 0) queue.patch | |
Description: | Asterisk do not respect order of queue members. app_queue use the ao2 list to store members list, but ao2 re-order all items because it use hash functions to store data. And any enumeration of the members depends on its hash function instead of how it was added. | ||
Comments: | By: Dmitry Dudkin (ddv2005) 2011-05-26 15:01:28 I found that for QUEUE_STRATEGY_LINEAR strategy it use only single bucket to respect the order but QUEUE_STRATEGY_RRMEMORY depends on order too By: Bradley Watkins (marquis) 2011-05-26 19:17:58 If you require this behavior, then you should use the rrordered. It might not yet be in a release, but is already committed and will be in the next release. |