Asterisk Hacking

The three most common specialty features used in Asterisk are Call Queues, Conference Calls, and Music on Hold. These are common features found when calling a medium- to large-sized business, and businesses often pay an arm and a leg to get support for them in their PBX. Asterisk supports them by default, So let s go over how to configure them.
Music on hold is regarded by some as both a blessing and a curse. While it is useful to provide feedback to callers that their call is still connected and to give them something to listen to, music on hold is often lampooned by the public as an annoyance. Whether or not to use it is up to you, but let s walk through configuring it anyway.
Music on hold is a breeze to configure. The musiconhold.conf comes with a music on hold class ready for files, so often all you need to do is put some ulaw encoded files of your favorite songs in the moh/ subdirectory of your Asterisk sounds directory, usually /var/lib/asterisk/. Once this is done, issue an asterisk reload command to the CLI and you should be ready to go. If you put a caller on hold, they should enjoy the sweet sounds of whatever files you added to the moh/ directory.
Music on hold can be assigned to separate classes, and each class can be assigned...