Add volume adjustment in.
authorJoshua Colp <jcolp@digium.com>
Wed, 31 Oct 2007 18:03:17 +0000 (18:03 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 31 Oct 2007 18:03:17 +0000 (18:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87851 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_mixmonitor.c

index 16f216c..13c25d8 100644 (file)
@@ -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);
 
+       if (readvol)
+               mixmonitor->audiohook.options.read_volume = readvol;
+       if (writevol)
+               mixmonitor->audiohook.options.write_volume = writevol;
+
        if (startmon(chan, &mixmonitor->audiohook)) {
                ast_log(LOG_WARNING, "Unable to add '%s' spy to channel '%s'\n",
                        mixmonitor_spy_type, chan->name);