diff options
Diffstat (limited to 'cdr/cdr_custom.c')
-rw-r--r-- | cdr/cdr_custom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_custom.c b/cdr/cdr_custom.c index ee423d3e6..b56b7bed1 100644 --- a/cdr/cdr_custom.c +++ b/cdr/cdr_custom.c @@ -137,7 +137,7 @@ static int custom_log(struct ast_cdr *cdr) /* We need to dup here since the cdr actually belongs to the other channel, so when we release this channel we don't want the CDR getting cleaned up prematurely. */ - dummy->cdr = ast_cdr_dup(cdr); + ast_channel_cdr_set(dummy, ast_cdr_dup(cdr)); AST_RWLIST_RDLOCK(&sinks); |