Book Image

FreeSWITCH 1.6 Cookbook

By : Giovanni Maruzzelli, Anthony Minessale II
Book Image

FreeSWITCH 1.6 Cookbook

By: Giovanni Maruzzelli, Anthony Minessale II

Overview of this book

Table of Contents (14 chapters)
FreeSWITCH 1.6 Cookbook
About the Authors
About the Reviewers

Directly inputting CDRs into various databases in real time

Although various engineering reasons militate against it, many in the community felt the need for FreeSWITCH to directly write CDRs to database tables.

How to do it...

Various modules give you flexibility of SQL and NoSQL data storage:

  • mod_cdr_mongodb: This saves detailed CDR data in a MongoDB database, in a format similar to mod_json_cdr.

  • mod_odbc_cdr: This saves any channel variable from the call to an ODBC database of your choice.

  • mod_cdr_pg_csv : This logs call detail records (CDRs) directly to a PostgreSQL database, using the schema defined in the config file.

  • mod_cdr_sqlite: This saves directly in a sqlite DB with the variables you specify in a template.

  • mod_json_cdr: This saves in the file or POSTs a JSON representation of the channel variable and call flow. It can post directly to CouchDB.

  • mod_radius_cdr: This is the RADIUS CDR module.

There's more...

As always, you can find plenty of information on the FreeSWITCH documentation site...