From cfbf08ac626122dfdcd842d3d779466e7c6bbf76 Mon Sep 17 00:00:00 2001 From: mnicholson Date: Wed, 29 Sep 2010 15:04:11 +0000 Subject: Merged revisions 289177 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r289177 | mnicholson | 2010-09-29 10:03:27 -0500 (Wed, 29 Sep 2010) | 8 lines 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 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@289178 f38db490-d61c-443f-a65b-d21fe96a405b --- main/channel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/channel.c b/main/channel.c index de3f6d8d7..51dd1d23e 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4935,6 +4935,9 @@ void ast_set_callerid(struct ast_channel *chan, const char *cid_num, const char ast_free(chan->cid.cid_ani); chan->cid.cid_ani = ast_strdup(cid_ani); } + if (chan->cdr) { + ast_cdr_setcid(chan->cdr, chan); + } report_new_callerid(chan); -- cgit v1.2.3