Add new hard_mute control to allow apps to request low level mute e.g. from the rtp stack level. Its used in mod_conference to avoid reading audio while muted and possibly reduce some transcoding load

This commit is contained in:
Anthony Minessale committed 2014-10-27 15:13:42 -04:00
1 parent 0386db7dfd
commit d1e529aefd
5 files changed
+47 -1

No files matched your search

+4
View File
@@ -5915,6 +5915,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
result_continue:
timer_check:
if (rtp_session->flags[SWITCH_RTP_FLAG_MUTE]) {
do_cng++;
}
if (do_cng) {
uint8_t *data = (uint8_t *) RTP_BODY(rtp_session);