diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-15 23:53:11 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-05-15 23:53:11 +0000 |
commit | 2638192439d2dcd65576b685d82f8a90747247ac (patch) | |
tree | e1a61dbf2f4b127c3fc1e0dae670c806d71e6672 /apps | |
parent | 9cea81b035e0446659b2b5d4d746210db9ebc9b8 (diff) |
add EVAL function, deprecate Eval application (bug #4277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_eval.c b/apps/app_eval.c index 9d9620774..73b99c085 100755 --- a/apps/app_eval.c +++ b/apps/app_eval.c @@ -49,6 +49,12 @@ static int eval_exec(struct ast_channel *chan, void *data) int res=0; struct localuser *u; char *s, *newvar=NULL, tmp[MAXRESULT]; + static int dep_warning = 0; + + if (!dep_warning) { + ast_log(LOG_WARNING, "This application has been deprecated in favor of the dialplan function, EVAL\n"); + dep_warning = 1; + } LOCAL_USER_ADD(u); |