Book Image

FreeSWITCH 1.8

By : Anthony Minessale II, Giovanni Maruzzelli
Book Image

FreeSWITCH 1.8

By: Anthony Minessale II, Giovanni Maruzzelli

Overview of this book

FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice and chat-driven products, scaling from a soft-phone to a PBX and even up to an enterprise-class soft-switch. This book introduces FreeSWITCH to IT professionals who want to build their own telephony system. This book starts with a brief introduction to the latest version of FreeSWITCH. We then move on to the fundamentals and the new features added in version 1.6, showing you how to set up a basic system so you can make and receive phone calls, make calls between extensions, and utilize basic PBX functionality. Once you have a basic system in place, we’ll show you how to add more and more functionalities to it. You’ll learn to deploy the features on the system using unique techniques and tips to make it work better. Also, there are changes in the security-related components, which will affect the content in the book, so we will make that intact with the latest version. There are new support libraries introduced, such as SQLite, OpenSS, and more, which will make FreeSWITCH more efficient and add more functions to it. We’ll cover these in the new edition to make it more appealing for you.
Table of Contents (23 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

ESL Reference


Following are the most important functions and their arguments, as per how they are available in all ESL implementations for the various programming languages.

eslSetLogLevel

eslSetLogLevel($loglevel) 

Calling this function within your program causes your program to issue informative messages related to the Event Socket Library on STDOUT.

The values for $loglevel are the usual:

  • 0 is EMERG
  • 1 is ALERT
  • 2 is CRIT
  • 3 is ERROR
  • 4 is WARNING
  • 5 is NOTICE
  • 6 is INFO
  • 7 is DEBUG

ESLevent Object

This is the object that represent an Event, can be created (with new()) or received. Its methods are as follows:

new

new($event_type [, $event_subclass]) 

Instantiates a new event object of that type. Optionally, in case of CUSTOM and other type of events, you specify the subclass.

serialize

serialize([$format]) 

Print the event into colon-separated 'name: value' pairs similar to a sip/email packet (the way it looks on '/events plain all').

$format can be:

  • "xml"
  • "json"
  • "plain" (default)

setPriority

setPriority([$number]) 

Sets...