Thursday, October 22, 2015

Asterisk Wideband Music On Hold


The default music on concur included alongside Asterisk leaves somewhat to last desired, as well as getting high character replacement music inwards the right formats tin last a challenge. I bring non managed to figure out how to convert to G722, precisely you lot tin easily convert to the native Asterisk SLN format alongside the next commands:

Please complaint that I run Ubuntu 14.04 server

Step 1: Get the origin music file (I prefer MP3 since they are slow to run with)


Hint: Search on youtube alongside a creative green licence

Step 2: Copy the file to your Asterisk server

I role WinSP to re-create files

Step 3: Install the necessary conversion tools

apt-get install mpg123 sox


Step 4: Convert the MP3 to a high character wav file

mpg123 -w vivaldi.wav vivaldi.mp3

Step 5: Convert the wav file to a high character sln16 file

sox vivaldi.wav -t raw -r 16000 -c one vivaldi.sln16

Step 6: Copy the file to "/var/lib/asterisk/moh" as well as reload moh inwards Asterisk