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

Connecting audio devices with PortAudio


Many of us have a USB headset or a sound card in our laptops or desktop computers. In most cases, FreeSWITCH can utilize these audio devices. Usually this is done for basic troubleshooting or to feed an external audio source into FreeSWITCH. It is also handy when you wish to use FreeSWITCH as a softphone, which is demonstrated later in this chapter.

Getting ready

The mod_portaudio module is already compiled for Windows users when using the Visual Studio 2008/2010 solution files with the FreeSWITCH source code. Linux and Mac OSX users will need to enable mod_portaudio in their FreeSWITCH installation. Follow these steps:

  1. Open modules.conf in the FreeSWITCH source directory and remove the comment on the #endpoints/portaudio line. Save the file and exit.

  2. Compile mod_portaudio using the following command:

    make mod_portaudio-install
    
  3. If you want to have mod_portaudio load automatically each time you start FreeSWITCH then edit conf/autoload_configs/modules...