2010-03-25 12:18:48 -04:00
|
|
|
<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 -->
|
2010-03-25 12:18:48 -04:00
|
|
|
<param name="db-info" value="host=localhost dbname=cdr connect_timeout=10" />
|
2010-12-31 14:13:19 -05:00
|
|
|
<!-- 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"/> -->
|
2011-01-03 12:59:41 -05:00
|
|
|
<!-- 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"/>
|
2010-03-25 12:18:48 -04:00
|
|
|
</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>
|