aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_monitor.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-21 03:56:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-21 03:56:22 +0000
commit799f7460d92342318c5a8e617e73cad96a6c081e (patch)
treebd3a5e293acff59ef674f147c1b5e6cd74a576ad /res/res_monitor.c
parentad916c0c92be96c62e6ea33ca4c8e767307ef5a5 (diff)
Add stereoize (bug #3142), faster than soxmix
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4859 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_monitor.c')
-rwxr-xr-xres/res_monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_monitor.c b/res/res_monitor.c
index 4c93517db..d3d85f6ad 100755
--- a/res/res_monitor.c
+++ b/res/res_monitor.c
@@ -241,7 +241,7 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
/* Set the execute application */
execute = pbx_builtin_getvar_helper(chan, "MONITOR_EXEC");
if (!execute || ast_strlen_zero(execute)) {
- execute = "nice -n 19 soxmix";
+ execute = "nice -n 19 soxmix";
delfiles = 1;
}
execute_args = pbx_builtin_getvar_helper(chan, "MONITOR_EXEC_ARGS");
@@ -251,10 +251,10 @@ int ast_monitor_stop(struct ast_channel *chan, int need_lock)
snprintf(tmp, sizeof(tmp), "%s \"%s/%s-in.%s\" \"%s/%s-out.%s\" \"%s/%s.%s\" %s &", execute, dir, name, format, dir, name, format, dir, name, format,execute_args);
if (delfiles) {
- snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s\"/%s-* ) &",tmp, dir ,name); /* remove legs when done mixing */
+ snprintf(tmp2,sizeof(tmp2), "( %s& rm -f \"%s/%s-*\" ) &",tmp, dir ,name); /* remove legs when done mixing */
strncpy(tmp, tmp2, sizeof(tmp) - 1);
}
- ast_verbose("monitor executing %s\n",tmp);
+ ast_log(LOG_DEBUG,"monitor executing %s\n",tmp);
if (ast_safe_system(tmp) == -1)
ast_log(LOG_WARNING, "Execute of %s failed.\n",tmp);
}