]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Unconditionally copy the caller's account code to the called party.
authorMatthew Nicholson <mnicholson@digium.com>
Mon, 22 Mar 2010 19:50:00 +0000 (19:50 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Mon, 22 Mar 2010 19:50:00 +0000 (19:50 +0000)
(related to issue #16331)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@253799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 7bfd5b24681349054f629b98d333023d4e557689..7d53d185dce4dc06619d1dab2202e0fb74f4a6f5 100644 (file)
@@ -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? */