Commit Graph

14004 Commits (00647ff5f702108cb53b0fb22a39b4b0cad0417c)
 

Author SHA1 Message Date
Steve Murphy fd1fbb0223 Thanks to snuff-work, who brought up that these fixes might need to be made.
18 years ago
Jason Parker 50879dcb1d Merged revisions 89194 via svnmerge from
18 years ago
Tilghman Lesher c69bbd2dcf Blocked revisions 89191 via svnmerge
18 years ago
Kevin P. Fleming c7773aa206 (closes issue #11221)
18 years ago
Steve Murphy 98429d37b2 Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.
18 years ago
Tilghman Lesher 061e5a1674 Merged revisions 89184 via svnmerge from
18 years ago
Christian Richter 2a0b16b663 Merged revisions 89173 via svnmerge from
18 years ago
Christian Richter 753f223a69 Merged revisions 89172 via svnmerge from
18 years ago
Joshua Colp 098728eb64 Fix building on FreeBSD by including/not including some headers.
18 years ago
Christian Richter 4f289131e6 Merged revisions 89171 via svnmerge from
18 years ago
Christian Richter b2f3d1203c Merged revisions 89170 via svnmerge from
18 years ago
Christian Richter c9b8afb447 Merged revisions 89169 via svnmerge from
18 years ago
Jason Parker a442780a75 Add usbradio.conf.sample from branches/1.4/configs - r84162.
18 years ago
Jason Parker b436362b19 Fix a few potential deadlocks in cdr_sqlite3_custom.
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
Jason Parker ec8497c58f Merged revisions 89125 via svnmerge from
18 years ago
Jason Parker 267e829cbd Add check_hangup() method to pbx_lua, which can be used to check whether it is time to hangup a channel.
18 years ago
Mark Michelson 35d7946cda app_voicemail failed to build when compiling with IMAP_STORAGE
18 years ago
Mark Michelson 0881f07aed AST_LIST_REMOVE_CURRENT takes only one argument.
18 years ago
Joshua Colp e4187a7a26 Make func_env build again.
18 years ago
Mark Michelson beef61b718 Merged revisions 89119 via svnmerge from
18 years ago
Kevin P. Fleming f806dea3dd convert this code to a more efficient idiom
18 years ago
Jason Parker 8b6c511200 Change a warning to a notice. Issue #11195, patch by eliel
18 years ago
Jason Parker e03cb6a721 Merged revisions 89115 via svnmerge from
18 years ago
Tilghman Lesher 3a70afbc3e Add the FILE() dialplan function and deprecate ReadFile.
18 years ago
Tilghman Lesher 86e5e39198 Fix missed conversion to linkedlists macro change
18 years ago
Mark Michelson 314238d9cb Blocking changes from previous 1.4 commit
18 years ago
Luigi Rizzo 01a1cfd262 use %f instead of %lf (the 'l' is ignored anyways).
18 years ago
Luigi Rizzo 339d27ebe9 use %d and cast to int instead of %zd for size_t object,
18 years ago
Luigi Rizzo 4216934121 initialize a variable to silence compiler.
18 years ago
Kevin P. Fleming c18691dec0 Merged revisions 89105 via svnmerge from
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Tilghman Lesher 950528b638 Merged revisions 89103 via svnmerge from
18 years ago
Joshua Colp 6878c9962a Merged revisions 89101 via svnmerge from
18 years ago
Joshua Colp 5a63438787 Merged revisions 89099 via svnmerge from
18 years ago
Joshua Colp f34bb18940 Merged revisions 89097 via svnmerge from
18 years ago
Joshua Colp 7c6127ceef Merged revisions 89095 via svnmerge from
18 years ago
Tilghman Lesher 97744f54e7 Merged revisions 89093 via svnmerge from
18 years ago
Mark Michelson 4f34bc609b If imapfolder has been specified in voicemail.conf, we should not connect to INBOX...
18 years ago
Mark Michelson 9aca31f0fc Merged revisions 89090 via svnmerge from
18 years ago
Steve Murphy a87efea3c4 Merged revisions 89088 via svnmerge from
18 years ago
Joshua Colp fc0853c7bc Minor change so chan_h323 builds again.
18 years ago
Luigi Rizzo 225b653fc0 remove enter/exit comments when handling subdirectory.
18 years ago
Luigi Rizzo d0b2d2dc62 remove a debugging message which i forgot in.
18 years ago
Luigi Rizzo 19dda440b1 match changes in menuselect's Makefile
18 years ago
Tilghman Lesher 6f3f010ca0 Suppress erroneous warnings on load.
18 years ago
Tilghman Lesher 6a9fbeaf68 Merged revisions 89079 via svnmerge from
18 years ago
Tilghman Lesher 37166d9a1a Provide the ability to directly manipulate the TON/NPI bits in the dialstring.
18 years ago
Tilghman Lesher fd15274898 Add contributed EAGI proxy, which provides FastAGI functionality for EAGI, while also
18 years ago
Russell Bryant 5480c54e56 Fix another CLI command so it doesn't run the real code when called for initialization.
18 years ago