[Asterisk-cvs] asterisk/apps app_math.c,1.9,1.10

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 9 18:57:02 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv32431/apps

Modified Files:
	app_math.c 
Log Message:
add MATH() dialplan function (bug #4473, with mods)
deprecate the Math() application


Index: app_math.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_math.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- app_math.c	6 Jun 2005 22:39:31 -0000	1.9
+++ app_math.c	9 Jun 2005 22:59:08 -0000	1.10
@@ -80,6 +80,12 @@
 	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];




More information about the svn-commits mailing list