diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-05 14:44:50 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-05 14:44:50 +0000 |
commit | 5886ecceb818649fb5f8c605a2c66999b5af25de (patch) | |
tree | ae606955f3cf4c0e63c8796ecddb58151a09b8a6 /apps/app_while.c | |
parent | a9d8c976bb57a3075225870216dcc5c4f4a1bcd4 (diff) |
use pbx_checkcondition() instead of ast_true() to evaluate the condition
for MacroIf and WhileIf (issue #7086)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@24837 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_while.c')
-rw-r--r-- | apps/app_while.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_while.c b/apps/app_while.c index 7c98afe80..a0e5ca063 100644 --- a/apps/app_while.c +++ b/apps/app_while.c @@ -103,7 +103,7 @@ static int execif_exec(struct ast_channel *chan, void *data) { } else mydata = ""; - if (ast_true(expr)) { + if (pbx_checkcondition(expr)) { if ((app = pbx_findapp(myapp))) { res = pbx_exec(chan, app, mydata, 1); } else { @@ -269,7 +269,7 @@ static int _while_exec(struct ast_channel *chan, void *data, int end) } - if (!end && !ast_true(condition)) { + if (!end && !pbx_check_condition(condition)) { /* Condition Met (clean up helper vars) */ pbx_builtin_setvar_helper(chan, varname, NULL); pbx_builtin_setvar_helper(chan, my_name, NULL); |