Commit Graph

71 Commits (acb51ca5c28a9f67c3a338e7b88f1c6a5bfe1321)

Author SHA1 Message Date
Steve Murphy 9836efb5fb This commit closes bug 7605, and half-closes 7638. The AEL code has been redistributed/repartitioned to allow code re-use both inside and outside of Asterisk. This commit introduces the utils/conf2ael program, and an external config-file reader, for both normal config files, and for extensions.conf (context, exten, prio); It provides an API for programs outside of asterisk to use to play with the dialplan and config files.
18 years ago
Steve Murphy d9b52497f0 Merged revisions 79255 via svnmerge from
18 years ago
Steve Murphy ceca4d97e1 These fixes take care of two problems: a complaint in asterisk-dev that goto's aren't working in trunk, a side effect of the move to commas as arg seps in apps and funcs; and a problem I spotted myself with dial's 'e' option, where gotos were off by one, because I forgot to set the AUTOLOOP flag in the peer channel.
18 years ago
Steve Murphy f7213d2411 The upgrade of application argument separators to comma has an effect on AEL; I commented out the code that substitutes commas with vertbars, so we can get apps to parse their args correctly.
18 years ago
Steve Murphy 8b0b74c9b0 Spotted this bug today myself, trying to reproduce a BE bug. Use a vert bar instead of a comma, when calling RAND.
18 years ago
Steve Murphy 6a4efe5d5a In regards to changes for 9508, expr2 system choking on floating point numbers, I'm adding this update to round out (no pun intended) and make this FP-capable version of the Expr2 stuff interoperate better with previous integer-only usage, by providing Functions syntax, with 20 builtin functions for floating pt to integer conversions, and some general floating point math routines that might commonly be used also. Along with this, I made it so if a function was not a builtin, it will try and find it in the ast_custom_function list, and if found, execute it and collect the results. Thus, you can call system functions like CDR(), CHANNEL(), etc, from within $\[..\] exprs, without having to wrap them in $\{...\} (curly brace) notation. Did a valgrind on the standalone and made sure there's no mem leaks. Looks good. Updated the docs, too.
18 years ago
Steve Murphy c1bb0fc34b This finishes the changes for making Macro args LOCAL to the call, and allowing users to declare local variables.
18 years ago
Tilghman Lesher 704c756c4a Merge work to make U(...) option work for Dial
18 years ago
Steve Murphy 52efde5c65 Merged revisions 67526 via svnmerge from
18 years ago
Steve Murphy 00b33aaa49 Merged revisions 67420 via svnmerge from
18 years ago
Steve Murphy f120c26ec1 Merged revisions 59688 via svnmerge from
18 years ago
Steve Murphy e1476b8aab Merged revisions 59261 via svnmerge from
18 years ago
Steve Murphy 3433b64703 Merged revisions 59228 via svnmerge from
18 years ago
Steve Murphy e6d32d3132 The fix for the AEL <<security hole>> (bug 9316) is here...
18 years ago
Steve Murphy 91a9b97a73 Merged revisions 57426 via svnmerge from
18 years ago
Steve Murphy bca20ed71e Merged revisions 57049 via svnmerge from
18 years ago
Olle Johansson 75d387acbc Doxygen additions, corrections
19 years ago
Steve Murphy 85f65b1ff0 Merged revisions 51409 via svnmerge from
19 years ago
Steve Murphy b96a97e315 Merged revisions 49061 via svnmerge from
19 years ago
Joshua Colp 23ebec40a5 Clean up last commit to better conform to standards.
19 years ago
Steve Murphy 4115ea029d AEL need not complain about parkedcalls not being found... just confuses users
19 years ago
Kevin P. Fleming 749029de38 Merged revisions 46200 via svnmerge from
19 years ago
Steve Murphy 8567b0ee84 Correction for bug 8128 in trunk
19 years ago
Steve Murphy 6f34a8d78d These mods fix a problem pointed out by dgartang, where in certain situations, the target of a goto cannot be found, even right under your nose. This is because the current context is not updated properly, and rather than waste time and find why and where the context should have been updated, I just use my newly added 'dad' ptrs, and pop until I have either the context or extension, and use that instead.
19 years ago
Steve Murphy de7a85105a These changes resolve the problems in bug 8090, where there's a crash compiling an empty context
19 years ago
Steve Murphy 19dc73ad40 These changes correspond to the changes to app_stack's Gosub() application
19 years ago
Steve Murphy 35b951d2ac This commits the changes to AEL to use the gosub-with-args from Tilghman to perform macro calls. This results in substantially smaller stack footprint, which allows macro call depths in excess of 100,000 levels, rather than the limit of 7 calls deep, which the Macro app is subject to.
19 years ago
Steve Murphy bcdb270c57 This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004
19 years ago
Steve Murphy 13ceee6333 As per bug 8004, we now return AST_MODULE_LOAD_DECLINE when we can't read extensions.ael
19 years ago
Matthew Fredrickson 33ddb53663 Various updates from PCadach's chan_h323-live branch
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Steve Murphy 51132bbdbf Changes to fix all problems reported in 7804 are included here.
19 years ago
Joshua Colp 7734efb97b Make a warning about an unused function & variable go away on the stand alone AEL build.
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant 92bd7f19f7 Merge team/russell/ast_verbose_threadstorage
19 years ago
Steve Murphy 14c12fed9b The contents of branch teams/murf/bug_7598 are being folded in here.
19 years ago
Steve Murphy f67f6b2261 This branch will resolve the bug 7635.
19 years ago
Steve Murphy db0b142b06 committing a fix for colons in goto arguments and suppressing operator messages in globals assignments.
19 years ago
Russell Bryant 73ae55698f merge changes from team/murf/AEL-trunk-fixesonly
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Tilghman Lesher 9be0f34a3e Bug 7062 - Rename ael2 CLI commands to ael
19 years ago
Luigi Rizzo f4b05f86cc make destroy_pval able to handle a NULL value
19 years ago
Luigi Rizzo aaf99191c8 include/asterisk/ael_structs.h:
19 years ago
Luigi Rizzo d85048d692 fix variable declaration in the middle of a block
19 years ago
Kevin P. Fleming 5f58cc8770 Merge Steve Murphy's (murf) complete re-implementation of AEL, which is now no longer considered experimental :-)
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
19 years ago
Russell Bryant 7298d3feb3 Merged revisions 15658 via svnmerge from
19 years ago
Tilghman Lesher 84d98f6b84 Merged revisions 7577 via svnmerge from
20 years ago
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
20 years ago