mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-30 04:49:39 +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:
|
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) {
|
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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user