Hi list, I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and am getting this error : WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No such file or directory with the default musiconhold.conf file. When I change musiconhold.conf to this: [default] mode=mp3 directory=/var/lib/asterisk/mohmp3 (and have converted all the wav files to mp3 and put them in /var/lib/asterisk/nohmp3) 'moh reload' works fine and so does 'moh show classes' but 'moh show files' does not show any files (even though the .mp3 files are in that directory) and of course MOH still does not work I am not sure how to 'debug' from this point. Any help would be greatly appreciated! thanks earl
Hi CLI> module unload res_musiconhold.so CLI> module load res_musiconhold.so or service asterisk restart Regards
On 01/04/2011 12:31 PM, Earl Terwilliger wrote:> Hi list, > > I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and am > getting this error : > > WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No such > file or directory[snip] Have you installed mpg123 or some other program to handle the mp3 files? I am fairly certain that Asterisk cannot handle mp3 natively (most likely for licensing reasons). Tom
On Tuesday, January 04, 2011 04:29:49 pm bakko wrote:> Hi > > CLI> module unload res_musiconhold.so > > CLI> module load res_musiconhold.so > > or > > service asterisk restart > > Regards > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersHi I tried re-starting asterisk (stoping and starting) many times. No success. I finally decided to re-boot the server and that seems to have fixed it. thanks earl
On Tuesday, January 04, 2011 04:37:21 pm Tom Rymes wrote:> On 01/04/2011 12:31 PM, Earl Terwilliger wrote: > > Hi list, > > > > I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and > > am getting this error : > > > > WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No > > such file or directory > > [snip] > > Have you installed mpg123 or some other program to handle the mp3 files? > I am fairly certain that Asterisk cannot handle mp3 natively (most > likely for licensing reasons). > > Tom > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-usersHi Tom that was my next step if i could not find a way to just play the wav files. I re-booted the server and that seems to have fixed whatever problem was causing this. stopping and starting asterisk had no affect. earl
On Jan 4, 2011, at 8:49 PM, Earl Terwilliger wrote:> On Tuesday, January 04, 2011 04:37:21 pm Tom Rymes wrote: >> On 01/04/2011 12:31 PM, Earl Terwilliger wrote: >>> Hi list, >>> >>> I just installed Asterisk 1.4.38 (on an updated Centos 5.5 machine) and >>> am getting this error : >>> >>> WARNING[6472]: res_musiconhold.c:856 moh_scan_files: getcwd() failed: No >>> such file or directory >> >> [snip] >> >> Have you installed mpg123 or some other program to handle the mp3 files? >> I am fairly certain that Asterisk cannot handle mp3 natively (most >> likely for licensing reasons). >> >> Tom > > Hi Tom > > that was my next step if i could not find a way to just play the wav files. > I re-booted the server and that seems to have fixed whatever problem was > causing this. stopping and starting asterisk had no affect. > > earlAh. I got the impression that you were trying to play MP3 files. I would not recommend that you use MP3 instead of WAV, though. Tom