Being that mpg123 isn't supplied on lots of systems
these days, and madplay _is_, I thought I'd add support
for it.
'discover_moh.pl' should probably be run just once, on
install. Part of the 'install_amp' script, I would
guess. If it's not run, or the entry 'MOH_COMMAND'
isn't present in the globals table, it doesn't touch
anything.
'discover_moh' also checks to make sure that mpg123 (if
it exists) is the correct version, and whinges if it's not.
'gen_moh' generates the /etc/asterisk/musiconhold.conf
file, and again, doesn't touch musiconhold.conf if the
MOH_COMMAND entry isn't there.
The patches to general.php and music.php are reasonably
self explanitory.
Note that this has been applied to the files from the
AMP2 CVS tree.