O'Reilly logo

FreeSWITCH 1.6 Cookbook by Giovanni Maruzzelli, Michael S Collins, Anthony Minessale II

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

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

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