Commit Graph

57 Commits (22)

Author SHA1 Message Date
Sean Bright 03e7bbbce9 Revert "pbx_ael: Global variables are not expanded."
2 years ago
Sean Bright c448dcd2f0 pbx_ael: Global variables are not expanded.
2 years ago
Josh Soref 9ae9893c63 res: Spelling fixes
4 years ago
Joshua Colp adc8aa8125 Merge "res_ael: Use Gosub in for loop expressions"
6 years ago
Joshua Colp dd06912dfa Merge "res_ael: Fix pattern matching against literal '+'"
6 years ago
Sean Bright f827193424 res_ael: Create consistent label names across reloads
6 years ago
Sean Bright f7f1a2cbb7 res_ael: Use Gosub in for loop expressions
6 years ago
Sean Bright 395c7ed5b7 res_ael: Fix pattern matching against literal '+'
6 years ago
Sean Bright fd0ca1c3f9 Remove as much trailing whitespace as possible.
8 years ago
Corey Farrell 1b80ffa495 Fix Common Typo's.
8 years ago
Jonathan R. Rose d96e350256 core/pbx: dialplan show - display filename/line#
9 years ago
Corey Farrell a6e5bae3ef Remove ASTERISK_REGISTER_FILE.
9 years ago
Corey Farrell a36a174c4b pbx: Create pbx_sw.c for management of 'struct ast_sw'.
9 years ago
Corey Farrell e2e8713b84 pbx: Create pbx_ignorepat.c for management of 'struct ast_ignorepat'.
9 years ago
Corey Farrell be36bd7ca5 pbx: Create pbx_include.c for management of 'struct ast_include'.
9 years ago
Alexei Gradinari 820ed3d4b3 fix: memory leaks, resource leaks, out of bounds and bugs
9 years ago
Corey Farrell 478fb4a388 MALLOC_DEBUG: Replace WRAP_LIBC_MALLOC with ASTMM_LIBC.
10 years ago
Matt Jordan 4a58261694 git migration: Refactor the ASTERISK_FILE_VERSION macro
10 years ago
Walter Doekes 37179a2b1f core: Don't allow free to mean ast_free (and malloc, etc..).
11 years ago
Matthew Jordan 97834718c2 Remove many deprecated modules
11 years ago
Kinsey Moore abd3e4040b Allow Asterisk to compile under GCC 4.10
11 years ago
Corey Farrell e468e73b9e Remove extra defines of AST_PBX_MAX_STACK.
11 years ago
Kinsey Moore 9b16c8b0f6 Clean up and ensure proper usage of alloca()
13 years ago
Kevin P. Fleming 166b4e2b30 Multiple revisions 369001-369002
13 years ago
Richard Mudgett dd2427c141 Coverity Report: Fix issues for error type REVERSE_INULL (core modules)
13 years ago
Kinsey Moore dd81b047db Resolve FORWARD_NULL static analysis warnings
13 years ago
Tilghman Lesher 9af5c769c3 Enable macros in 1.8 to find the next highest "h" extension in a context, like in 1.4.
13 years ago
Tilghman Lesher 8cca4ed8d8 Merged revisions 299449 via svnmerge from
15 years ago
Tilghman Lesher bddb242d72 Merged revisions 290255 via svnmerge from
15 years ago
Jeff Peeler b3281ac725 Merged revisions 271552 via svnmerge from
15 years ago
Jeff Peeler 54f2dfc91c Merged revisions 271399 via svnmerge from
15 years ago
Leif Madsen c17cda109a Revert previous WARNING message removal.
15 years ago
Leif Madsen 881450ec82 Remove unnecessary WARNING message in ael/pval.c
15 years ago
Tilghman Lesher 78012e4f71 When we call a gosub routine, the variables should be scoped to avoid contaminating the caller.
16 years ago
Tilghman Lesher 642bec4d6f AST-2009-005
16 years ago
Steve Murphy bdfda9ea23 Merged revisions 168745 via svnmerge from
17 years ago
Steve Murphy 67cb0526b7 Merged revisions 162013 via svnmerge from
17 years ago
Sean Bright 574f2daa2a Fix one case where the application argument was not converted from a pipe to
17 years ago
Steve Murphy 068859119a In these changes, I have added some explanation
17 years ago
Steve Murphy a40f1cc1c5 Merged revisions 136726 via svnmerge from
17 years ago
Steve Murphy 37001f58ff Merged revisions 131242 via svnmerge from
17 years ago
Steve Murphy 7372474c94 Merged revisions 119929 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
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
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 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Steve Murphy 8c5bf67f4a Merged revisions 87775 via svnmerge from
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Steve Murphy 3ffa04bbd3 Merged revisions 84511 via svnmerge from
18 years ago