/etc/asterisk/musiconhold.conf

Konverze mp3 v řádku:

# apt-get install sox libsox-fmt-all
# sox musiconhold.mp3 -t raw -r 8000 -s -w -c 1 musiconhold.sln

nebo:

# sox musiconhold.mp3 -t raw -r 8000 -s -2 -c 1 musiconhold.sln (plati pro novejsi verzi sox)
# cp *.sln /var/lib/asterisk/moh
# asterisk -rx “module unload res_musiconhold.so”
# asterisk -rx “module load res_musiconhold.so”
exten => 664,1,NoOp()
   same => n,Progress()
   same => n,MusicOnHold()
musiconhold.conf
[default]
mode=files
directory=moh