README.cdr 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Asterisk billing support - Call Detail Records
  2. ----------------------------------------------
  3. Asterisk generates Call Detail Records in a database or in a comma
  4. separated text file.
  5. * cdr_csv supports comma separated text file storage, this is the
  6. default driver
  7. * cdr_odbc supports UnixODBC databases, see http://www.unixodbc.org
  8. for an updated list of supported databases, from MySQL to MsSQL
  9. and text files.
  10. Applications
  11. ------------
  12. * Asterisk cmd setaccount: Set account code for billing
  13. * Asterisk cmd NoCDR: Make sure no CDR is saved for a specific call
  14. * Asterisk cmd resetCDR: Reset CDR
  15. * Asterisk cmd authenticate - Authenticates and sets the account code
  16. * Asterisk cmd SetCDRUserField - Set CDR user field
  17. * Asterisk cmd AppendCDRUserField - Append data to CDR User field
  18. For more information, use the "show application" command.
  19. Fields of the CDR in Asterisk
  20. -----------------------------
  21. 1. accountcode: What account number to use, (string, 20 characters)
  22. 2. src: Caller*ID number (string, 80 characters)
  23. 3. dst: Destination extension (string, 80 characters)
  24. 4. dcontext: Destination context (string, 80 characters)
  25. 5. clid: Caller*ID with text (80 characters)
  26. 6. channel: Channel used (80 characters)
  27. 7. dstchannel: Destination channel if appropriate (80 characters)
  28. 8. lastapp: Last application if appropriate (80 characters)
  29. 9. lastdata: Last application data (arguments) (80 characters)
  30. 10. start: Start of call (date/time)
  31. 11. answer: Answer of call (date/time)
  32. 12. end: End of call (date/time)
  33. 13. duration: Total time in system, in seconds (integer), from dial to hangup
  34. 14. billsec: Total time call is up, in seconds (integer), from answer to hangup
  35. 15. disposition: What happened to the call: ANSWERED, NO ANSWER, BUSY
  36. 16. amaflags: What flags to use: DOCUMENTATION, BILL, IGNORE etc,
  37. specified on a per channel basis like accountcode.
  38. 17. user field: A user-defined field, maximum 255 characters
  39. In some cases, uniqueid is appended:
  40. * uniqueid: Unique Channel Identifier (32 characters)
  41. This needs to be enabled in the source code at compile time
  42. ONE IMPORTANT NOTE: If you are trying to collect records on IAX to IAX calls
  43. you need to be aware that by default, IAX will attempt to transfer calls
  44. in this situation (if DTMF is not required). When the transfer is completed
  45. the call is dumped from the middle machine and thus the call detail records
  46. will report a short call time. If you want detailed records you must
  47. turn off IAX transfer, but unless your servers are very close together, you
  48. will definitely get a latency hit from doing so.
  49. ----------------
  50. 2004-01-17/v0.7.1