Commit Graph

13530 Commits (7f8ecd2cd39ac2299ec08deb4dc92839be5412d1)
 

Author SHA1 Message Date
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant d3414c7552 Fix up various coding guidelines issues ...
18 years ago
Russell Bryant 51377db4a5 - Use the ARRAY_LEN macro in a couple places
18 years ago
Russell Bryant 0df5e50e97 Use BEGIN_OPTIONS / END_OPTIONS to make the syntax highlighting in my editor happy
18 years ago
Russell Bryant 31512895ae Instead of reserving 800 bytes for periodic announcements, use an array of
18 years ago
Joshua Colp 7d561b994c Merged revisions 89260 via svnmerge from
18 years ago
Russell Bryant 76696ac65f Convert most of the strings in the call_queue struct to use stringfields.
18 years ago
Kevin P. Fleming a34bbab643 use simpler technique for removing known entries from lists
18 years ago
Russell Bryant b30b1bc46f - Simplify removing an item from a list
18 years ago
Steve Murphy fd1f6df25f This hopefully will fix the re-opened 11233. Hadn't covered the case of a context with no patterns. (blush)
18 years ago
Steve Murphy f0a7e86177 closes issue #11233 -- where some fine points in the algorithm to build the tree needed to be corrected. Many thanks for the test case, jtodd
18 years ago
Jason Parker 3846390d00 Blocked revisions 89254 via svnmerge
18 years ago
Russell Bryant 9eff81dad9 This fixes a build error on my mac. It also works on my linux box. Let me
18 years ago
Russell Bryant 799fc3b99f Fix a typo pointed out by outtolunc, thanks :)
18 years ago
Russell Bryant 50426062b7 - Convert initialization of a struct to C99 style instead of GNU style
18 years ago
Russell Bryant fa39f74761 Update the ParkedCall application to grab the first available parked call if no
18 years ago
Jason Parker d24cee9a81 Merged revisions 89248 via svnmerge from
18 years ago
Tilghman Lesher f821071748 Merged revisions 89246 via svnmerge from
18 years ago
Mark Michelson e4bb565530 Merged revisions 89241 via svnmerge from
18 years ago
Tilghman Lesher 9cd09c5214 Merged revisions 89239 via svnmerge from
18 years ago
Mark Michelson 13c49f6cce There is the potential to copy uninitialized memory into the mixmonitor->post_process
18 years ago
Mark Michelson 1d4c579422 Merged revisions 89205 via svnmerge from
18 years ago
Jason Parker 94f0144eca oops, somebody left out the directory here...
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
18 years ago
Steve Murphy f033e50a15 Don't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.
18 years ago
Steve Murphy db1000b803 Thanks to snuffy for this doxygen update to hashtab.h; closes issue #11223
18 years ago
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