Book Image

Freeswitch 1.6 Cookbook

By : Anthony Minessale II, Giovanni Maruzzelli
Book Image

Freeswitch 1.6 Cookbook

By: Anthony Minessale II, Giovanni Maruzzelli

Overview of this book

FreeSWITCH 1.6 Cookbook is written for anyone who wants to learn more about using FreeSWITCH in production. The information is presented in such a way that you can get up and running quickly. The cookbook approach eschews much of the foundational concepts, and instead focuses on discrete examples that illustrate specific features. If you need to implement a particular feature as quickly as possible, then this book is for you.
Table of Contents (9 chapters)
8
Index

Setting up the event socket library

Most event socket programming is not usually done in C, but rather in one of the more common scripting languages, such as Perl, PHP, Python, Ruby, and so on. The Event Socket Library (ESL) is available as a tool for abstracting the nitty-gritty of socket interacting.

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/Ubuntu

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

apt-get install libxml2-dev libpcre3-dev libcurl4-openssl-dev libgmp3-dev...