mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-04 17:51:03 +00:00
disable hard-mute when a session has a media bug attached
This commit is contained in:
parent
aae4a76f3a
commit
f33127db91
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user