Book Image

FreeSWITCH Cookbook

Book Image

FreeSWITCH Cookbook

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
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Recording calls


Many enterprises need to record calls for quality control purposes. This recipe describes how you can record inbound and outbound calls on your FreeSWITCH server. If you need assistance in getting calls into and out of your FreeSWITCH system, refer to Inbound DID calls and Outgoing calls both in Chapter 1.

Note

Most countries and localities have laws relating to the recording of phone calls. Always consult a licensed legal professional in your jurisdiction before you start recording phone calls.

Getting ready

Recording calls is actually very simple. All you need is a text editor so that you can add a few lines to your dialplan.

How to do it...

The FreeSWITCH dialplan application record_session is used for recording calls, whether they are inbound or outbound. (Call direction does not affect the record_session application.)

For inbound calls it is easiest to enable recording right on the Local_Extension. Follow the steps:

  1. Open conf/dialplan/default.xml and locate the Local_Extension...