Commit Graph

108 Commits (8924258639ffa919b4b78908f161756814e2bd06)

Author SHA1 Message Date
Andreas Wehrmann e5c05d4225 pbx_ael: unregister AELSub application and CLI commands on module load failure
5 days ago
Sean Bright 82bef2ed90 docs: Indent <since> tags.
3 months ago
George Joseph 198b01c536 docs: Add version information to application and function XML elements
3 months ago
Mike Bradeen e8f548c155 app_macro: Remove deprecated module.
2 years ago
Mark Murawski 7fc26e8617 pbx_ael: Fix crash and lockup issue regarding 'ael reload'
4 years ago
Mark Murawski bbf4f30059 pbx_ael: Fix crash and lockup issue regarding 'ael reload'
4 years ago
Corey Farrell 9cfdb81e91 loader: Add dependency fields to module structures.
7 years ago
Sean Bright fd0ca1c3f9 Remove as much trailing whitespace as possible.
7 years ago
Corey Farrell a6e5bae3ef Remove ASTERISK_REGISTER_FILE.
9 years ago
Rodrigo Ramírez Norambuena eec010829a AST_MODULE_INFO: Format corrections to the usages of AST_MODULE_INFO macro.
10 years ago
Matt Jordan 4a58261694 git migration: Refactor the ASTERISK_FILE_VERSION macro
10 years ago
Mark Michelson dcf1ad14da Add module support level to ast_module_info structure. Print it in CLI "module show" .
11 years ago
Sean Bright b44d324891 Make the AEL load process less chatty.
11 years ago
Sean Bright 14942ecb17 Revert r410981. aelparse blew up.
11 years ago
Sean Bright 922d0b7565 Make the AEL load process less chatty.
11 years ago
Kinsey Moore 9b16c8b0f6 Clean up and ensure proper usage of alloca()
13 years ago
Leif Madsen a525edea59 Merged revisions 328247 via svnmerge from
14 years ago
Tilghman Lesher 79fdf2945e Merged revisions 310462 via svnmerge from
14 years ago
Jeff Peeler 54f2dfc91c Merged revisions 271399 via svnmerge from
15 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Joshua Colp 654ea55a65 Numerous documentation updates.
17 years ago
Steve Murphy 1a37ee4025 A possibly "horrible fix" for a "horribly broken"
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Michiel van Baak 86f900b201 This commit does two things:
17 years ago
Kevin P. Fleming 629861a705 Merged revisions 144924-144925 via svnmerge from
17 years ago
Steve Murphy 2427603eaf Merged revisions 111341 via svnmerge from
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 years ago
Russell Bryant 1ec8cb41a8 Merge changes from team/mvanbaak/cli-command-audit
17 years ago
Luigi Rizzo ffd86fc964 more errno.h removal
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Steve Murphy a897556f7f This is the perhaps the biggest, boldest, most daring change I've ever committed to trunk. Forgive me in advance any disruption this may cause, and please, report any problems via the bugtracker. The upside is that this can speed up large dialplans by 20 times (or more). Context, extension, and priority matching are all fairly constant-time searches. I introduce here my hashtables (hashtabs), and a regression for them. I would have used the ast_obj2 tables, but mine are resizeable, and don't need the object destruction capability. The hashtab stuff is well tested and stable. I introduce a data structure, a trie, for extension pattern matching, in which knowledge of all patterns is accumulated, and all matches can be found via a single traversal of the tree. This is per-context. The trie is formed on the first lookup attempt, and stored in the context for future lookups. Destruction routines are in place for hashtabs and the pattern match trie. You can see the contents of the pattern match trie by using the 'dialplan show' cli command when 'core set debug' has been done to put it in debug mode. The pattern tree traversal only traverses those parts of the tree that are interesting. It uses a scoreboard sort of approach to find the best match. The speed of the traversal is more a function of the length of the pattern than the number of patterns in the tree. The tree also contains the CID matching patterns. See the source code comments for details on how everything works. I believe the approach general enough that any issues that might come up involving fine points in the pattern matching algorithm, can be solved by just tweaking things. We shall see. The current pattern matcher is fairly involved, and replicating every nuance of it is difficult. If you find and report problems, I will try to resolve than as quickly as I can. The trie and hashtabs are added to the existing context and exten structs, and none of the old machinery has been removed for the sake of the multitude of functions that use them. In the future, we can (maybe) weed out the linked lists and save some space.
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Russell Bryant e97a723cf1 Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :)
18 years ago
Steve Murphy b3168a76c9 Merged revisions 84239 via svnmerge from
18 years ago
Steve Murphy f2b38cf2f3 Merged revisions 83558 via svnmerge from
18 years ago
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