diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-18 19:39:37 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-02-18 19:39:37 +0000 |
commit | 3b63c3d9825a7641e34c50ed8acb5a53cfcd4eb9 (patch) | |
tree | 0a11319dc6e7c20d595734830566b358849b9f41 /main/features.c | |
parent | 4d3e461b021161619b8eaee251d4bb9d52b05959 (diff) |
Merged revisions 247651 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r247651 | mnicholson | 2010-02-18 13:38:09 -0600 (Thu, 18 Feb 2010) | 6 lines
Copy the calling party's account code to the called party if they don't already have one.
(closes issue #16331)
Reported by: bluefox
Tested by: mnicholson
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@247652 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/features.c')
-rw-r--r-- | main/features.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/features.c b/main/features.c index 9c0768fc3..1c5218433 100644 --- a/main/features.c +++ b/main/features.c @@ -2858,6 +2858,9 @@ 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); + } } else { /* better yet, in a xfer situation, find out why the chan cdr got zapped (pun unintentional) */ |