From: Joshua Colp Date: Fri, 26 May 2017 16:41:59 +0000 (+0000) Subject: manager: Clear the flag on the other channel. X-Git-Tag: 14.6.0-rc1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e4fc5f2d3a519026c9a3799bbf657684945715;p=thirdparty%2Fasterisk.git manager: Clear the flag on the other channel. During the channel flag audit an incorrect change was done. The flag should be cleared on the second channel. ASTERISK-26469 Change-Id: I770c5a389550a2fb5a6ade942fccbb2e1d9199c8 --- diff --git a/main/manager.c b/main/manager.c index 7751ef58eb..80d9659ef8 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4856,7 +4856,7 @@ static int action_redirect(struct mansession *s, const struct message *m) ast_channel_clear_flag(chan, AST_FLAG_BRIDGE_DUAL_REDIRECT_WAIT); } if (chan2_wait) { - ast_channel_clear_flag(chan, AST_FLAG_BRIDGE_DUAL_REDIRECT_WAIT); + ast_channel_clear_flag(chan2, AST_FLAG_BRIDGE_DUAL_REDIRECT_WAIT); } chan2 = ast_channel_unref(chan2);