Book Image

Freeswitch 1.6 Cookbook

Book Image

Freeswitch 1.6 Cookbook

Overview of this book

Table of Contents (14 chapters)
FreeSWITCH 1.6 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

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...