[Asterisk-code-review] func cdr: honour 'u' flag on dummy channel (asterisk[13])
Jenkins2
asteriskteam at digium.com
Thu Sep 7 10:40:41 CDT 2017
Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/6460 )
Change subject: func_cdr: honour 'u' flag on dummy channel
......................................................................
func_cdr: honour 'u' flag on dummy channel
Fixes ${CDR(...,u)} when used in cdr_custom.conf
ASTERISK-27165 #close
Change-Id: Ia4e0b6ba93e03d27886354c279737790e2cd6a83
---
M funcs/func_cdr.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved
Jenkins2: Approved for Submit
diff --git a/funcs/func_cdr.c b/funcs/func_cdr.c
index 76d468b..f704857 100644
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -282,7 +282,7 @@
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;
}
--
To view, visit https://gerrit.asterisk.org/6460
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia4e0b6ba93e03d27886354c279737790e2cd6a83
Gerrit-Change-Number: 6460
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jacek Konieczny <jkonieczny at eggsoft.pl>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170907/472d4d31/attachment.html>
More information about the asterisk-code-review
mailing list