asterisk 隊列策略

; A strategy may be specified.  Valid strategies include:
;
; ringall - ring all available channels until one answers (default)
振鈴所有可到達的分機直到有接聽的
; leastrecent - ring interface which was least recently hung up 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
基於內存的循環振鈴,記住上次被振鈴的分機。
; rrordered - same as rrmemory, except the queue member order from config file 
;             is preserved
和rrmemory類似,振鈴順序按照配置文件中的隊列成員保存順序
; linear - rings interfaces in the order specified in this configuration file.
;          If you use dynamic members, the members will be rung in the order in
;          which they were added
按照配置文件中指定的順序振鈴,如果是動態成員,則按動態成員的添加順序。
; wrandom - rings random interface, but uses the member's penalty as a weight
;           when calculating their metric. So a member with penalty 0 will have
;           a metric somewhere between 0 and 1000, and a member with penalty 1 will
;                       have a metric between 0 and 2000, and a member with penalty 2 will have
;           a metric between 0 and 3000. Please note, if using this strategy, the member
;           penalty is not the same as when using other queue strategies. It is ONLY used
;           as a weight for calculating metric.
隨機振鈴,但是使用成員的懲罰值作爲一個度量標準。因此成員懲罰值0度量標準爲0-1000,懲罰只1度量標準爲0-2000,懲罰值2度量標準爲0-3000。請注意,如果用這個策略,這個成員懲罰值不同於其他隊列的策略,它僅用於權重度量標準。


leastrecent和fewestcalls可能會造成隊列不停的把進來的電話分配到某個分機上,如果該分機處於通話中並且通話時間比較長的話會造成很大的電話損失。


roundrobin和rrmemory看起來好像並沒有什麼不同,但它們之間還是有區別。最大的區別在於roundrobin記住上次開始的分機,然後從下一個開始。假設有1,2,3三個分機,如果第1個電話是1->2->3的順序呼叫隊列的話,第2個電話將會是 2->3->1的順序呼叫隊列,第3個電話就是3->1->2。而rrmemory記住上次最後呼叫的分機,然後從下一個開始。假設還是有1,2,3三個分機,第1個電話呼叫順序是1->2,分機2接了或者電話掛斷;那麼第2個電話來將是按3->1->2的順序來呼叫,如果是roundrobin,第2個電話進來應該是按2->3->1的順序呼叫
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章