disable hard-mute when a session has a media bug attached

This commit is contained in:
Anthony Minessale 2014-12-22 19:06:12 -06:00 committed by Ken Rice
parent aae4a76f3a
commit f33127db91
1 changed files with 4 additions and 1 deletions

View File

@ -7810,7 +7810,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
case SWITCH_MESSAGE_INDICATE_HARD_MUTE:
{
if (a_engine->rtp_session) {
if (session->bugs) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,
"%s has a media bug, hard mute not allowed.\n", switch_channel_get_name(session->channel));
} else if (a_engine->rtp_session) {
if (msg->numeric_arg) {
switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_MUTE);
} else {