diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-22 19:50:00 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-22 19:50:00 +0000 |
commit | 91c460073977bd9571abd6530575af0272c39a9a (patch) | |
tree | b9fec767f7ebd79df581c59afda510d9253cae66 /res | |
parent | cec1d3870c7608cd2bf3f9745712011d71a115de (diff) |
Unconditionally copy the caller's account code to the called party.
(related to issue #16331)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@253799 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/res_features.c b/res/res_features.c index 7bfd5b246..7d53d185d 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -1788,9 +1788,7 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast 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); - } + 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? */ |