From dd260ec7079ff6215f421cc2cdf0cf393726f153 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Thu, 11 May 2006 23:02:57 +0000 Subject: [PATCH] Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@27051 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_logic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_logic.c b/funcs/func_logic.c index f748ba9390..c8ff599b3d 100644 --- a/funcs/func_logic.c +++ b/funcs/func_logic.c @@ -115,7 +115,7 @@ static char *builtin_function_if(struct ast_channel *chan, char *cmd, char *data if (iffalse) iffalse = ast_strip_quoted(iffalse, "\"", "\""); - if ((ret = ast_true(expr) ? iftrue : iffalse)) { + if ((ret = pbx_checkcondition(expr) ? iftrue : iffalse)) { ast_copy_string(buf, ret, len); ret = buf; }