cel_odbc.conf.sample 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. ;
  2. ; Asterisk Channel Event Logging (CEL) - Adaptive ODBC Backend
  3. ;
  4. ; This configuration defines the connections and tables for which CEL records
  5. ; may be populated. Each context specifies a different CEL table to be used.
  6. ;
  7. ; The columns in the tables should match up word-for-word (case-insensitive) to
  8. ; the CEL variables set in the dialplan. The natural advantage to this system
  9. ; is that beyond setting up the configuration file to tell you what tables to
  10. ; look at, there isn't anything more to do beyond creating the columns for the
  11. ; fields that you want, and populating the corresponding CEL variables in the
  12. ; dialplan.
  13. ;
  14. ; Please note that after adding columns to the database, it is necessary to
  15. ; reload this module to get the new column names and types read.
  16. ;
  17. ; Warning: if you specify two contexts with exactly the same connection and
  18. ; table names, you will get duplicate records in that table. So be careful.
  19. ;
  20. ; CEL FIELDS:
  21. ; eventtype
  22. ; CHANNEL_START = 1
  23. ; CHANNEL_END = 2
  24. ; HANGUP = 3
  25. ; ANSWER = 4
  26. ; APP_START = 5
  27. ; APP_END = 6
  28. ; BRIDGE_START = 7
  29. ; BRIDGE_END = 8
  30. ; CONF_START = 9
  31. ; CONF_END = 10
  32. ; PARK_START = 11
  33. ; PARK_END = 12
  34. ; BLINDTRANSFER = 13
  35. ; ATTENDEDTRANSFER = 14
  36. ; TRANSFER = 15
  37. ; HOOKFLASH = 16
  38. ; 3WAY_START = 17
  39. ; 3WAY_END = 18
  40. ; CONF_ENTER = 19
  41. ; CONF_EXIT = 20
  42. ; USER_DEFINED = 21
  43. ; LINKEDID_END = 22
  44. ; BRIDGE_UPDATE = 23
  45. ; PICKUP = 24
  46. ; FORWARD = 25
  47. ; eventtime (timeval, includes microseconds)
  48. ; userdeftype (set only if eventtype == USER_DEFINED)
  49. ; cid_name
  50. ; cid_num
  51. ; cid_ani
  52. ; cid_rdnis
  53. ; cid_dnid
  54. ; exten
  55. ; context
  56. ; channame
  57. ; appname
  58. ; appdata
  59. ; accountcode
  60. ; peeraccount
  61. ; uniqueid
  62. ; linkedid
  63. ; amaflags (an int)
  64. ; userfield
  65. ; peer
  66. ; extra
  67. ; The point of this module is to allow you log whatever you like in terms of the
  68. ; CEL variables. Do you want to log uniqueid? Then simply ensure that your
  69. ; table has that column. If you don't want the column, ensure that it does not
  70. ; exist in the table structure. If you'd like to call uniqueid something else
  71. ; in your table, simply provide an alias in this file that maps the standard CEL
  72. ; field name (uniqueid) to whatever column name you like.
  73. ;[first]
  74. ;connection=mysql1
  75. ;table=cel
  76. ;[second]
  77. ;connection=mysql1
  78. ;table=extracel
  79. ;[third]
  80. ;connection=sqlserver
  81. ;table=AsteriskCEL
  82. ;usegmtime=yes ; defaults to no
  83. ;alias src => source
  84. ;alias channel => source_channel
  85. ;alias dst => dest
  86. ;alias dstchannel => dest_channel
  87. ; Any filter specified MUST match exactly or the CE will be discarded
  88. ;filter accountcode => somename
  89. ;filter src => 123
  90. ; Additionally, we now support setting static values per column. Reason
  91. ; for this is to allow different sections to specify different values for
  92. ; a certain named column, presumably separated by filters.
  93. ;static "Some Special Value" => identifier_code