mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
func_cdr: honour 'u' flag on dummy channel
Fixes ${CDR(...,u)} when used in cdr_custom.conf
ASTERISK-27165 #close
Change-Id: Ia4e0b6ba93e03d27886354c279737790e2cd6a83
This commit is contained in:
committed by
Joshua Colp
parent
9a366d2424
commit
2aefc6e5fe
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user