O'Reilly logo

FreeSWITCH Cookbook by Raymond Chandler, Darren Schreiber, Michael S Collins, Anthony Minessale

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using CSV CDRs

It is a simple matter 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 $FS_INSTALL/log/cdr-csv/ directory. To review the options available, open the file conf/autoload_configs/cdr_csv.conf.xml. 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"/> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required