Merge "app_queue: Fix crash when using 'b' option on non-ringall queue." into 16

This commit is contained in:
Joshua C. Colp 2019-01-03 05:12:49 -06:00 committed by Gerrit Code Review
commit 92ee1bdfbb
1 changed files with 1 additions and 1 deletions

View File

@ -4667,7 +4667,7 @@ static int ring_one(struct queue_ent *qe, struct callattempt *outgoing, int *bus
/* Ring just the best channel */
ast_debug(1, "Trying '%s' with metric %d\n", best->interface, best->metric);
ret = ring_entry(qe, best, busies);
if (qe->predial_callee && cur->chan) {
if (qe->predial_callee && best->chan) {
ast_autoservice_start(best->chan);
}
}