Keeping in mind Asterisk can read only two kinds of WAV files formatted at 8000hz with 1 mono channel: Microsoft WAV format signed linear (with a lowercase .wav extension) or WAV-GSM, also called wav49, with an uppercase “WAV” extension.
Download and install Sox (Sound Exchange) and make sure to also install the MP3 format library. Once converted use the FreePBX MOH gui to upload your <output-file>.wav file... Enjoy!
Use the following command to convert MP3's to 8000 hz mono .wav files.
- Code: Select all
$ sox <input-file>.mp3 -c1 -r 8000 <output-file>.wav
Files are uploaded to /var/lib/asterisk/moh which is the 'default' Music Category directory. I notice that FreePBX renamed the file inserting a 'wav_' at the beginning of the filename.