]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Update the CDR record when ast_channel_set_caller_event() is called
authorMatthew Nicholson <mnicholson@digium.com>
Wed, 29 Sep 2010 17:08:20 +0000 (17:08 +0000)
committerMatthew Nicholson <mnicholson@digium.com>
Wed, 29 Sep 2010 17:08:20 +0000 (17:08 +0000)
(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

main/channel.c

index 43ba5b2b1ec537a8326628741ba8200ea332df4a..3718386dfe8f498c7cd9c0991ad80a2a2e6aafef 100644 (file)
@@ -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);
 }