Skip to content
lordnull edited this page Dec 12, 2011 · 1 revision

A common interface for exporting cdr and agent state data to other formats. Once a backend successfully saved the data, the gen_cdr_dumper would mark the data as exported for the specific node in mnesia. Once all nodes had flagged data as exported, it would be removed from mnesia.

Warning This module has been supplanted by OACD Hop, and thus has not been maintained. It is unlikely to work, and documented here primarily for historical reasons.

Configuration

gen_cdr_dumper has 4 existing modes of operation, each with their own configuration options: Null, ODBC, CSV, and DETS.

Null

This backend simply flagged the data as exported, basically disabling data exporting on the node. This is the default dumper.

ODBC

Given a dsn to commit to, gen_cdr_dumper will attempt to store cdr and agent state data in a database. The SQL to create the expected tables can be found in misc/agent_states.sql and billing_records.sql.

Enabling trace enables debug output to the console.

CSV

Writes each cdr's and agent state records to a comma seperated values file.

DETS

Writes the exact structure mensia uses to a pair of DETS files. DETS is to mnesia what sqlite is to MySQL (or similar database server).

Future improvements

Each of the above options can be better implemented using a consumer for OACD Hop.

back to Configuring Modules