[asterisk-commits] mnicholson: branch 1.4 r289177 - /branches/1.4/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 29 10:03:34 CDT 2010


Author: mnicholson
Date: Wed Sep 29 10:03:27 2010
New Revision: 289177

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=289177
Log:
Set the caller id on CDRs when it is set on the parent channel.

(closes issue #17569)
Reported by: tbelder
Patches:
      17569.diff uploaded by tbelder (license 618)
Tested by: tbelder

Modified:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/channel.c?view=diff&rev=289177&r1=289176&r2=289177
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Wed Sep 29 10:03:27 2010
@@ -4356,6 +4356,9 @@
 			free(chan->cid.cid_ani);
 		chan->cid.cid_ani = ast_strdup(ani);
 	}
+	if (chan->cdr) {
+		ast_cdr_setcid(chan->cdr, chan);
+	}
 
 	report_new_callerid(chan);
 




More information about the asterisk-commits mailing list