cdr_mysql.conf.sample 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. ;timezone=UTC ; Previously called usegmtime
  22. ;
  23. ; If your system's locale differs from mysql database character set,
  24. ; cdr_mysql can damage non-latin characters in CDR variables. Use this
  25. ; option to protect your data.
  26. ;charset=koi8r
  27. ;
  28. ; Older versions of cdr_mysql set the calldate field to whenever the
  29. ; record was posted, rather than the start date of the call. This flag
  30. ; reverts to the old (incorrect) behavior. Note that you'll also need
  31. ; to comment out the "start=calldate" alias, below, to use this.
  32. ;compat=no
  33. ;
  34. ; ssl connections (optional)
  35. ;ssl_ca=<path to CA cert>
  36. ;ssl_cert=<path to cert>
  37. ;ssl_key=<path to keyfile>
  38. ;
  39. ; You may also configure the field names used in the CDR table.
  40. ;
  41. [columns]
  42. ;static "<value>" => <column>
  43. ;alias <cdrvar> => <column>
  44. alias start => calldate
  45. ;alias clid => <a_field_not_named_clid>
  46. ;alias src => <a_field_not_named_src>
  47. ;alias dst => <a_field_not_named_dst>
  48. ;alias dcontext => <a_field_not_named_dcontext>
  49. ;alias channel => <a_field_not_named_channel>
  50. ;alias dstchannel => <a_field_not_named_dstchannel>
  51. ;alias lastapp => <a_field_not_named_lastapp>
  52. ;alias lastdata => <a_field_not_named_lastdata>
  53. ;alias duration => <a_field_not_named_duration>
  54. ;alias billsec => <a_field_not_named_billsec>
  55. ;alias disposition => <a_field_not_named_disposition>
  56. ;alias amaflags => <a_field_not_named_amaflags>
  57. ;alias accountcode => <a_field_not_named_accountcode>
  58. ;alias userfield => <a_field_not_named_userfield>
  59. ;alias uniqueid => <a_field_not_named_uniqueid>