Book Image

Freeswitch 1.6 Cookbook

Book Image

Freeswitch 1.6 Cookbook

Overview of this book

Table of Contents (14 chapters)
FreeSWITCH 1.6 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 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...