From: BJ Weschke Date: Fri, 24 Aug 2007 19:52:06 +0000 (+0000) Subject: A minor correction to the available logic of autofill. If a queue member is paused... X-Git-Tag: 1.4.12~186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=318f0f6e467e1fae0506b87c2eedab4a0062a3f0;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@80818 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 8cf3bf46f7..7b3538d195 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; } }