QUEUE_MEMBER(..., ready) counts only ready agents, not free agents wrapping up
authorDavid Vossel <dvossel@digium.com>
Wed, 23 Dec 2009 19:14:05 +0000 (19:14 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 23 Dec 2009 19:14:05 +0000 (19:14 +0000)
commit0a5d21e6c7c92b70cf042bb08a6b497ec75c6f87
tree3c47b962536175f1bb541d911c47fc45521cf649
parent065fce73107993d4aa3998978ea8abee529a8f52
QUEUE_MEMBER(..., ready) counts only ready agents, not free agents wrapping up

The QUEUE_MEMBER dialplan function can return total members,
logged-in members and "free" members count. A member is counted
as "free" immediately after his call ends, even though its wrap-up
time, if specified in queues.conf, has not yet expired, and the
queue will not actually route a call to it.

This Patch introduces a new "ready" option that only counts
free agents no longer in the wrap up time period.

(closes issue #16240)
Reported by: kkm
Patches:
      appqueue-memberfun-readyoption-trunk.diff uploaded by kkm (license 888)
Tested by: kkm, dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236308 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_queue.c