From 5b7a769fd8b02dcb1d6326ebbe1d4eafcdc75491 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 15 Apr 2014 23:21:19 +0000 Subject: [PATCH] (mix)monitor: Add options to enable a periodic beep Add an option to enable a periodic beep to be played into a call if it is being recorded. If enabled, it uses the PERIODIC_HOOK() function internally to play the 'beep' prompt into the call at a specified interval. This option is provided for both Monitor() and MixMonitor(). Review: https://reviewboard.asterisk.org/r/3424/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412427 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- CHANGES | 4 +++ apps/app_mixmonitor.c | 47 ++++++++++++++++++++++++++++--- apps/app_queue.c | 6 ++-- bridges/bridge_builtin_features.c | 2 +- funcs/func_periodic_hook.c | 30 ++++++++++++++++++++ include/asterisk/beep.h | 45 +++++++++++++++++++++++++++++ include/asterisk/monitor.h | 4 ++- res/res_monitor.c | 47 +++++++++++++++++++++++++++---- 8 files changed, 171 insertions(+), 14 deletions(-) create mode 100644 include/asterisk/beep.h diff --git a/CHANGES b/CHANGES index 8c3a253471..b4e0d4e91b 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,8 @@ Applications -------------------------- * Record application now has an option 'o' which allows 0 to act as an exit key setting the RECORD_STATUS variable to 'OPERATOR' instead of 'DTMF' + * Monitor() - A new option, B(), has been added that will turn on a periodic + beep while the call is being recorded. Functions -------------------------- @@ -85,6 +87,8 @@ MixMonitor ------------------------- * A new function, MIXMONITOR, has been added to allow access to individual instances of MixMonitor on a channel. + * A new option, B(), has been added that will turn on a periodic beep while the + call is being recorded. Channel Drivers diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c index a5d383cbc2..6a2a0fcece 100644 --- a/apps/app_mixmonitor.c +++ b/apps/app_mixmonitor.c @@ -57,6 +57,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/linkedlists.h" #include "asterisk/test.h" #include "asterisk/mixmonitor.h" +#include "asterisk/beep.h" /*** DOCUMENTATION @@ -83,6 +84,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") channel is not optimized away. To do this, be sure to call your Local channel with the /n option. For example: Dial(Local/start@mycontext/n) +