
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Compiling and Installing Asterisk
|
53
Installing Mpg123
The application responsible for providing music and messages for holding callers is
called Mpg123, but don’t confuse it with the Mpg321 application that ships with
Red Hat Linux. Mpg321 doesn’t work with Asterisk, so you must replace it with
Mpg123.
To do this, start by shutting down the Asterisk server process if it’s running. Then,
make sure there are no Mpg321 or Mpg123 processes running:
# ps ax | grep mpg123
900 std S+ 0:00.00 mpg123
# kill 900
# ps ax | grep mpg321
1024 std S+ 0:00.00 mpg321
# kill 1024
You may not actually have both applications running, or even installed, but it’s best
to make sure neither is running before you proceed.
As of this writing, Mpg123 has a remotely exploitable security bug
that is documented at http://www.mpg123.de. Be sure to read the
developers’ description of the issue and proceed with caution.
By default, Red Hat has symbolic links for the Mpg321 package that make it appear
synonymously with Mpg123. These must be removed in order to install the correct
package:
# rm /usr/bin/mpg123
# rm /usr/local/bin/mpg123
Next, download a Red Hat Linux–compatible build (RPM package) of Mpg123 from
http://www.mpg123.de and install it with a command similar to this one, called from
the directory where the downloaded ...