aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-28 20:11:57 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-28 20:11:57 +0000
commit100b7c0602878e76f2d0ee2d9c3e24cda1ad81e1 (patch)
treef38c372e2e514006d2298359a9494cfc0c0ddcde /apps
parenta166a1242cd1f6e9f17f965853d07097a59aab68 (diff)
When using autofill, members who are in use should be counted towards the
number of available members to call if ringinuse is set to yes. Thanks to jmls who brought this issue up on IRC git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@105059 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index f8ef4cb2d..2378b70e9 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -2393,6 +2393,10 @@ static int is_our_turn(struct queue_ent *qe)
struct ao2_iterator mem_iter = ao2_iterator_init(qe->parent->members, 0);
while ((cur = ao2_iterator_next(&mem_iter))) {
switch (cur->status) {
+ case AST_DEVICE_INUSE:
+ if (!qe->parent->ringinuse)
+ break;
+ /* else fall through */
case AST_DEVICE_NOT_INUSE:
case AST_DEVICE_UNKNOWN:
if (!cur->paused)