Music on Hold Error

Hey when attempting to upload an mp3 to the music on hold i get this error

Error Processing: “sh: mpg123: command not found
sh: sox: command not found” for rick.mp3!
This is not a fatal error, your Music on Hold may still work.

Does anyone know what this error means or how i can stop it because the music on hold is not working

You don’t have ‘mpg123’ and/or ‘sox’ installed in your Linux distribution.

Music On Hold uses these two commands to convert from mp3 to wav. Install the using the tool provided by the distribution.

there is no tool to install mpg123

I had this same error and mpg123 was not installed.

I found I was able to download the source for mpg123 from here:

Build and install:

cd /usr/local/src
wget Download mpg123-1.10.0.tar.bz2 (mpg123)
tar -xjvf mpg123-1.10.0.tar.bz2
cd mpg123-1.10.0
./configure
make
make install

Even after building and installing from source, I still had the error. The default location for the binary was installed in /usr/local/bin/mpg123 which apparently is not in the path for the exec command in the php file that attempts the conversion to WAV.

I could have rebuilt mpg123 changing the default location to /usr/ instead of /usr/local/ but instead, I just created a symlink
ln -s /usr/local/bin/mpg123 /usr/bin/mpg123

that fixed my problems. Hope this helps someone else.

I take it that you are using AsteriskNow? If so, have a look at:

http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

I don’t recommend using the yum-priorities option, but instead disabling the repo and then running:

yum --enablerepo=rpmforge install mpg123

ok let me try