[asterisk-users] [1.6.2.5] Asterisk can't find MOH file

Gilles codecomplete at free.fr
Thu Mar 17 09:39:56 CDT 2011


On Thu, 17 Mar 2011 09:23:35 -0500, "Danny Nicholas"
<danny at debsinc.com> wrote:
>Moh should be in /var/lib/asterisk/moh not /var/lib/asterisk/sounds or in
>this case /var/lib/asterisk/moh/custom.

Thanks for the tip, but after moving the MOH files to the right
location, and even restarting Asterisk, it still doesn't find them,
with the same error message:

=================
# ll /var/lib/asterisk/moh/
-rw-r--r-- 1 root     root     1954191 2009-12-26 15:57
macroform-cold_day.ulaw
-rw-r--r-- 1 root     root     1509854 2009-12-26 15:57
macroform-robot_dity.ulaw
-rw-r--r-- 1 root     root     2232088 2009-12-26 15:57
macroform-the_simplicity.ulaw
-rw-r--r-- 1 root     root      584771 2009-12-26 15:57
manolo_camp-morning_coffee.ulaw
-rw-r--r-- 1 root     root     2573886 2009-12-26 15:57
reno_project-system.ulaw
=================

I tried using MusicOnHold() but it doesn't take a parameter, and just
plays some other tune:
=================
;exten => 8888,n,Playback(manolo_camp-morning_coffee)
exten => 8888,n,MusicOnHold(manolo_camp-morning_coffee)
=================

Actually, how can Asterisk know that a file is MOH and hence, should
be found in /var/lib/asterisk/moh/, rather than a regular prompt/sound
file located in /var/lib/asterisk/sounds?

Thank you.




More information about the asterisk-users mailing list