Book Image

Freeswitch 1.6 Cookbook

By : Anthony Minessale II, Giovanni Maruzzelli
Book Image

Freeswitch 1.6 Cookbook

By: Anthony Minessale II, Giovanni Maruzzelli

Overview of this book

FreeSWITCH 1.6 Cookbook is written for anyone who wants to learn more about using FreeSWITCH in production. The information is presented in such a way that you can get up and running quickly. The cookbook approach eschews much of the foundational concepts, and instead focuses on discrete examples that illustrate specific features. If you need to implement a particular feature as quickly as possible, then this book is for you.
Table of Contents (9 chapters)
8
Index

Using CSV CDRs


It is a simple thing to store CDRs in CSV format. This recipe describes the steps necessary to store call records in plain-text CSV files.

Getting ready

In the default configuration, mod_cdr_csv is compiled and enabled by default. CDR data is stored in the log/cdr-csv/ directory. To review the options available, open the conf/autoload_configs/cdr_csv.conf.xml file. Here are the parameters available in the settings section:

<settings>
    <!-- 'cdr-csv' will always be appended to log-base -->
    <!--<param name="log-base" value="/var/log"/>-->
    <param name="default-template" value="example"/>
    <!-- This is like the info app but after the call is hung up -->
    <!--<param name="debug" value="true"/>-->
    <param name="rotate-on-hup" value="true"/>
    <!-- may be a b or ab -->
    <param name="legs" value="a"/>
    <!-- Only log in Master.csv -->
    <!-- <param name="master-file-only" value...