FS-10468: [mod_verto] Attended Transfer from Mod Verto leaves one channel in limbo. #resolve

This commit is contained in:
Anthony Minessale 2017-09-11 14:47:47 -05:00
parent 79bd7ad203
commit 2aea0c329b

View File

@ -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;
}