[svn-commits] russell: branch group/addons-merge r204401 - /team/group/addons-merge/doc/tex/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jun 30 10:13:00 CDT 2009


Author: russell
Date: Tue Jun 30 10:12:57 2009
New Revision: 204401

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=204401
Log:
Add cdr_mysql docs

Modified:
    team/group/addons-merge/doc/tex/cdrdriver.tex

Modified: team/group/addons-merge/doc/tex/cdrdriver.tex
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/addons-merge/doc/tex/cdrdriver.tex?view=diff&rev=204401&r1=204400&r2=204401
==============================================================================
--- team/group/addons-merge/doc/tex/cdrdriver.tex (original)
+++ team/group/addons-merge/doc/tex/cdrdriver.tex Tue Jun 30 10:12:57 2009
@@ -197,7 +197,39 @@
 
 \subsection{MySQL}
 
+\subsubsection{ODBC}
+
 Using MySQL for CDR records is supported by using ODBC and the cdr\_odbc module.
+
+\subsubsection{Native}
+
+Alternatively, there is a native MySQL CDR module.
+
+To use it, configure the module in cdr\_mysql.conf.  Create a table called cdr under the database name you will be using the following schema.
+
+\begin{astlisting}
+\begin{verbatim}
+CREATE TABLE cdr (
+  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 ''
+);
+\end{verbatim}
+\end{astlisting}
+
 
 \subsection{PostgreSQL}
         If you want to go directly to postgresql database, and have the cdr\_pgsql.so




More information about the svn-commits mailing list