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

Setting up the event socket library


Most event socket programming is not usually done in C, but rather one of the common scripting languages, like Perl, PHP, Python, and Ruby. The Event Socket Library (ESL) is available as a tool for those working in a Linux/Unix environment.

Getting ready

The most difficult part about using ESL with a scripting language is making sure that the necessary development libraries have been installed. This process varies among operating systems and languages. The instructions presented here are for Debian or Red Hat Linux variants. If your operating system is not among these then it is recommended that you check with the website for your language and look for instructions on how to install the development libraries.

Debian

Debian variants (such as Ubuntu) generally use the apt package manager. The development libraries can be installed with these commands:

apt-get install libperl-dev
apt-get install python-dev
apt-get install php5-dev
apt-get install ruby-dev

Red...