dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
mnicholson 2010-02-18 19:39:37 +00:00
parent 4d3e461b02
commit 3b63c3d982
1 changed files with 3 additions and 0 deletions

View File

@ -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) */