freeswitch/conf/autoload_configs/cdr_pg_csv.conf.xml

22 lines
1.3 KiB
XML
Raw Normal View History

<configuration name="cdr_pg_csv.conf" description="CDR PG CSV Format">
<settings>
2010-12-30 17:24:54 -05:00
<!-- Log a-leg (a), b-leg (b) or both (ab) -->
<param name="legs" value="a"/>
2010-12-30 17:24:54 -05:00
<!-- See parameters for PQconnectdb() at http://www.postgresql.org/docs/8.4/static/libpq-connect.html -->
<param name="db-info" value="host=localhost dbname=cdr connect_timeout=10" />
<!-- CDR table name -->
<!--<param name="db-table" value="cdr"/>-->
2010-12-30 17:24:54 -05:00
<param name="default-template" value="example"/>
2011-01-03 08:01:08 -05:00
<!-- 'cdr-pg-csv' will always be appended to log-base -->
<!--<param name="log-base" value="/var/log"/>-->
<!-- Disk spool format if DB connection/insert fails - csv (default) or sql -->
<param name="spool-format" value="csv"/>
2011-01-03 08:01:08 -05:00
<param name="rotate-on-hup" value="true"/>
2010-12-30 17:24:54 -05:00
<!-- This is like the info app but after the call is hung up -->
<!--<param name="debug" value="true"/>-->
</settings>
<templates>
<template name="example">"${local_ip_v4}","${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_hangup_disposition}","${ani}"</template>
</templates>
</configuration>