From c261cf3a727aa4d68dc55d493b3b1ad424b830c6 Mon Sep 17 00:00:00 2001 From: mnicholson Date: Wed, 29 Sep 2010 17:08:20 +0000 Subject: Update the CDR record when ast_channel_set_caller_event() is called (related to issue #17569) Reported by: tbelder git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@289268 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 43ba5b2b1..3718386df 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); } -- cgit v1.2.3