cdr.conf
The cdr.conf file is used to enable call
detail record logging to a database. Storing call records is useful for
all sorts of purposes, including billing, fraud prevention, QoS
evaluations, and more. cdr.conf contains some
general parameters that are not specific to any particular database, but
rather indicate how Asterisk should handle the passing of information to
the database. All options are under the [general] heading of the
cdr.conf file:
batchAccepts the arguments
yesandno. Allows Asterisk to write data to a buffer instead of writing to the database at the end of every call, to reduce load on the system.Warning
Note that if the system dies unexpectedly when this option is set to
yes, data loss may occur.enableAccepts the arguments
yesandno. Specifies whether or not to use CDR logging. If set tono, this will override any CDR module explicitly loaded. The default isyes.safeshutdownAccepts the arguments
yesandno. Settingsafeshutdowntoyeswill prevent Asterisk from shutting down completely until the buffer is flushed and all information is written to the database. If this parameter is set tonoand you shut down Asterisk with information still residing in the buffers, that information will likely be lost.scheduleronlyAccepts the arguments
yesandno. If you are generating a massive volume of CDRs on a system that is pushing them to a remote database, settingscheduleronlytoyesmay be of benefit. Since the scheduler cannot start a new task until the current ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access