cdr_adaptive_odbc.conf.sample 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ;
  2. ; This configuration defines the connections and tables for which CDRs may
  3. ; be populated. Each context specifies a different CDR table to be used.
  4. ;
  5. ; The columns in the tables should match up word-for-word (case-insensitive)
  6. ; to the CDR variables set in the dialplan. The natural advantage to this
  7. ; system is that beyond setting up the configuration file to tell you what
  8. ; tables to look at, there isn't anything more to do beyond creating the
  9. ; columns for the fields that you want, and populating the corresponding
  10. ; CDR variables in the dialplan. For the builtin variables only, you may
  11. ; create aliases for the real column name.
  12. ;
  13. ; Please note that after adding columns to the database, it is necessary to
  14. ; reload this module to get the new column names and types read.
  15. ;
  16. ; Warning: if you specify two contexts with exactly the same connection and
  17. ; table names, you will get duplicate records in that table. So be careful.
  18. ;
  19. ;[first]
  20. ;connection=mysql1
  21. ;table=cdr
  22. ;[second]
  23. ;connection=mysql1
  24. ;table=extracdr
  25. ;[third]
  26. ;connection=sqlserver
  27. ;table=AsteriskCDR
  28. ;alias src => source
  29. ;alias channel => source_channel
  30. ;alias dst => dest
  31. ;alias dstchannel => dest_channel
  32. ;
  33. ; Any filter specified MUST match exactly or the CDR will be discarded
  34. ;filter accountcode => somename
  35. ;filter src => 123