Using CSV CDRs
It is a simple thing to store CDRs in CSV format. This recipe describes the steps necessary to store call records in plain-text CSV files.
Getting ready
In the default configuration, mod_cdr_csv
is compiled and enabled by default. CDR data is stored in the log/cdr-csv/
directory. To review the options available, open the conf/autoload_configs/cdr_csv.conf.xml
file. Here are the parameters available in the settings section:
<settings> <!-- 'cdr-csv' will always be appended to log-base --> <!--<param name="log-base" value="/var/log"/>--> <param name="default-template" value="example"/> <!-- This is like the info app but after the call is hung up --> <!--<param name="debug" value="true"/>--> <param name="rotate-on-hup" value="true"/> <!-- may be a b or ab --> <param name="legs" value="a"/> <!-- Only log in Master.csv --> <!-- <param name="master-file-only" value...