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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 22 14:50:05 CDT 2010


Author: mnicholson
Date: Mon Mar 22 14:50:00 2010
New Revision: 253799

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253799
Log:
Unconditionally copy the caller's account code to the called party.

(related to issue #16331)

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=253799&r1=253798&r2=253799
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Mon Mar 22 14:50:00 2010
@@ -1788,9 +1788,7 @@
 			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? */




More information about the asterisk-commits mailing list