summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 551e66d6a..2223172a6 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -6304,6 +6304,9 @@ void ast_set_callerid(struct ast_channel *chan, const char *cid_num, const char
ast_free(chan->caller.ani.number.str);
chan->caller.ani.number.str = ast_strdup(cid_ani);
}
+ if (chan->cdr) {
+ ast_cdr_setcid(chan->cdr, chan);
+ }
report_new_callerid(chan);