Daniel Tryba
2011-Jan-04 17:26 UTC
[asterisk-users] Queues, priorities and (miscalculated) holdtimes
Anyone ever noticed that the reported holdtime is wrong when there are different priorities? Also talktime is 0, but for the moment I don't care. "queue show test" reports: test has 23 calls (max unlimited) in 'ringall' strategy (193s holdtime, 0s talktime) [...] Callers: 1. Local/351 at default-8828;2 (wait: 3:32, prio: 15) 2. Local/351 at default-8361;2 (wait: 3:32, prio: 15) [...] 6. Local/1651 at default-b575;2 (wait: 9:25, prio: 10) 7. Local/1651 at default-fce5;2 (wait: 9:21, prio: 10) [...] 22. Local/351 at default-89fb;2 (wait: 6:45, prio: 5) 23. Local/351 at default-7264;2 (wait: 0:08, prio: 5) The reported holdtime to the caller is 3 minutes! The wait time of caller number 1, instead of the 9 minutes holdtime of caller number 6. This is a realtime Queue on 1.6.2.13. Also can the priority be changed dynamically (using AMI)? For now I'm using: exten => s,n,Set(QUEUE_PRIO=5) exten => s,n,Queue(test,twrC,,,900) exten => s,n,Set(QUEUE_PRIO=15) exten => s,n,Queue(test,twr,,,3600) some callers and exten => s,n,Set(QUEUE_PRIO=10) exten => s,n,Queue(test,twr,,,3600) for all others. Changing the the priority dynamically depending on context and waittime should avoid the wrong reported holdtime. -- Daniel Tryba