[asterisk-bugs] [Asterisk 0017036]: Perl script to import CDR text file to ODBC database table
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Mar 15 22:23:04 CDT 2010
The following issue has been SUBMITTED.
======================================================================
https://issues.asterisk.org/view.php?id=17036
======================================================================
Reported By: precisenetworks
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17036
Category: Utilities/NewFeature
Reproducibility: always
Severity: feature
Priority: normal
Status: new
Asterisk Version: Addons-1.6.2.0
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-03-15 22:23 CDT
Last Modified: 2010-03-15 22:23 CDT
======================================================================
Summary: Perl script to import CDR text file to ODBC database
table
Description:
I hope to save others from reinventing the wheel. The code could be
optimized a little, but it works on the default cdr format quite well. The
prerequisite table will need to be configured. Here is the statement I
used to create my cdr table in MySQL:
CREATE TABLE `cdr` (
`id` int(11) unsigned primary key not null auto_increment,
`calldate` datetime NOT NULL default '0000-00-00 00:00:00',
`clid` varchar(80) NOT NULL default '',
`src` varchar(80) NOT NULL default '',
`dst` varchar(80) NOT NULL default '',
`dcontext` varchar(80) NOT NULL default '',
`channel` varchar(80) NOT NULL default '',
`dstchannel` varchar(80) NOT NULL default '',
`lastapp` varchar(80) NOT NULL default '',
`lastdata` varchar(80) NOT NULL default '',
`duration` int(11) NOT NULL default '0',
`billsec` int(11) NOT NULL default '0',
`disposition` varchar(45) NOT NULL default '',
`amaflags` int(11) NOT NULL default '0',
`accountcode` varchar(20) NOT NULL default '',
`uniqueid` VARCHAR(32) NOT NULL default '',
`userfield` varchar(255) NOT NULL default ''
);
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-03-15 22:23 precisenetworksNew Issue
2010-03-15 22:23 precisenetworksAsterisk Version => Addons-1.6.2.0
2010-03-15 22:23 precisenetworksRegression => No
2010-03-15 22:23 precisenetworksSVN Branch (only for SVN checkouts, not tarball
releases) => N/A
======================================================================
More information about the asterisk-bugs
mailing list