Update has_no_members to know about device status codes (bug #2867)
authorMark Spencer <markster@digium.com>
Tue, 16 Nov 2004 01:24:31 +0000 (01:24 +0000)
committerMark Spencer <markster@digium.com>
Tue, 16 Nov 2004 01:24:31 +0000 (01:24 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4259 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 0a97cdf..d620fb4 100755 (executable)
@@ -290,8 +290,8 @@ static int has_no_members(struct ast_call_queue *q)
        member = q->members;
        while(empty && member) {
                switch(member->status) {
-               case AST_CAUSE_NOSUCHDRIVER:
-               case AST_CAUSE_UNREGISTERED:
+               case AST_DEVICE_UNAVAILABLE:
+               case AST_DEVICE_INVALID:
                        /* Not logged on, etc */
                        break;
                default: