From: Anthony Minessale Date: Mon, 11 Sep 2017 19:47:47 +0000 (-0500) Subject: FS-10468: [mod_verto] Attended Transfer from Mod Verto leaves one channel in limbo... X-Git-Tag: v1.8.0~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aea0c329bb4c00423dc20d395c38020f4bab23b;p=thirdparty%2Ffreeswitch.git FS-10468: [mod_verto] Attended Transfer from Mod Verto leaves one channel in limbo. #resolve --- 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; }