aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-31 18:03:17 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-31 18:03:17 +0000
commit7af6fda1e04be57e9e90d21bc1b394b727be501b (patch)
treecaeca7336075f12b263105b64ae0faf2aec77a46 /apps
parent27c7c3edf544bd0c3dfa1a98870463fb46de080a (diff)
Add volume adjustment in.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87851 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_mixmonitor.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_mixmonitor.c b/apps/app_mixmonitor.c
index 16f216c47..13c25d8c7 100644
--- a/apps/app_mixmonitor.c
+++ b/apps/app_mixmonitor.c
@@ -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);