[Resolved] MOH Problem

Hi,

Asterisk 1.2.15

When I dial 123 I hear nothing, and the console shows:

-- Executing Answer("SIP/sean-09daca30", "") in new stack
-- Executing MusicOnHold("SIP/sean-09daca30", "default") in new stack
-- Started music on hold, class 'default', on channel 'SIP/sean-09daca30'
-- Stopped music on hold on SIP/sean-09daca30

In my extensions.conf I have:

exten => 123,1,Answer()
exten => 123,n,MusicOnHold(default)

In my musiconhold.conf I have:

[default]
mode => mp3
directory => /var/lib/asterisk/mohmp3

I have the sample sound files at /var/lib/asterisk/mohmp3/
fpm-calm-river.mp3 fpm-sunshine.mp3 fpm-world-mix.mp3

When I installed Asterisk I did get a message

WARNING WARNING WARNING

Your Asterisk modules directory, located at
/usr/lib/asterisk/modules
contains modules that were not installed by this
version of Asterisk. Please ensure that these
modules are compatible with this version before
attempting to run Asterisk.

app_saycountpl.so
format_mp3.so

WARNING WARNING WARNING

But I don’t know if this is related.

Any assistance in getting MOH working appreciated.

Thanks
Sean

preload your formats in modules.conf.

that worked.

Thanks angler.

Hi I have the same problem

what do you mean by preload modules.conf
please explain me crearly
I am new user on debian and asterisk

Thanks

Edit /etc/asterisk/modules.conf and add “preload =>” for the modules.