System information
In newer versions of sox (e.g., version 14.3.0, which shipped with
Ubuntu 10.10), the -w option has changed to -2.
Completing file conversion
The resulting file will exist in the /tmp folder (or wherever you uploaded to) and needs
to be copied to the /var/lib/asterisk/moh folder:
$ cp *.sln /var/lib/asterisk/moh
You now need to reload musiconhold in Asterisk in order to have it recognize your new
files:
$ asterisk -rx "module unload res_musiconhold.so"
$ asterisk -rx "module load res_musiconhold.so"
To test that your music is working correctly, add the following to the [UserServices]
context in your dialplan:
exten => 664,1,NoOp()
same => n,Progress()
same => n,MusicOnHold()
Dialing 664 from one of your sets should play a random file from your moh directory.
Conclusion
This chapter helped you complete some initial configuration of Asterisk. From here
you can move on to setting up some phones and taking advantage of the many features
Asterisk has to offer.
Conclusion | 81