summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-09-07 11:03:35 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-09-07 11:03:35 -0500
commit2d8662002772fe1d8c8f97a62889a9f1391f0d88 (patch)
treee0ba9b070499bd2d1aed5ff5f61ed90ea5219b65
parent6829d11a252d2e04292ab6f15722994ef9a05b7a (diff)
parent6bd826a7c2633161c777ca02f8ffe0ce47c76149 (diff)
Merge "func_cdr: honour 'u' flag on dummy channel" into 14
-rw-r--r--funcs/func_cdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c
index a56b47aff..66d0861c5 100644
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -282,7 +282,7 @@ static void cdr_read_callback(void *data, struct stasis_subscription *sub, struc
if (ast_strlen_zero(ast_channel_name(payload->chan))) {
/* Format request on a dummy channel */
- ast_cdr_format_var(ast_channel_cdr(payload->chan), args.variable, &value, tempbuf, sizeof(tempbuf), 0);
+ ast_cdr_format_var(ast_channel_cdr(payload->chan), args.variable, &value, tempbuf, sizeof(tempbuf), ast_test_flag(&flags, OPT_UNPARSED));
if (ast_strlen_zero(value)) {
return;
}