Merged revisions 28627 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Fri, 19 May 2006 15:40:39 +0000 (15:40 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 19 May 2006 15:40:39 +0000 (15:40 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r28627 | file | 2006-05-19 12:38:59 -0300 (Fri, 19 May 2006) | 2 lines

Treat paused queue members as unreachable (issue #7127 reported by peterh)

........

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

apps/app_queue.c

index 1ae2b0e..fbdff15 100644 (file)
@@ -455,6 +455,8 @@ static enum queue_member_status get_member_status(const struct ast_call_queue *q
                if (max_penalty && (member->penalty > max_penalty))
                        continue;
 
                if (max_penalty && (member->penalty > max_penalty))
                        continue;
 
+               if (member->paused) continue;
+
                switch (member->status) {
                case AST_DEVICE_INVALID:
                        /* nothing to do */
                switch (member->status) {
                case AST_DEVICE_INVALID:
                        /* nothing to do */