summaryrefslogtreecommitdiff
path: root/main/frame.c
diff options
context:
space:
mode:
authorJulian Lyndon-Smith <julian@dotr.com>2010-04-21 11:27:27 +0000
committerJulian Lyndon-Smith <julian@dotr.com>2010-04-21 11:27:27 +0000
commitd85650e4aa89fe72850aad21fa25dd3fb3b05019 (patch)
tree0ab377462883dca1275581d02f2266f58e8fbb02 /main/frame.c
parentea9186d4ea4e58c51e12718ed64c4964546f552f (diff)
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: https://origsvn.digium.com/svn/asterisk/trunk@258190 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/frame.c')
-rw-r--r--main/frame.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/frame.c b/main/frame.c
index c90469bba..af782edc2 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -1587,3 +1587,15 @@ int ast_frame_slinear_sum(struct ast_frame *f1, struct ast_frame *f2)
return 0;
}
+
+int 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);
+ }
+ return 0;
+}