freeswitch/conf/autoload_configs/cdr_pg_csv.conf.xml

26 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
<!-- 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"/>-->
2011-02-07 11:09:14 -05:00
<!-- Log a-leg (a), b-leg (b) or both (ab) -->
<param name="legs" value="a"/>
<!-- Directory in which to spool failed SQL inserts -->
<!-- <param name="spool-dir" value="$${base_dir}/log/cdr-pg-csv"/> -->
<!-- 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"/>
2011-02-07 11:09:14 -05:00
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"/>-->
2011-02-07 11:09:14 -05:00
<param name="default-template" value="example"/>
</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>