提交 4d2bc24a authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

FS-8166 #resolve [Mute/unmute while shout is playing audio fails because the…

FS-8166 #resolve [Mute/unmute while shout is playing audio fails because the channel "has a media bug, hard mute not allowed"]
上级 1665168d
...@@ -7857,11 +7857,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se ...@@ -7857,11 +7857,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_receive_message(switch_core_se
break; break;
case SWITCH_MESSAGE_INDICATE_HARD_MUTE: case SWITCH_MESSAGE_INDICATE_HARD_MUTE:
{ if (a_engine->rtp_session) {
if (session->bugs) { if (session->bugs && msg->numeric_arg) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, 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)); "%s has a media bug, hard mute not allowed.\n", switch_channel_get_name(session->channel));
} else if (a_engine->rtp_session) { } else {
if (msg->numeric_arg) { if (msg->numeric_arg) {
switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_MUTE); switch_rtp_set_flag(a_engine->rtp_session, SWITCH_RTP_FLAG_MUTE);
} else { } else {
......
...@@ -545,6 +545,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t ...@@ -545,6 +545,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_add(switch_core_session_t
switch_event_fire(&event); switch_event_fire(&event);
} }
switch_core_media_hard_mute(session, SWITCH_FALSE);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论