fix couldn't play moh when execute uuid_hold on bleg

This commit is contained in:
zouvoip 2022-11-11 11:03:22 +08:00
parent bb682fc5b4
commit 787d08e8b7
1 changed files with 1 additions and 1 deletions

View File

@ -4753,7 +4753,7 @@ static void switch_core_media_set_rmode(switch_core_session_t *session, switch_m
if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) { if (switch_core_session_get_partner(session, &other_session) == SWITCH_STATUS_SUCCESS) {
if (sdp_type == SDP_TYPE_RESPONSE && (switch_channel_test_flag(other_session->channel, CF_REINVITE) || switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND)) { if (sdp_type == SDP_TYPE_RESPONSE && (switch_channel_test_flag(other_session->channel, CF_REINVITE) || switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_OUTBOUND) && (switch_channel_get_callstate(session->channel) != CCS_HELD)) {
switch_core_media_set_smode(other_session, type, rmode, sdp_type); switch_core_media_set_smode(other_session, type, rmode, sdp_type);
} }