add EVAL function, deprecate Eval application (bug #4277)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-05-15 23:53:11 +00:00
parent 9cea81b035
commit 2638192439
2 changed files with 38 additions and 0 deletions

View File

@@ -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);