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

Using a web server to handle XML CDRs

One feature of FreeSWITCH's mod_xml_cdr is that it can use HTTP POST actions to send CDR data to a web server which in turn can process those, perhaps putting them into a database. This mechanism has several advantages:

  • Modern web servers can handle enormous amounts of traffic

  • Multiple FreeSWITCH servers can post to a single CDR Server

  • Multiple web servers can be set up to allow failover and redundancy

The recipe presented here will focus on the steps needed to get a web server set up to process incoming POST requests with XML CDR data.

Getting ready

You will need an operational web server that you control. Most Linux/Unix and Windows systems can have an Apache web server installed. Detailed instructions on configuring a web server are beyond the scope of this book, however such instructions are available in numerous books and on the Internet. This recipe will assume a clean install of the Apache web server, but the principles apply to other servers such as...