I have no idea actually. The asterisk server that we run was a colaboration between myself and some other people in my company. I don’t know if they changed the MP3s But the files in /var/lib/asterisk/mohmp3 are:
fpm-calm-river.mp3, fpm-world-mix.mp3 & fpm-sunshine.mp3
When we first configured our * box - we were only using 2 SIP hard phones and 1 SIP soft phone connection. I don’t remember any problems with MoH. I am now using a Sangoma ISDN A102 PRI card and have since noticed this issue.
I don’t know whether the ISDN card would cause this sort of problem?
What I don’t understand is all the talk about built in moh. The default configuration in a fresh install does not work. I’ve seen many questions on the boards about this and no answers. All of them say to install madplay or mpg123 which means you have to modify the config in musiconhold.conf back to the old way. So what’s new? A default install comes with three .mp3 files and still the system says “… not found” or some such error.
To those who don’t get sound. If you add the extension 6000 as above. Start * CLI in verbose mode “asterisk -rvvvvvv”.
What appears on the CLI when you dial 6000 from an extension?
Also what happens if you type “mpg123” at a system prompt?
RE: my sound quality problem …
I have setup this 6000 extension, no problem, can hear MoH … but for a few minutes I get crystal clear clear MoH then for a few minutes I get random clicking and popping. It keeps happening. I will try to work out how to record this … any instructions on how to do this gratefully rxd?
I have done a ps aux | grep mpg123 and this is what I get.
As a follow up to this:
I’ve had 4 internal SIP handsets with an external call (mobile) listening to the MoH and it goes between good quality and bad quality every few mins. All the music is in sync across all the calls and all the bad sounds happen across all the calls. The sounds are identical across all the phones at once, therefore, it must be an issue with the mp3 player/source.
One of my colleagues is a developer for some linux media player and he said the distortion doesn’t sounds like usual MP3 distortion i.e. it doesn’t sound like buffer problems.
I’ve disabled everything on the * box’s motherboard i.e. USB, COM, LPT etc. that may be causing interupt problems. I’ve tried assigning my Sangoma card it’s own IRQ etc. Still we get the same intermittant bad quality.
The * box is powered from an APC 2200VA UPS which is powered by a clean-earth spur directly from the incoming power feed. The PSU is an Enermax 480.
If I type mpg123 at a command prompt I get a response from the program. Program permissions are set to 755.
If I start asterisk I get this error:
/usr/local/bin/mpg123 -q -r 8000 -f 8192 -b 2048 --mono -s: No such file or directory
No matter how I modify the musiconhold.conf asterisk will not find the file. I have tried symlinking the mpg123 file to different directories, put it into the path, etc.
I have tried modifying the line to read as follows: