add MATH() dialplan function (bug #4473, with mods)

deprecate the Math() application


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-06-09 22:59:08 +00:00
parent f3efc756ad
commit 79392ea53b
4 changed files with 287 additions and 34 deletions

View File

@@ -80,6 +80,12 @@ static int math_exec(struct ast_channel *chan, void *data)
float ftmp = 0;
char *op;
int iaction=-1;
static int deprecation_warning = 0;
if (!deprecation_warning) {
ast_log(LOG_WARNING, "Math() is deprecated, please use Set(var=${MATH(...)} instead.\n");
deprecation_warning = 1;
}
/* dunno, big calulations :D */
char user_result[30];