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];

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to