summaryrefslogtreecommitdiff
path: root/cdr/cdr_manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'cdr/cdr_manager.c')
-rw-r--r--cdr/cdr_manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdr/cdr_manager.c b/cdr/cdr_manager.c
index 1d9eb6a6a..0d9f46dc4 100644
--- a/cdr/cdr_manager.c
+++ b/cdr/cdr_manager.c
@@ -165,7 +165,7 @@ static int manager_log(struct ast_cdr *cdr)
ast_log(LOG_ERROR, "Unable to allocate channel for variable substitution.\n");
return 0;
}
- dummy->cdr = ast_cdr_dup(cdr);
+ ast_channel_cdr_set(dummy, ast_cdr_dup(cdr));
pbx_substitute_variables_helper(dummy, ast_str_buffer(customfields), buf, sizeof(buf) - 1);
ast_channel_unref(dummy);
}