summaryrefslogtreecommitdiff
path: root/doc/math.txt
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2007-03-15 22:29:45 +0000
committerRussell Bryant <russell@russellbryant.com>2007-03-15 22:29:45 +0000
commit1cf3a12047bb358a1645892454a43dbf611253a7 (patch)
tree7e44cd7d9a574a5cc64239ef2ef9132c63946efd /doc/math.txt
parent4787adb4e9add47c2dbfac819810577483a484cb (diff)
Merged revisions 58931 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r58931 | russell | 2007-03-15 17:25:12 -0500 (Thu, 15 Mar 2007) | 13 lines Merge changes from svn/asterisk/team/russell/LaTeX_docs. * Convert most of the doc directory into a single LaTeX formatted document so that we can generate a PDF, HTML, or other formats from this information. * Add a CLI command to dump the application documentation into LaTeX format which will only be include if the configure script is run with --enable-dev-mode. * The PDF turned out to be close to 1 MB, so it is not included. However, you can simply run "make asterisk.pdf" to generate it yourself. We may include it in release tarballs or have automatically generated ones on the web site, but that has yet to be decided. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58932 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'doc/math.txt')
-rw-r--r--doc/math.txt69
1 files changed, 0 insertions, 69 deletions
diff --git a/doc/math.txt b/doc/math.txt
deleted file mode 100644
index 7718f9e44..000000000
--- a/doc/math.txt
+++ /dev/null
@@ -1,69 +0,0 @@
-
-Mathematical dialplan function
-
-Yeah, I thought it was a little insane too..
-
-adds:
-
-Sum, Multiply, Divide, Subtract, Modulus, GT, LT, GTE, LTE, EQ functions to Asterisk
-
-All functions follow the same basic pattern for parameters:
-
-parameter 1 = the math expression
-parameter 2 = the type of result
-
-Perform calculation on number 1 to number 2. Valid ops are:
- +,-,/,*,%,<,>,>=,<=,==
-and behave as their C equivalents.
-
-<type_of_result> - wanted type of result:
- f, float - float(default)
- i, int - integer,
- h, hex - hex,
- c, char - char
-
-Each math expression is performed as
-
- Action param1 on param2
-
-eg:
-
- Action = Divide
- Param1 = 10
- Param2 = 2
-
-Results in
-
- Divide 10 by 2
-
-
-Example dialplan:
-
-exten => 11099,1,Set(RV=${MATH(1+20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(10*2)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(10*2)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(10-2)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(2%10)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(10/0)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(10-200)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(1-20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(1<20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(1>=20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(101>20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(1==20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(20<=20)})
-exten => 11099,n,NOOP(${RV})
-exten => 11099,n,Set(RV=${MATH(123%16,int)})
-exten => 11099,n,NOOP(${RV})