cdr_mysql.conf 2.4 KB

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