aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-29 15:03:27 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-09-29 15:03:27 +0000
commit32c4a0bbf96e2c091add8e078339a5ac280c37ee (patch)
tree7d5d59102770b542310cab57b737a3c006748c0f /main
parentc1dd08d50112fe12169fcfdd30893ab124f41dcd (diff)
Set the caller id on CDRs when it is set on the parent channel.
(closes issue #17569) Reported by: tbelder Patches: 17569.diff uploaded by tbelder (license 618) Tested by: tbelder git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@289177 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/channel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 0e2919104..5eeeeac54 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -4356,6 +4356,9 @@ void ast_set_callerid(struct ast_channel *chan, const char *callerid, const char
free(chan->cid.cid_ani);
chan->cid.cid_ani = ast_strdup(ani);
}
+ if (chan->cdr) {
+ ast_cdr_setcid(chan->cdr, chan);
+ }
report_new_callerid(chan);