Ticket #9551: New Text Document.2.txt

File New Text Document.2.txt, 2.5 KB (added by Gerrit <gerrit308@…>, 5 years ago)

correct patch

Line 
1Index: cdr-csv/autoload_configs/cdr_csv.conf.xml
2===================================================================
3--- cdr-csv/autoload_configs/cdr_csv.conf.xml   (revision 0)
4+++ cdr-csv/autoload_configs/cdr_csv.conf.xml   (revision 0)
5@@ -0,0 +1,22 @@
6+<configuration name="cdr_csv.conf" description="CDR CSV Format">
7+  <settings>
8+    <!-- 'cdr-csv' will always be appended to log-base -->
9+    <!--<param name="log-base" value="/var/log"/>-->
10+    <param name="default-template" value="example"/>
11+    <!-- This is like the info app but after the call is hung up -->
12+    <!--<param name="debug" value="true"/>-->
13+    <param name="rotate-on-hup" value="true"/>
14+    <!-- may be a b or ab -->
15+    <param name="legs" value="a"/>
16+       <!-- Only log in Master.csv -->
17+       <!-- <param name="master-file-only" value="true"/> -->
18+  </settings>
19+  <templates>
20+    <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>
21+    <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}","${read_codec}","${write_codec}"</template>
22+    <template name="snom">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}", "${accountcode}","${read_codec}","${write_codec}","${sip_user_agent}","${call_clientcode}","${sip_rtp_rxstat}","${sip_rtp_txstat}","${sofia_record_file}"</template>
23+    <template name="linksys">"${caller_id_name}","${caller_id_number}","${destination_number}","${context}","${start_stamp}","${answer_stamp}","${end_stamp}","${duration}","${billsec}","${hangup_cause}","${uuid}","${bleg_uuid}","${accountcode}","${read_codec}","${write_codec}","${sip_user_agent}","${sip_p_rtp_stat}"</template>
24+    <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>
25+  </templates>
26+</configuration>
27+