JR Richardson
2005-Feb-13 10:00 UTC
[Asterisk-Users] MusicOnHold Native Mode, Please Clarify
Hi Guys, I've attempted to get this moh-native thing to work with no success. I've reviewed wiki, mantis and e-mail postings and I'm confused. The latest I've read is native moh should be in asterisk-addons in format_mp3, but what version will it work with? I've tried asterisk 1.0.1, 1.0.5, addons 1.0.1, 1.0.4 and also -r stable CVS. I followed the wiki example with no luck, all I get is "unable to start music on hold" at the console. Musiconhold.conf: [classes] [moh_files] default => /var/lib/asterisk/moh-native I have an mp3 that came with asterisk in this file: fpm-calm-river.mp3 extensions.conf: [moh] exten => 5551,1,Answer exten => 5551,2,WaitMusicOnHold(60) modules.conf: [modules] autoload=yes ; ; If you want, load the GTK console right away. ; Don't load the KDE console since ; it's not as sophisticated right now. ; noload => pbx_gtkconsole.so ;load => pbx_gtkconsole.so noload => pbx_kdeconsole.so ; ; Intercom application is obsoleted by ; chan_oss. Don't load it. ; noload => app_intercom.so ; ; Explicitly load the chan_modem.so early on to be sure ; it loads before any of the chan_modem_* 's afte rit ; noload => chan_modem.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so noload => chan_modem_aopen.so load => format_mp3.so load => res_musiconhold.so Console: Asterisk Dynamic Loader Starting: [format_mp3.so] => (MP3 format [Any rate but 8000hz mono optimal]) == Registered file format mp3, extension(s) mp3 [res_musiconhold.so] => (Music On Hold Resource) == Registered application 'MusicOnHold' == Registered application 'WaitMusicOnHold' == Registered application 'SetMusicOnHold' *CLI> dial 5551 -- Executing Answer("OSS/dsp", "") in new stack << Console call has been answered >> -- Executing WaitMusicOnHold("OSS/dsp", "60") in new stack Feb 13 04:47:53 WARNING[11685]: res_musiconhold.c:370 moh1_exec: Unable to start music on hold for 60 seconds on channel OSS/dsp << Hangup on console >> Any guidance will be appreciated. Thanks. JR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050213/d39c1ba6/attachment.htm
JR Richardson
2005-Feb-13 12:06 UTC
[Asterisk-Users] re: MusicOnHold Native Mode, Please Clarify
Hey guys, I got moh-native working with today's CVS of asterisk and asterisk-addons so I'm guessing there were some code problems with versions 1.0.1, 1.0.4 and current CVS stable. Following the wiki instructions worked fine. Also the mp3's that come with Asterisk sound perfect, whereas my own mp3's have some sound pops, I suspect due to compression not at 8K mono but 128k stereo. I did have some compilation errors in today's CVS head with the dundi app, so I commented it out in the Makefile in /usr/src/asterisk/pbx/ then asterisk compiled fine. I do prefer to use the stable code, not CVS head. Does anyone have an idea what could be causing native-moh to work in CVS head and not CVS stable? Thanks. JR -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050213/b59cb082/attachment.htm