From 2aea0c329bb4c00423dc20d395c38020f4bab23b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 11 Sep 2017 14:47:47 -0500 Subject: [PATCH] FS-10468: [mod_verto] Attended Transfer from Mod Verto leaves one channel in limbo. #resolve --- src/mod/endpoints/mod_verto/mod_verto.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 299f1afe11..7a8b6e23b1 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3115,14 +3115,12 @@ static switch_bool_t attended_transfer(switch_core_session_t *session, switch_co result = SWITCH_TRUE; switch_channel_hangup(hup_channel, SWITCH_CAUSE_ATTENDED_TRANSFER); + switch_core_session_rwunlock(t_session); } else { result = SWITCH_FALSE; } } } - if (b_session) { - switch_core_session_rwunlock(b_session); - } return result; }