diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 19:52:06 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 19:52:06 +0000 |
commit | 125e7323609bf6499e0b38cbdd5cc1d798ff9cce (patch) | |
tree | 039a25b654de751f646218fa758fb8b3af6a96cb /apps | |
parent | c00b801d7374a8cccd4d73747a7e70f4fbc3a6dd (diff) |
A minor correction to the available logic of autofill. If a queue member is paused, they're not really "available" so don't count them as such. Somewhat related to issue #10155
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80818 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 8cf3bf46f..7b3538d19 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2178,7 +2178,8 @@ static int is_our_turn(struct queue_ent *qe) switch (cur->status) { case AST_DEVICE_NOT_INUSE: case AST_DEVICE_UNKNOWN: - avl++; + if (!cur->paused) + avl++; break; } } |