Posts

Showing posts with the label hold

Asterisk Wideband Music on Hold

Image
Asterisk Wideband Music on Hold The default music on hold included with Asterisk leaves somewhat to be desired, and getting high quality replacement music in the correct formats can be a challenge. I have not managed to figure out how to convert to G722, but you can easily convert to the native Asterisk SLN format with the following commands: Please note that I run Ubuntu 14.04 server Step 1: Get the source music file (I prefer MP3 since they are easy to work with) Hint: Search on youtube with a creative commons licence Step 2: Copy the file to your Asterisk server I use WinSP to copy files Step 3: Install the necessary conversion tools apt-get install mpg123 sox Step 4: Convert the MP3 to a high quality wav file mpg123 -w vivaldi.wav vivaldi.mp3 Step 5: Convert the wav file to a high quality sln16 file sox vivaldi.wav -t raw -r 16000 -c 1 vivaldi.sln16 Step 6: Copy the file to "/var/lib/asterisk/moh" and reload moh in Asterisk

apt get Install package with specific version and hold it on the next upgrade

apt get Install package with specific version and hold it on the next upgrade If you need to install specific version of the package in your system, you can list all available package versions with the command: apt-cache madison varnish After you know the package version you can install it with: sudo apt-get install varnish = 4.0.2-1 To hold the package on the selected version during the next upgrade: sudo apt-mark hold varnish You can also "unhold it" with: sudo apt-mark unhold varnish