aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_math.c')
-rwxr-xr-xapps/app_math.c6
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];