diff options
author | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-29 17:08:20 +0000 |
---|---|---|
committer | mnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-09-29 17:08:20 +0000 |
commit | c261cf3a727aa4d68dc55d493b3b1ad424b830c6 (patch) | |
tree | 131ad76c8f2fafd78105631f3c479231bfef9111 /main | |
parent | b7c80343552ce148484a37fa42dfced34cded9e4 (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
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); } |