]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/cdr: Carry over the disable flag when 'disable all' is specified 57/657/2
authormjordan <mjordan@digium.com>
Mon, 15 Jun 2015 00:48:26 +0000 (19:48 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 15 Jun 2015 15:34:44 +0000 (10:34 -0500)
commitde8c7f46ed0c1212054b6b6cfd33663549ebd94c
tree83f25e7c16d092cae8dee457198c6fa316c1a3e0
parent78ea356e78a4dc7c88b2212d1c4bf700bc5c5701
main/cdr: Carry over the disable flag when 'disable all' is specified

The CDR_PROP function (as well as the NoCDR application) set the
'disable all' flag (AST_CDR_FLAG_DISABLE_ALL) on the current CDR. This
flag is supposed to be applied to all CDRs that are currently in the
chain, as well as all CDRs that may be created in the future. Currently,
however, the flag is only applied to the existing CDRs in the chain; new
CDRs do not receive the 'disable all' flag. In particular, this affects
parallel dials, which generate new CDRs for each pair of channels in
the dial attempt.

This patch carries over the 'disable all' flag when it is specified on a
CDR and a new CDR is generated for the chain.

ASTERISK-24344 #close

Change-Id: I91a0f0031e4d147bdf8a68ecd08304d506fb6a0e
main/cdr.c