]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr: Allow bridging and dial state changes to be ignored.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 1 Jun 2022 16:06:14 +0000 (16:06 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 10 Oct 2022 17:07:03 +0000 (12:07 -0500)
commit2b930d7c3b093ac5eda2c2c39afde300519c140a
tree45367e6e01ec4481d49bf4c7d9598c2347f80945
parentf0586da7ccab1d57b0a95ea82b4c9dd8eefef997
cdr: Allow bridging and dial state changes to be ignored.

Allows bridging, parking, and dial messages to be globally
ignored for all CDRs such that only a single CDR record
is generated per channel.

This is useful when CDRs should endure for the lifetime of
an entire channel and bridging and dial updates in the
dialplan should not result in multiple CDR records being
created for the call. With the ignore bridging option,
bridging changes have no impact on the channel's CDRs.
With the ignore dial state option, multiple Dials and their
outcomes have no impact on the channel's CDRs. The
last disposition on the channel is preserved in the CDR,
so the actual disposition of the call remains available.

These two options can reduce the amount of "CDR hacks" that
have hitherto been necessary to ensure that CDR was not
"spoiled" by these messages if that was undesired, such as
putting a dummy optimization-disabled local channel between
the caller and the actual call and putting the CDR on the channel
in the middle to ensure that CDR would persist for the entire
call and properly record start, answer, and end times.
Enabling these options is desirable when calls correspond
to the entire lifetime of channels and the CDR should
reflect that.

Current default behavior remains unchanged.

ASTERISK-30091 #close

Change-Id: I393981af42732ec5ac3ff9266444abb453b7c832
configs/samples/cdr.conf.sample
doc/CHANGES-staging/cdr_ignore.txt [new file with mode: 0644]
include/asterisk/cdr.h
main/cdr.c