cel_custom.conf.sample 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ;
  2. ; Asterisk Channel Event Logging (CEL) - Custom CSV Backend
  3. ;
  4. ; This is the configuration file for the customizable CSV backend for CEL
  5. ; logging.
  6. ;
  7. ; In order to create custom CSV logs for CEL, uncomment the template below
  8. ; (Master.csv) and start Asterisk. Once CEL events are generated, a file will
  9. ; appear in the following location:
  10. ;
  11. ; /var/log/asterisk/cel-custom/Master.csv
  12. ;
  13. ; (Note that /var/log/asterisk is the default and may differ on your system)
  14. ;
  15. ; You can also create more than one template if desired. All logs will appear
  16. ; in the cel-custom directory under your Asterisk logs directory.
  17. ;
  18. ;
  19. ; Within a mapping, use the CALLERID() and CHANNEL() functions to retrieve
  20. ; details from the CEL event. There are also a few variables created by this
  21. ; module that can be used in a mapping:
  22. ;
  23. ; eventtype - The name of the CEL event.
  24. ; eventtime - The timestamp of the CEL event.
  25. ; eventenum - Like eventtype but is "USER_DEFINED" for a user defined event.
  26. ; userdeftype - User defined event type name from CELGenUserEvent().
  27. ; eventextra - Extra data included with this CEL event, typically along with
  28. ; an event of type USER_DEFINED from CELGenUserEvent().
  29. ; BRIDGEPEER - Bridged peer channel name at the time of the CEL event.
  30. ; CHANNEL(peer) could also be used.
  31. ;
  32. [mappings]
  33. ;Master.csv => ${CSV_QUOTE(${eventtype})},${CSV_QUOTE(${eventtime})},${CSV_QUOTE(${CALLERID(name)})},${CSV_QUOTE(${CALLERID(num)})},${CSV_QUOTE(${CALLERID(ANI)})},${CSV_QUOTE(${CALLERID(RDNIS)})},${CSV_QUOTE(${CALLERID(DNID)})},${CSV_QUOTE(${CHANNEL(exten)})},${CSV_QUOTE(${CHANNEL(context)})},${CSV_QUOTE(${CHANNEL(channame)})},${CSV_QUOTE(${CHANNEL(appname)})},${CSV_QUOTE(${CHANNEL(appdata)})},${CSV_QUOTE(${CHANNEL(amaflags)})},${CSV_QUOTE(${CHANNEL(accountcode)})},${CSV_QUOTE(${CHANNEL(uniqueid)})},${CSV_QUOTE(${CHANNEL(linkedid)})},${CSV_QUOTE(${BRIDGEPEER})},${CSV_QUOTE(${CHANNEL(userfield)})},${CSV_QUOTE(${userdeftype})},${CSV_QUOTE(${eventextra})}