app_queue: Fix incorrect assertion.
[asterisk/asterisk.git] / apps / app_queue.c
index b3d4d40..f02ed44 100644 (file)
@@ -3624,7 +3624,7 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies
                ++*busies;
                return 0;
        }
-       ast_assert(qe->parent->ringinuse || tmp->member->call_pending);
+       ast_assert(tmp->member->ringinuse || tmp->member->call_pending);
 
        ast_copy_string(tech, tmp->interface, sizeof(tech));
        if ((location = strchr(tech, '/'))) {