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 83e6054dd..49e99796a 100644
--- a/cdr/cdr_manager.c
+++ b/cdr/cdr_manager.c
@@ -156,7 +156,7 @@ static int manager_log(struct ast_cdr *cdr)
buf[0] = '\0';
ast_rwlock_rdlock(&customfields_lock);
if (customfields && ast_str_strlen(customfields)) {
- struct ast_channel *dummy = ast_channel_alloc(0, 0, "", "", "", "", "", 0, "Substitution/%p", cdr);
+ struct ast_channel *dummy = ast_dummy_channel_alloc();
if (!dummy) {
ast_log(LOG_ERROR, "Unable to allocate channel for variable substitution.\n");
return 0;