aboutsummaryrefslogtreecommitdiffstats
path: root/configs/cdr_adaptive_odbc.conf.sample
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 20:21:11 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-05-18 20:21:11 +0000
commit5e6227cb7c147aba97fec2bf28e6d649c885a11f (patch)
treee99c62ac304f8e48a43cb54c92c96be91c376d2a /configs/cdr_adaptive_odbc.conf.sample
parentda13ecec36a3b613009a7821f972f06b72421bef (diff)
Merge cdr_adaptive_odbc from developer branch
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@65169 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/cdr_adaptive_odbc.conf.sample')
-rw-r--r--configs/cdr_adaptive_odbc.conf.sample36
1 files changed, 36 insertions, 0 deletions
diff --git a/configs/cdr_adaptive_odbc.conf.sample b/configs/cdr_adaptive_odbc.conf.sample
new file mode 100644
index 000000000..e254bb8be
--- /dev/null
+++ b/configs/cdr_adaptive_odbc.conf.sample
@@ -0,0 +1,36 @@
+;
+; This configuration defines the connections and tables for which CDRs may
+; be populated. Each context specifies a different CDR table to be used.
+;
+; The columns in the tables should match up word-for-word (case-insensitive)
+; to the CDR variables set in the dialplan. The natural advantage to this
+; system is that beyond setting up the configuration file to tell you what
+; tables to look at, there isn't anything more to do beyond creating the
+; columns for the fields that you want, and populating the corresponding
+; CDR variables in the dialplan. For the builtin variables only, you may
+; create aliases for the real column name.
+;
+; Please note that after adding columns to the database, it is necessary to
+; reload this module to get the new column names and types read.
+;
+; Warning: if you specify two contexts with exactly the same connection and
+; table names, you will get duplicate records in that table. So be careful.
+;
+
+[first]
+connection=mysql1
+table=cdr
+
+[second]
+connection=mysql1
+table=extracdr
+
+[third]
+connection=sqlserver
+table=AsteriskCDR
+alias src => source
+alias channel => source_channel
+alias dst => dest
+alias dstchannel => dest_channel
+
+