Book Image

FreeSWITCH Cookbook

By : Raymond Chandler, Darren Schreiber, Anthony Minessale II, Michael Collins
Book Image

FreeSWITCH Cookbook

By: Raymond Chandler, Darren Schreiber, Anthony Minessale II, Michael Collins

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
About the Authors
About the Reviewers

Getting familiar with the fs_cli interface

The preferred method of connecting to the FreeSWITCH console is to use the fs_cli program, where "fs_cli" stands for FreeSWITCH Command-line Interface. This program comes with FreeSWITCH, as part of the default installation, and works in Linux/Unix, Mac OS X, and Windows. What is less well known about fs_cli is that it is an excellent example of an ESL program. Beyond that, anything that you can do with fs_cli, you can do with ESL and the event socket. (Keep in mind that when you are logged in to fs_cli you can do anything that you can do at the FreeSWITCH console, including shutting down the system and disconnecting any calls. Exercise appropriate caution when using fs_cli.)

The natural first step in mastering the external control of FreeSWITCH is to become familiar with fs_cli. Indeed, it is one of the most important tools for interacting with your FreeSWITCH server.


If you're familiar with C programming then you might appreciate the source...