diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-11 23:02:57 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-11 23:02:57 +0000 |
commit | 48176894529ec0aabe5c98866c935c394d809cd0 (patch) | |
tree | ae5153023a06d6512d95893937fff84d97834766 | |
parent | e5b1fc3be246be1b285ea9c3f0933a76717684d7 (diff) |
Bug 7086 - pbx_checkcondition substitution, so that arbitrary strings are true (for regex)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@27051 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | funcs/func_logic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_logic.c b/funcs/func_logic.c index f748ba939..c8ff599b3 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; } |