2
0

cdr_pg_csv.conf.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <configuration name="cdr_pg_csv.conf" description="CDR PG CSV Format">
  2. <settings>
  3. <!-- See parameters for PQconnectdb() at http://www.postgresql.org/docs/8.4/static/libpq-connect.html -->
  4. <param name="db-info" value="host=localhost dbname=cdr connect_timeout=10" />
  5. <!-- CDR table name -->
  6. <!--<param name="db-table" value="cdr"/>-->
  7. <!-- Log a-leg (a), b-leg (b) or both (ab) -->
  8. <param name="legs" value="a"/>
  9. <!-- Directory in which to spool failed SQL inserts -->
  10. <!-- <param name="spool-dir" value="$${log_dir}/cdr-pg-csv"/> -->
  11. <!-- Disk spool format if DB connection/insert fails - csv (default) or sql -->
  12. <param name="spool-format" value="csv"/>
  13. <param name="rotate-on-hup" value="true"/>
  14. <!-- This is like the info app but after the call is hung up -->
  15. <!--<param name="debug" value="true"/>-->
  16. </settings>
  17. <schema>
  18. <field var="local_ip_v4"/>
  19. <field var="caller_id_name"/>
  20. <field var="caller_id_number"/>
  21. <field var="destination_number"/>
  22. <field var="context"/>
  23. <field var="start_stamp"/>
  24. <field var="answer_stamp"/>
  25. <field var="end_stamp"/>
  26. <field var="duration" quote="false"/>
  27. <field var="billsec" quote="false"/>
  28. <field var="hangup_cause"/>
  29. <field var="uuid"/>
  30. <field var="bleg_uuid"/>
  31. <field var="accountcode"/>
  32. <field var="read_codec"/>
  33. <field var="write_codec"/>
  34. <!-- <field var="sip_hangup_disposition"/> -->
  35. <!-- <field var="ani"/> -->
  36. </schema>
  37. </configuration>