hello, i have a problem with music on hold.
when I attempt to upload a wav i get this message "Error Processing: “sh: lame: command not found” for fpm-sunshine.wav!"
and im left with the wav file prepended with “orig_” in the …/mohmp3/ dir with the permissions of 600.
what gives? any brilliant insights? ok i would take not so brilliant insigts as well…
regards, dutler
I’m answering only because no one else has (there are two ways to be the best - be the best or be the only one).
If I had no idea what to do, I would think I never had lame installed. Did you do the install yourself?
See this guide to an install from scratch that includes instructions for installing lame.
Make sure you back up your server as there is never a fix so simple that you can’t crash everything!
I have replaced the line :
$lamecmd=“lame --cbr -m m -t -F “”.$origmohfile.”" “”.$newmohfile."" 2>&1 “;
by :
$lamecmd=”/usr/local/bin/lame --cbr -m m -t -F “”.$origmohfile."" “”.$newmohfile."" 2>&1 ";
You can also set full rights on the mohmp3 directory if necessary :
chmod -R 777 /var/lib/asterisk/mohmp3/