]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
sql format for CDR.. send HUP to rotate.. then import into SQL
authorBrian West <brian@freeswitch.org>
Thu, 13 Dec 2007 17:16:10 +0000 (17:16 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 13 Dec 2007 17:16:10 +0000 (17:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6754 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/autoload_configs/cdr_csv.conf.xml
conf/autoload_configs/console.conf.xml

index 87ebc42495be53853b863fb9a03b2651b487c0ff..39612d3e8a1ecfe5332fc7d0e67693d06463e1a4 100644 (file)
@@ -6,6 +6,7 @@
     <param name="rotate-on-hup" value="true"/>
   </settings>
   <templates>
+    <template name="sql">INSERT INTO cdr VALUES ("${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}");</template>
     <template name="example">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}"</template>
     <template name="asterisk">"${accountcode}","${caller_id_number}","${destination_number}","${context}","${caller_id}","${channel_name}","${bridge_channel}","${last_app}","${last_arg}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${amaflags}","${uuid}","${userfield}"</template>
   </templates>
index 12407ee2485b002a3a2cf1d1cd8407db42baf21e..76508cb17e16227ca060bc22052f3afae6fc6d6d 100644 (file)
@@ -6,7 +6,7 @@
         name can be a file name, function name or 'all' 
         value is one or more of debug,info,notice,warning,err,crit,alert,all
     -->
-    <map name="all" value="info,notice,warning,err,crit,alert"/>
+    <map name="all" value="debug,info,notice,warning,err,crit,alert"/>
   </mappings>
   <settings>
     <!-- comment or set to false for no color logging -->