]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_queue: Remove stale code in try_calling
authorWalter Doekes <walter+asterisk@wjd.nu>
Mon, 15 Jun 2020 11:53:31 +0000 (13:53 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 17 Jun 2020 13:32:11 +0000 (08:32 -0500)
Because ring_entry() is not called, outgoing->chan is not touched here
either.

ASTERISK-28950
ASTERISK-28644

Change-Id: I564613715dfaf45af868251eb75a451f512af90f

apps/app_queue.c

index 3a572efc2d2e202ebc9f92234665217b202a548a..158073449142bb07ad7e7a4d35e24e8228e57c02 100644 (file)
@@ -6649,9 +6649,6 @@ static int try_calling(struct queue_ent *qe, struct ast_flags opts, char **opt_a
                           hung up XXX */
                        tmp->q_next = outgoing;
                        outgoing = tmp;
-                       /* If this line is up, don't try anybody else */
-                       if (outgoing->chan && (ast_channel_state(outgoing->chan) == AST_STATE_UP))
-                               break;
                } else {
                        callattempt_free(tmp);
                }