From 8cb439f7e4ccf7a7de3fa685a27ada4133544819 Mon Sep 17 00:00:00 2001
From: "Boris P. Korzun" <drtr0jan@yandex.ru>
Date: Fri, 13 Nov 2020 15:19:30 +0300
Subject: [PATCH] bridge_basic: Fixed setup of recall channels

Fixed a bug (like a typo) in retransfer_enter() at main/bridge_basic.c:2641.
common_recall_channel_setup() setups common things on the recalled transfer
target, but used same target as source instead trasfered.

ASTERISK-29161 #close

Change-Id: Ieb549654a621c38b1ad5e9d15b9f18823d9cc31f
---
 main/bridge_basic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main/bridge_basic.c b/main/bridge_basic.c
index 284d178b62..21b4b0ec24 100644
--- a/main/bridge_basic.c
+++ b/main/bridge_basic.c
@@ -2638,7 +2638,7 @@ static int retransfer_enter(struct attended_transfer_properties *props)
 		&props->original_transferer_colp);
 	ast_party_id_reset(&ast_channel_connected(props->recall_target)->priv);
 
-	common_recall_channel_setup(props->recall_target, props->recall_target);
+	common_recall_channel_setup(props->recall_target, props->transferer);
 	ast_channel_unlock(props->recall_target);
 	ast_channel_unlock(props->transferer);
 
-- 
GitLab