You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asterisk/res
Luigi Rizzo 3fc2646808
remove a number of #include <fcntl.h> which are either
18 years ago
..
ael 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
snmp Fix a typo in the Asterisk MIB and fix astNumChanBridged so it acts as a counter again 18 years ago
Makefile Fix building of modules under cygwin. 18 years ago
res_adsi.c remove a bunch of useless #include "options.h" 18 years ago
res_ael_share.c remove a bunch of useless #include "options.h" 18 years ago
res_agi.c remove a number of #include <fcntl.h> which are either 18 years ago
res_clioriginate.c include "logger.h" and errno.h from asterisk.h - usage shows that they 18 years ago
res_config_odbc.c remove a bunch of useless #include "options.h" 18 years ago
res_config_pgsql.c remove a bunch of useless #include "options.h" 18 years ago
res_config_sqlite.c remove a bunch of useless #include "options.h" 18 years ago
res_convert.c include "logger.h" and errno.h from asterisk.h - usage shows that they 18 years ago
res_crypto.c remove a number of #include <fcntl.h> which are either 18 years ago
res_features.c closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly. 18 years ago
res_indications.c include "logger.h" and errno.h from asterisk.h - usage shows that they 18 years ago
res_jabber.c remove a bunch of useless #include "options.h" 18 years ago
res_limit.c include "logger.h" and errno.h from asterisk.h - usage shows that they 18 years ago
res_monitor.c remove a bunch of useless #include "options.h" 18 years ago
res_musiconhold.c remove a bunch of useless #include "options.h" 18 years ago
res_odbc.c remove a bunch of useless #include "options.h" 18 years ago
res_realtime.c remove a bunch of useless #include "options.h" 18 years ago
res_smdi.c remove a bunch of useless #include "options.h" 18 years ago
res_snmp.c remove a bunch of useless #include "options.h" 18 years ago
res_speech.c remove a bunch of useless #include "options.h" 18 years ago