aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-07-11 16:49:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-07-11 16:49:29 +0000
commit12fd7ca3bbc8df1293b20a615646e35b5033cb72 (patch)
tree7dc81a4ba4c64587bf70a946a9c42e10484fef81 /res
parent4a875ab9b7102efd4c9b99d25fec5a3c08e22a94 (diff)
Version 0.2.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@483 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index c696bd55a..2630ba7c2 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -100,8 +100,9 @@ static pthread_mutex_t moh_lock = AST_MUTEX_INITIALIZER;
static void child_handler(int sig)
{
int status;
- if (wait4(-1,&status, WNOHANG, NULL)<1)
- ast_log(LOG_NOTICE, "Huh? Child handler, but nobody there?\n");
+ if (wait4(-1,&status, WNOHANG, NULL)<1)
+ if (option_debug)
+ ast_log(LOG_DEBUG, "Huh? Child handler, but nobody there?\n");
}
static int spawn_mp3(struct mohclass *class)
@@ -126,7 +127,9 @@ static int spawn_mp3(struct mohclass *class)
argv[3] = "--mono";
argv[4] = "-r";
argv[5] = "8000";
- argc = 6;
+ argv[6] = "-b";
+ argv[7] = "2048";
+ argc = 8;
if (class->quiet) {
argv[argc++] = "-f";
argv[argc++] = "8192";