mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 01:51:14 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user