Book Image

FreeSWITCH Cookbook

Book Image

FreeSWITCH Cookbook

Overview of this book

FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice, chat, and video applications. It can scale from a soft-phone to a PBX and even up to an enterprise-class softswitch.In the FreeSWITCH Cookbook, members of the FreeSWITCH development team share some of their hard-earned knowledge with you in the book's recipes. Use this knowledge to improve and expand your FreeSWITCH installations.The FreeSWITCH Cookbook is an essential addition to any VoIP administrator's library.The book starts with recipes on how to handle call routing and then discusses connecting your FreeSWITCH server to the outside world.It then teaches you more advanced topics like CDR handling, practical examples of controlling FreeSWITCH with the event socket, and configuring many features commonly associated with a PBX installation.
Table of Contents (12 chapters)
FreeSWITCH Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Music on hold


Music on hold (MOH) is a common feature of modern phone systems. FreeSWITCH allows you to have many different MOH selections.

Getting ready

You will need some music files if you wish to customize the MOH. Also, if you have MP3 files that you would like to use for MOH then you will need a utility that can convert them into standard WAV files. A freely available tool can be found at http://www.mpg123.de. You will also need a text editor and a telephone connected to your FreeSWITCH server.

How to do it...

The first thing to do is to install the default MOH files from the FreeSWITCH download site. The Linux/Unix users can issue the following command from the FreeSWITCH source directory:

make cd-moh-install

On Windows, the sound files are installed automatically as part of the MSVC solution file.

Once the sounds are installed you can confirm that they work by dialing 9664 (no reloadxml or system restart is necessary).

How it works...

The make command issued above installs the MOH files...