]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
disable hard-mute when a session has a media bug attached
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Dec 2014 01:06:12 +0000 (19:06 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 23 Dec 2014 01:06:12 +0000 (19:06 -0600)
src/switch_core_media.c

index 4e50d2cc30f9230b50635c782922a0dd5d08f916..9fe886d0470bb10caaf06d5bae1542e40cc81054 100644 (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 {