cdr_mysql.conf.sample 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. ;
  2. ; Note - if the database server is hosted on the same machine as the
  3. ; asterisk server, you can achieve a local Unix socket connection by
  4. ; setting hostname=localhost
  5. ;
  6. ; port and sock are both optional parameters. If hostname is specified
  7. ; and is not "localhost" (you can use address 127.0.0.1 instead), then
  8. ; cdr_mysql will attempt to connect to the port specified or use the
  9. ; default port. If hostname is not specified or if hostname is
  10. ; "localhost", then cdr_mysql will attempt to connect to the socket file
  11. ; specified by sock or otherwise use the default socket file.
  12. ;
  13. ;[global]
  14. ;hostname=database.host.name
  15. ;dbname=asteriskcdrdb
  16. ;table=cdr
  17. ;password=password
  18. ;user=asteriskcdruser
  19. ;port=3306
  20. ;sock=/tmp/mysql.sock
  21. ; By default CDRs are logged in the system's time zone
  22. ;cdrzone=UTC ; log CDRs with UTC
  23. ;usegmtime=yes ;log date/time in GMT. Default is "no"
  24. ;cdrzone=America/New_York ; or use a specific time zone
  25. ;
  26. ; If your system's locale differs from mysql database character set,
  27. ; cdr_mysql can damage non-latin characters in CDR variables. Use this
  28. ; option to protect your data.
  29. ;charset=koi8r
  30. ;
  31. ; Older versions of cdr_mysql set the calldate field to whenever the
  32. ; record was posted, rather than the start date of the call. This flag
  33. ; reverts to the old (incorrect) behavior. Note that you'll also need
  34. ; to comment out the "start=calldate" alias, below, to use this.
  35. ;compat=no
  36. ;
  37. ; ssl connections (optional)
  38. ;ssl_ca=<path to CA cert>
  39. ;ssl_cert=<path to cert>
  40. ;ssl_key=<path to keyfile>
  41. ;
  42. ; You may also configure the field names used in the CDR table.
  43. ;
  44. [columns]
  45. ;static "<value>" => <column>
  46. ;alias <cdrvar> => <column>
  47. alias start => calldate
  48. ;alias clid => <a_field_not_named_clid>
  49. ;alias src => <a_field_not_named_src>
  50. ;alias dst => <a_field_not_named_dst>
  51. ;alias dcontext => <a_field_not_named_dcontext>
  52. ;alias channel => <a_field_not_named_channel>
  53. ;alias dstchannel => <a_field_not_named_dstchannel>
  54. ;alias lastapp => <a_field_not_named_lastapp>
  55. ;alias lastdata => <a_field_not_named_lastdata>
  56. ;alias duration => <a_field_not_named_duration>
  57. ;alias billsec => <a_field_not_named_billsec>
  58. ;alias disposition => <a_field_not_named_disposition>
  59. ;alias amaflags => <a_field_not_named_amaflags>
  60. ;alias accountcode => <a_field_not_named_accountcode>
  61. ;alias userfield => <a_field_not_named_userfield>
  62. ;alias uniqueid => <a_field_not_named_uniqueid>