From: Matthew Nicholson Date: Wed, 29 Sep 2010 15:03:27 +0000 (+0000) Subject: Set the caller id on CDRs when it is set on the parent channel. X-Git-Tag: 1.4.38-rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dab4b230329a5ae5f6b7e300664fbe7b82b7bf6;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@289177 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index 0e29191046..5eeeeac548 100644 --- a/main/channel.c +++ b/main/channel.c @@ -4356,6 +4356,9 @@ void ast_set_callerid(struct ast_channel *chan, const char *callerid, const char 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);