From f3be709455a2b44e437d1b05ac1970c75b98facc Mon Sep 17 00:00:00 2001 From: jmls Date: Wed, 21 Apr 2010 11:27:27 +0000 Subject: Added MixMonitorMute manager command Added a new manager command to mute/unmute MixMonitor audio on a channel. Added a new feature to audiohooks so that you can mute either read / write (or both) types of frames - this allows for MixMonitor to mute either side of the conversation without affecting the conversation itself. (closes issue #16740) Reported by: jmls Review: https://reviewboard.asterisk.org/r/487/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@258190 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_mutestream.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'res') diff --git a/res/res_mutestream.c b/res/res_mutestream.c index e4fd82cee..4faf46478 100644 --- a/res/res_mutestream.c +++ b/res/res_mutestream.c @@ -116,19 +116,6 @@ static const struct ast_datastore_info mute_datastore = { .destroy = destroy_callback }; -/*! \brief Wipe out all audio samples from an ast_frame. Clean it. */ -static void ast_frame_clear(struct ast_frame *frame) -{ - struct ast_frame *next; - - for (next = AST_LIST_NEXT(frame, frame_list); - frame; - frame = next, next = frame ? AST_LIST_NEXT(frame, frame_list) : NULL) { - memset(frame->data.ptr, 0, frame->datalen); - } -} - - /*! \brief The callback from the audiohook subsystem. We basically get a frame to have fun with */ static int mute_callback(struct ast_audiohook *audiohook, struct ast_channel *chan, struct ast_frame *frame, enum ast_audiohook_direction direction) { -- cgit v1.2.3