Commit Graph

97 Commits (71ebf2e7ca7ed51a88d46a1ac58aed1945b97cd8)

Author SHA1 Message Date
Tilghman Lesher 69924a14f1 Merged revisions 161181 via svnmerge from
17 years ago
Steve Murphy 1435f40ca5 Merged revisions 157302 via svnmerge from
17 years ago
Tilghman Lesher e65c411c8f Merged revisions 149199 via svnmerge from
17 years ago
Steve Murphy 2c1bfe7643 Merged revisions 147807 via svnmerge from
17 years ago
Mark Michelson 6ed6a5ae29 Merged revisions 140489 via svnmerge from
17 years ago
Sean Bright b69c8e6ab5 Another big chunk of changes from the RSW branch. Bunch of stuff from main/
17 years ago
Tilghman Lesher ff101d0b07 Add '+=' append operator to configuration files.
17 years ago
Tilghman Lesher 08f3c4e4a3 Merged revisions 132107 via svnmerge from
17 years ago
Tilghman Lesher 9471b87d27 Merge the adaptive realtime branch, which will make adding new required fields
17 years ago
Jeff Peeler 5f9bb7ed02 Merged revisions 120173 via svnmerge from
17 years ago
Mark Michelson 46e68c36b6 Be sure that we cache included files for each source file which loads
17 years ago
Mark Michelson 276118a776 #execing the same file multiple times led to warning messages saying that the same file was
17 years ago
Tilghman Lesher b11854445b Add attributes to various API calls, to help track down bugs (and remove a deprecated function)
17 years ago
Tilghman Lesher e04025ead9 Simplify new macro, simplify configfile logic, now that list is sorted
17 years ago
Tilghman Lesher e6fc9ae52c Add a linkedlist macro that maintains a sorted list
17 years ago
Tilghman Lesher ef4eff9a9b Add the "config reload <conffile>" command, which allows you to tell Asterisk
17 years ago
Steve Murphy 14e1d8c6d8 Merged revisions 109908 via svnmerge from
17 years ago
Tilghman Lesher d02f74ebfe An offhand comment from Russell made me realize that the configuration file
17 years ago
Tilghman Lesher cfc1df4c1a Whitespace changes only
17 years ago
Jason Parker 84e302bfe0 Merged revisions 104092 via svnmerge from
17 years ago
Jason Parker 72bc8a7c7d Fix up some doxygen issues.
18 years ago
Jeff Peeler 16a14a4cd8 Requested changes from Pari, reviewed by Russell.
18 years ago
Jason Parker 3def286b5b Display a message if no config mappings are found with "core show config mappings".
18 years ago
Luigi Rizzo 8afacf169b add support for PARSE_DOUBLE, and remove identifiers for
18 years ago
Luigi Rizzo fd88390af7 remove unnecessary (char *) casts for ast_config_AST_* variables.
18 years ago
Russell Bryant 1e9f670e13 Print an error message if a #included file does not exist
18 years ago
Jason Parker 78465ad2a3 Merged revisions 92696 via svnmerge from
18 years ago
Luigi Rizzo 10b3c51930 remove unused code, and simplify the logic for #include/#exec
18 years ago
Luigi Rizzo d602e2c083 Implement comment_buffer and lline_buffer in terms of the ast_str_*() API.
18 years ago
Luigi Rizzo 0b7e752709 unify some common code
18 years ago
Luigi Rizzo 94b0c2220a normalize formatting
18 years ago
Luigi Rizzo 7fe5f3464d document a nice technique to exit from a block in case of errors.
18 years ago
Luigi Rizzo a077c8cb90 a little bit of documentation on how lines are parsed.
18 years ago
Russell Bryant fac7480820 Merged revisions 90348 via svnmerge from
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo 1e6489a175 trim more redundant headers
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Luigi Rizzo 02733f3290 add a small new function to retrieve variables from a config
18 years ago
Tilghman Lesher 0f6892419e One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
18 years ago
Tilghman Lesher b4839d4d4a Typo
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
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
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Steve Murphy 9f08e7e132 Merged revisions 89036 via svnmerge from
18 years ago
Tilghman Lesher b6c7daa804 Don't re-cache the filename, but check to see if it already exists
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
Jason Parker 65761cbd7a More changes to NEW_CLI.
18 years ago