summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
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);
}