With the somewhat recent addition (from one of the Astridevcon Europe sessions)...
authorBJ Weschke <bweschke@btwtech.com>
Sat, 2 Sep 2006 18:36:53 +0000 (18:36 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sat, 2 Sep 2006 18:36:53 +0000 (18:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41810 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 878c67a..ae02378 100644 (file)
@@ -1561,7 +1561,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies
                return 0;
        }
 
-       if (!qe->parent->ringinuse && (tmp->member->status == AST_DEVICE_INUSE)) {
+       if (!qe->parent->ringinuse && (tmp->member->status != AST_DEVICE_NOT_INUSE) && (tmp->member->status != AST_DEVICE_UNKNOWN)) {
                if (option_debug)
                        ast_log(LOG_DEBUG, "%s in use, can't receive call\n", tmp->interface);
                if (qe->chan->cdr)