2010-03-25 12:18:48 -04:00
|
|
|
<configuration name="cdr_pg_csv.conf" description="CDR PG CSV Format">
|
|
|
|
<settings>
|
|
|
|
<!-- 'cdr-pg-csv' will always be appended to log-base -->
|
|
|
|
<!--<param name="log-base" value="/var/log"/>-->
|
|
|
|
<param name="rotate-on-hup" value="true"/>
|
2010-12-30 17:24:54 -05:00
|
|
|
<!-- Log a-leg (a), b-leg (b) or both (ab) -->
|
2010-03-25 12:18:48 -04:00
|
|
|
<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 -->
|
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"/>-->
|
2010-12-30 17:24:54 -05:00
|
|
|
<param name="default-template" value="example"/>
|
|
|
|
<!-- This is like the info app but after the call is hung up -->
|
|
|
|
<!--<param name="debug" value="true"/>-->
|
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>
|
|
|
|
|