summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorJacek Konieczny <j.konieczny@eggsoft.pl>2017-09-05 14:31:50 +0200
committerJoshua Colp <jcolp@digium.com>2017-09-07 04:37:19 -0500
commit525f84bb357117f336fea1fd7bd0b12a0873969d (patch)
tree97c338e511432d149b0fb9f9e222f296b5da01de /funcs
parent2857a3334aa430b81baac31bdfe0efb3871f37d4 (diff)
func_cdr: honour 'u' flag on dummy channel
Fixes ${CDR(...,u)} when used in cdr_custom.conf ASTERISK-27165 #close Change-Id: Ia4e0b6ba93e03d27886354c279737790e2cd6a83
Diffstat (limited to 'funcs')
-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 219e00429..573431237 100644
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -280,7 +280,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;
}