aboutsummaryrefslogtreecommitdiffstats
path: root/doc/cdr_mysql.txt
blob: 9127c2f2b18cf05053f93f2be417d52aad2d3ab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Call Detail Recording for MySQL
===============================

Usage:
======

Include the module in your modules.conf.  Change the database hostname, database name, username, and password in cdr_mysql.conf.

Create a table called cdr under the database name you will be using the following schema.

CREATE TABLE cdr (
  calldate datetime NOT NULL default '0000-00-00 00:00:00',
  clid varchar(45) NOT NULL default '',
  src varchar(45) NOT NULL default '',
  dst varchar(45) NOT NULL default '',
  dcontext varchar(45) NOT NULL default '',
  channel varchar(45) NOT NULL default '',
  dstchannel varchar(45) NOT NULL default '',
  lastapp varchar(45) NOT NULL default '',
  lastdata varchar(45) NOT NULL default '',
  duration int(11) NOT NULL default '0',
  billsec int(11) NOT NULL default '0',
  disposition int(11) NOT NULL default '0',
  amaflags int(11) NOT NULL default '0',
  accountcode varchar(45) NOT NULL default ''
);

The calls will automatically be logged as long as the module is loaded.