Music on Hold¶
The menuleads to the list of available on-hold musics.
Available categories are:
files: play sound files. Formats supported:
.g726-40 .g726-32 .g726-24 .g726-16
.ogg (only mono files sampled at 8000 Hz)
.alaw .al .alw
.pcm .ulaw .ul .mu .ulw
.raw .sln .sln12 .sln16 .sln24 .sln32 .sln44 .sln48 .sln96 .sln192
Only 1 audio channel must be present per file, i.e. files must be in mono.
If your music on hold files don’t seem to work, you should look for errors in the asterisk logs.
The on-hold music will always play from the start.
mp3: play MP3 files.
The on-hold music will play from an arbitrary position on the track, it will not play from the start.
custom: do not play sound files. Instead, run an external process. That process must send on stdout the same binary format than WAV files.
/usr/bin/mpg123 -s --mono -y -f 8192 -r 8000 http://streaming.example.com/stream.mp3
Processes run by custom categories are started as soon as the category is created and will only stop when the category is deleted. This means that on-hold music fed from online streaming will constantly be receiving network traffic, even when there are no calls.