mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add volume adjustment in.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -267,6 +267,11 @@ static void launch_monitor_thread(struct ast_channel *chan, const char *filename
|
|||||||
|
|
||||||
ast_set_flag(&mixmonitor->audiohook, AST_AUDIOHOOK_TRIGGER_WRITE);
|
ast_set_flag(&mixmonitor->audiohook, AST_AUDIOHOOK_TRIGGER_WRITE);
|
||||||
|
|
||||||
|
if (readvol)
|
||||||
|
mixmonitor->audiohook.options.read_volume = readvol;
|
||||||
|
if (writevol)
|
||||||
|
mixmonitor->audiohook.options.write_volume = writevol;
|
||||||
|
|
||||||
if (startmon(chan, &mixmonitor->audiohook)) {
|
if (startmon(chan, &mixmonitor->audiohook)) {
|
||||||
ast_log(LOG_WARNING, "Unable to add '%s' spy to channel '%s'\n",
|
ast_log(LOG_WARNING, "Unable to add '%s' spy to channel '%s'\n",
|
||||||
mixmonitor_spy_type, chan->name);
|
mixmonitor_spy_type, chan->name);
|
||||||
|
Reference in New Issue
Block a user