summaryrefslogtreecommitdiff
path: root/funcs
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-05-05 13:48:34 +0000
committerJoshua Colp <jcolp@digium.com>2017-05-05 08:59:02 -0500
commit4146facfec4366b406197746dab0fb69799690bd (patch)
tree5b94618425d80bb98f9affe3961ea9fd3ddc3233 /funcs
parenta20db27c561c5f481a4e84b174366fb98502b166 (diff)
func_cdr: Allow empty value for CDR dialplan function.
A regression was introduced in 12 where passing an empty value to the CDR dialplan function was not longer allowed. This change returns to the behavior of 11 where it is permitted. ASTERISK-26173 Change-Id: I3f148203b54ec088007e29e30005a5de122e51c5
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 82ff488b0..219e00429 100644
--- a/funcs/func_cdr.c
+++ b/funcs/func_cdr.c
@@ -377,7 +377,7 @@ static void cdr_write_callback(void *data, struct stasis_subscription *sub, stru
payload->cmd, payload->cmd);
return;
}
- if (ast_strlen_zero(payload->value)) {
+ if (!payload->value) {
ast_log(AST_LOG_WARNING, "%s requires a value (%s(variable)=value)\n)",
payload->cmd, payload->cmd);
return;