[asterisk-commits] mnicholson: branch 1.4 r247651 - /branches/1.4/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 18 13:38:15 CST 2010


Author: mnicholson
Date: Thu Feb 18 13:38:09 2010
New Revision: 247651

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=247651
Log:
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

Modified:
    branches/1.4/res/res_features.c

Modified: branches/1.4/res/res_features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_features.c?view=diff&rev=247651&r1=247650&r2=247651
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Thu Feb 18 13:38:09 2010
@@ -1786,6 +1786,9 @@
 			ast_copy_string(bridge_cdr->lastdata, S_OR(chan->data, ""), sizeof(bridge_cdr->lastdata));
 			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) */




More information about the asterisk-commits mailing list