diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-11 16:49:29 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2002-07-11 16:49:29 +0000 |
commit | 12fd7ca3bbc8df1293b20a615646e35b5033cb72 (patch) | |
tree | 7dc81a4ba4c64587bf70a946a9c42e10484fef81 /res | |
parent | 4a875ab9b7102efd4c9b99d25fec5a3c08e22a94 (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-x | res/res_musiconhold.c | 9 |
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"; |