[asterisk-commits] juggie: branch juggie/cdr_conf_thoughts r78567 - /team/juggie/cdr_conf_thoughts/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Aug 7 22:25:35 CDT 2007


Author: juggie
Date: Tue Aug  7 22:25:34 2007
New Revision: 78567

URL: http://svn.digium.com/view/asterisk?view=rev&rev=78567
Log:
add sample

Added:
    team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample   (with props)

Added: team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample
URL: http://svn.digium.com/view/asterisk/team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample?view=auto&rev=78567
==============================================================================
--- team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample (added)
+++ team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample Tue Aug  7 22:25:34 2007
@@ -1,0 +1,127 @@
+;
+; Asterisk Call Detail Record engine configuration
+;
+; CDR is Call Detail Record, which provides logging services via a variety of
+; pluggable backend modules.  Detailed call information can be recorded to
+; databases, files, etc.  Useful for billing, fraud prevention, compliance with
+; Sarbanes-Oxley aka The Enron Act, QOS evaluations, and more.
+;
+
+[general]
+
+; Define whether or not to use CDR logging.  Setting this to "no" will override
+; any loading of backend CDR modules.  Default is "yes".
+;enable=yes
+
+; Define the maximum number of CDRs to accumulate in the post buffer before 
+; refusing to accept anymore
+;size=1000
+
+; When shutting down asterisk, you can block until the CDRs are submitted.  If
+; you don't, then data will likely be lost.  You can always check the size of
+; the CDR batch buffer with the CLI "cdr status" command.  To enable blocking on
+; submission of CDR data during asterisk shutdown, set this to "yes".  Default
+; is "yes".
+;safeshutdown=yes
+;
+
+; Normally, CDR's are not closed out until after all extensions are finished
+; executing.  By enabling this option, the CDR will be ended before executing
+; the "h" extension so that CDR values such as "end" and "billsec" may be
+; retrieved inside of of this extension.
+;endbeforehexten=no
+
+; backend drivers
+; engines will register themselves as the cdr modules load
+; as each module loads it will check cdr.conf for instances of itself
+; looking for one or more depending on if it supports multiple
+; registrations or not (eg, manager would never support multiple)
+
+[csv]
+enable=yes
+engine=csv
+filename=Master.csv
+usegmtime=yes ;log date/time in GMT
+loguniqueid=yes ;log uniqueid
+loguserfield=yes ;log user field
+
+;[radius]
+;enable=yes
+;engine=radius
+;usegmtime=yes ;log date/time in GMT
+;loguniqueid=yes ;log uniqueid
+;loguserfield=yes ;log user field
+; Set this to the location of the radiusclient-ng configuration file
+; The default is /etc/radiusclient-ng/radiusclient.conf
+;radiuscfg => /usr/local/etc/radiusclient-ng/radiusclient.conf
+
+;[odbc1]
+;enable=yes
+;engine=odbc
+;dsn=MySQL-test
+;username=username
+;password=password
+;loguniqueid=yes
+;dispositionstring=yes
+;table=cdr		;"cdr" is default table name
+;usegmtime=no             ; set to "yes" to log in GMT
+
+;[odbc2]
+;enable=yes
+;engine=odbc
+;dsn=PgSQL-test
+;username=username
+;password=password
+;loguniqueid=yes
+;dispositionstring=yes
+;table=cdr		;"cdr" is default table name
+;usegmtime=no             ; set to "yes" to log in GMT
+
+[pgsql]
+;enable=yes
+;engine=pgsql
+;hostname=localhost
+;port=5432
+;dbname=asterisk
+;password=password
+;user=postgres
+;table=cdr		;SQL table where CDRs will be inserted
+
+;[sqllite]
+;enable=yes
+;engine = sqllite
+;table = cdr
+;columns = calldate, clid, dcontext, channel, dstchannel, lastapp, lastdata, duration, billsec, disposition, amaflags, accountcode, uniqueid, userfield, test
+;values = '${CDR(start)}','${CDR(clid)}','${CDR(dcontext)}','${CDR(channel)}','${CDR(dstchannel)}','${CDR(lastapp)}','${CDR(lastdata)}','${CDR(duration)}','${CDR(billsec)}','${CDR(disposition)}','${CDR(amaflags)}','${CDR(accountcode)}','${CDR(uniqueid)}','${CDR(userfield)}','${CDR(test)}'
+
+;[csvcustom]
+;enable=yes
+;engine=csvcustom
+;Master.csv = "${CDR(clid)}","${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${CDR(channel)}","${CDR(dstchannel)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(start)}","${CDR(answer)}","${CDR(end)}","${CDR(duration)}","${CDR(billsec)}","${CDR(disposition)}","${CDR(amaflags)}","${CDR(accountcode)}","${CDR(uniqueid)}","${CDR(userfield)}"
+
+;[manager]
+;enable=yes
+;mapping=rate,Rate
+;mapping=carrier,Carrier
+
+;[adaptive_odbc_first]
+;enable=yes
+;engine = adaptive_odbc
+;connection=mysql1
+;table=cdr
+
+;[adaptive_odbc_second]
+;enable=yes
+;engine = adaptive_odbc
+;connection=mysql1
+;table=extracdr
+
+;[adaptive_odbc_third]
+;enable=yes
+;engine = adaptive_odbc
+;connection=sqlserver
+;table=AsteriskCDR
+;alias src => source
+;alias channel => source_channel
+;alias dst => dest
+;alias dstchannel => dest_channel

Propchange: team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample
------------------------------------------------------------------------------
    svn:executable = *

Propchange: team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/juggie/cdr_conf_thoughts/cdr.conf.thoughts.sample
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list