]> 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:49:43 +0000 (22:49 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 6 Sep 2014 22:49:43 +0000 (22:49 +0000)
commit128d187f385536d5b79d38d467f88d3e69dbafd3
treefb7af21e1ff12a9dcf891830be988f8ddc01aa2d
parent8302bc7f0a72667a6d9fdc7d66828508977f1053
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.
........

Merged revisions 422769 from http://svn.asterisk.org/svn/asterisk/branches/12

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