aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-15 23:53:11 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-05-15 23:53:11 +0000
commit6fa490c732613ed6a3465ea6ca2453fdcfdbd3d2 (patch)
treee1a61dbf2f4b127c3fc1e0dae670c806d71e6672 /apps
parent8dfde59f959b35f75c99654ada9321f373f84466 (diff)
add EVAL function, deprecate Eval application (bug #4277)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5689 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_eval.c6
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);