]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr.c: Set event time on party b when leaving a parking bridge
authorGeorge Joseph <gjoseph@digium.com>
Wed, 22 Jan 2020 18:56:38 +0000 (11:56 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 22 Jan 2020 19:13:44 +0000 (12:13 -0700)
commitf34a4d5a775e2dd3feba11102c9b23fbff12eb72
treed4bba4fa179839a480be1c7bb3600b9c6f7158ab
parentf7e0b6baf8a49d123da143fca89d6899230c7047
cdr.c: Set event time on party b when leaving a parking bridge

When Alice calls Bob and Bob does a blind transfer to Charlie,
Bob's bridge leave event generates a finalize on both the party_a
and party_b CDRs but while the party_a CDR has the correct end time
set from the event time, party_b's leg did not. This caused that
CDR's end time to be equal to the answered time and resulted in a
billsec of 0.

* We now pass the bridge leave message event time to
cdr_object_party_b_left_bridge_cb() and set it on that CDR before
calling cdr_object_finalize() on it.

NOTE:  This issue affected transfers using chan_sip most of the
time but also occasionally affected chan_pjsip probably due to
message timing.

ASTERISK-28677
Reported by: Maciej Michno

Change-Id: I790720f1e7326f9b8ce8293028743b0ef0fb2cca
main/cdr.c