Merged revisions 253799 via svnmerge from
[asterisk/asterisk.git] / main / features.c
index 44daf37..012dcd3 100644 (file)
@@ -3033,9 +3033,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) */