]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/cdr: Copy over location information during a fork
authorMatthew Jordan <mjordan@digium.com>
Sat, 6 Sep 2014 22:48:24 +0000 (22:48 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 6 Sep 2014 22:48:24 +0000 (22:48 +0000)
commit218648e709d5c95847e7ce22fbb3c184b7f9837a
treec22edbb885bc3f962ea62fa631a5faa09357be4d
parent6a701d2d8ff40fe1fb66fda2951eb4f8f100341d
main/cdr: Copy over location information during a fork

When a CDR is forked, a new CDR is created and appended to the CDR chain for
the Party A. The forked CDR starts life off as a clone of the last
non-finalized for the particular Party A. In the past, merely copying over
the snapshots for Party A/Party B would be sufficient. However, as the CDRs
now contain cached information from Party A - specifically application/data,
context, and extension - we need to copy that over during a fork as well.

Huzzah for unit tests catching this when the context/extension were derived
from a cached value on the CDR instead of on Party A.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422769 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/cdr.c