cdr_custom: Allow absolute filenames.

A follow up to #893 that brings the same functionality to
cdr_custom. Also update the sample configuration files to note support
for absolute paths.

(cherry picked from commit 084c04f711)
This commit is contained in:
Sean Bright
2024-09-26 12:26:04 -04:00
committed by Asterisk Development Team
parent 10963cd27e
commit c1df33a717
4 changed files with 17 additions and 5 deletions

View File

@@ -6,6 +6,11 @@
; in /var/log/asterisk). Depending on which mapping you uncomment, you may see
; Master.csv, Simple.csv, or both.
;
; Alternatively, you can also specify the location of your CSV file using an
; absolute path, e.g.:
;
; /srv/pbx/cdr/Master.csv => ${CSV_QUOTE(${CDR(clid)})},...
;
;[mappings]
;Master.csv => ${CSV_QUOTE(${CDR(clid)})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})},${CSV_QUOTE(${CDR(dcontext)})},${CSV_QUOTE(${CDR(channel)})},${CSV_QUOTE(${CDR(dstchannel)})},${CSV_QUOTE(${CDR(lastapp)})},${CSV_QUOTE(${CDR(lastdata)})},${CSV_QUOTE(${CDR(start)})},${CSV_QUOTE(${CDR(answer)})},${CSV_QUOTE(${CDR(end)})},${CSV_QUOTE(${CDR(duration)})},${CSV_QUOTE(${CDR(billsec)})},${CSV_QUOTE(${CDR(disposition)})},${CSV_QUOTE(${CDR(amaflags)})},${CSV_QUOTE(${CDR(accountcode)})},${CSV_QUOTE(${CDR(uniqueid)})},${CSV_QUOTE(${CDR(userfield)})},${CDR(sequence)}
;

View File

@@ -16,6 +16,11 @@
; You can also create more than one template if desired. All logs will appear
; in the cel-custom directory under your Asterisk logs directory.
;
; Alternatively, you can also specify the location of your CSV file using an
; absolute path, e.g.:
;
; /srv/pbx/cel/Master.csv => ${CSV_QUOTE(${eventtype})},...
;
;
; Within a mapping, use the CALLERID() and CHANNEL() functions to retrieve