]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
A minor correction to the available logic of autofill. If a queue member is paused...
authorBJ Weschke <bweschke@btwtech.com>
Fri, 24 Aug 2007 19:52:06 +0000 (19:52 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Fri, 24 Aug 2007 19:52:06 +0000 (19:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@80818 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 8cf3bf46f7398c35d7e60d21125cfe0bfc0c3db8..7b3538d19545173566bd10f9a17a6a38d6c2969c 100644 (file)
@@ -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;
                                }
                        }