diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 5f7e08ca0..1e4fdf591 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2687,6 +2687,10 @@ static int is_our_turn(struct queue_ent *qe) struct ao2_iterator mem_iter = ao2_iterator_init(qe->parent->members, 0); while ((cur = ao2_iterator_next(&mem_iter))) { switch (cur->status) { + case AST_DEVICE_INUSE: + if (!qe->parent->ringinuse) + break; + /* else fall through */ case AST_DEVICE_NOT_INUSE: case AST_DEVICE_UNKNOWN: if (!cur->paused) |