(closes issue #16331)
Reported by: bluefox
Tested by: mnicholson
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@247651
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (peer_cdr && !ast_strlen_zero(peer_cdr->userfield)) {
ast_copy_string(bridge_cdr->userfield, peer_cdr->userfield, sizeof(bridge_cdr->userfield));
}
+ if (peer_cdr && ast_strlen_zero(peer->accountcode)) {
+ ast_cdr_setaccount(peer, chan->accountcode);
+ }
} else {
/* better yet, in a xfer situation, find out why the chan cdr got zapped (pun unintentional) */
bridge_cdr = ast_cdr_alloc(); /* this should be really, really rare/impossible? */