mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
bridge_builtin_features: add beep via touch variable
Add periodic beep option to one-touch recording by setting the touch variable TOUCH_MONITOR_BEEP or TOUCH_MIXMONITOR_BEEP to the desired interval in seconds. If the interval is less than 5 seconds, a minimum of 5 seconds will be imposed. If the interval is set to an invalid value, it will default to 15 seconds. A new test event PERIODIC_HOOK_ENABLED was added to the func_periodic_hook hook_on function to indicate when a hook is started. This is so we can test that the touch variable starts the hook as expected. ASTERISK-30446 Change-Id: I800e494a789ba7a930bbdcd717e89d86040d6661
This commit is contained in:
committed by
George Joseph
parent
b2e9419961
commit
1ad52a1263
@@ -40,6 +40,7 @@
|
||||
#include "asterisk/pbx.h"
|
||||
#include "asterisk/app.h"
|
||||
#include "asterisk/audiohook.h"
|
||||
#include "asterisk/test.h"
|
||||
#define AST_API_MODULE
|
||||
#include "asterisk/beep.h"
|
||||
|
||||
@@ -343,6 +344,8 @@ static int hook_on(struct ast_channel *chan, const char *data, unsigned int hook
|
||||
|
||||
ast_debug(1, "hook to %s@%s enabled on %s with interval of %u seconds\n",
|
||||
args.exten, args.context, ast_channel_name(chan), interval);
|
||||
ast_test_suite_event_notify("PERIODIC_HOOK_ENABLED", "Exten: %s\r\nChannel: %s\r\nInterval: %u\r\n",
|
||||
args.exten, ast_channel_name(chan), interval);
|
||||
|
||||
return init_hook(chan, args.context, args.exten, interval, hook_id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user