[Asterisk-Users] MYSQL Table Structure
Aaron Martin
listasterisk at comtek.co.nz
Mon Jul 21 21:21:07 MST 2003
For the information of others (and Google) this is the table structure I used to get cdr_mysql working:
CREATE TABLE cdr (
calldate varchar(255) NOT NULL default '',
clid varchar(255) NOT NULL default '',
src varchar(255) NOT NULL default '',
dst varchar(255) NOT NULL default '',
dcontext varchar(255) NOT NULL default '',
channel varchar(255) NOT NULL default '',
dstchannel varchar(255) NOT NULL default '',
lastapp varchar(255) NOT NULL default '',
lastdata varchar(255) 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(255) NOT NULL default '',
KEY src (src),
KEY clid (clid),
KEY dst (dst),
KEY accountcode (accountcode)
) TYPE=MyISAM COMMENT='Asterisk CDR table';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030721/b4d8b197/attachment.htm
More information about the asterisk-users
mailing list