From: Matthew Nicholson Date: Wed, 29 Sep 2010 17:08:20 +0000 (+0000) Subject: Update the CDR record when ast_channel_set_caller_event() is called X-Git-Tag: 1.8.0-rc3~4^2~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd8c58834e4a4fedfb457488de0b6d0d5ddb4f81;p=thirdparty%2Fasterisk.git Update the CDR record when ast_channel_set_caller_event() is called (related to issue #17569) Reported by: tbelder git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289268 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/channel.c b/main/channel.c index 43ba5b2b1e..3718386dfe 100644 --- a/main/channel.c +++ b/main/channel.c @@ -6346,6 +6346,9 @@ void ast_channel_set_caller_event(struct ast_channel *chan, const struct ast_par /* The caller id name or number changed. */ report_new_callerid(chan); } + if (chan->cdr) { + ast_cdr_setcid(chan->cdr, chan); + } ast_channel_unlock(chan); }