diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-09 22:59:08 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-09 22:59:08 +0000 |
commit | f417b6d804ba4f3c624b5c6fb4207119ddbe1e7d (patch) | |
tree | 457c3c1663161335624c0d268da1222b5544e01b /apps/app_math.c | |
parent | 96194ca05c720f2e5a5b8d553ee1ed160b1ced76 (diff) |
add MATH() dialplan function (bug #4473, with mods)
deprecate the Math() application
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5895 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_math.c')
-rwxr-xr-x | apps/app_math.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/app_math.c b/apps/app_math.c index fad0ad7e6..f9e26e699 100755 --- a/apps/app_math.c +++ b/apps/app_math.c @@ -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]; |