Commit Graph

154 Commits (1ebf7767d0c7fe090b4dd41e110a18988b99985c)

Author SHA1 Message Date
Tilghman Lesher 642bec4d6f AST-2009-005
16 years ago
Kevin P. Fleming ed2a3cedd1 Merged revisions 209759 via svnmerge from
16 years ago
David Vossel dcfe69ec64 fixes some memory leaks and redundant conditions
16 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
David Brooks 0ea83eab48 Removing crufty code that is no longer necessary. Code cleanup.
16 years ago
Jeff Peeler 58cf8b69da Fix malloc debug macros to work properly with h323.
16 years ago
Tilghman Lesher f90021fdd0 Ensure that commas placed in the middle of extension character classes do not
17 years ago
Tilghman Lesher 53ddd52fc4 Merged revisions 170158 via svnmerge from
17 years ago
Joshua Colp 601176cb6e Be more detailed about why the include did not get included.
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Kevin P. Fleming 210df649a2 correct logic error noticed by rmudgett (thanks!)
17 years ago
Kevin P. Fleming 9153827d56 coding style/guidelines cleanup, plus use new side-effect safe S_OR
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
BJ Weschke 9aefadd7c1 Do NOT attempt to do anything with the ast_config struct when it's been returned as INVALID by the config file interpreter.
17 years ago
Tilghman Lesher 038b588ee8 Reset continuation items at the beginning of each context (suggested by
17 years ago
Tilghman Lesher 5c32f80a61 Add keyword "same", which allows you to create multiple steps in a dialplan,
17 years ago
Sean Bright b7a4db0ced Start moving in changes from my resolve-shadow-warnings branch. Going to do
17 years ago
Kevin P. Fleming 6291cd19bf remove remaining Zaptel references in various places
17 years ago
Tilghman Lesher 12e5c68622 Merged revisions 127973 via svnmerge from
17 years ago
Tilghman Lesher 122486b263 Allow alternative extensions to be specified for a user.
17 years ago
Jeff Peeler ef3b214728 Goodbye Zaptel, hello DAHDI. Removes Zaptel driver support with DAHDI. Configuration file and dialplan backwards compatability has been put in place where appropiate. Release announcement to follow.
17 years ago
Joshua Colp 270bad99c8 We like tabs.
17 years ago
Joshua Colp db9d25d32e Merged revisions 120282 via svnmerge from
17 years ago
Tilghman Lesher bdad3c9889 (closes issue #6019)
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 years ago
Jason Parker eea428cf76 Use defined return values in load_module in more places.
18 years ago
Steve Murphy 1f792f1745 closes issue #11294; missed the conditional unlock of the contexts when the hash table is used instead; also, used the ast_free_ptr as advised.
18 years ago
Joshua Colp 9910b7d9a7 Merged revisions 89592 via svnmerge from
18 years ago
Steve Murphy a63f6be669 closes issue #11363; where the pattern _20x. buried in an included context, didn't match 2012; There were a small set of problems to fix: 1. I needed NOT to score patterns unless you are at the end of the data string. 2. Capital N,X,Z and small n,x,z are OK in patterns. I canonicalize the patterns in the trie to caps. 3. When a pattern ends with dot or exclamation, CANMATCH/MATCHMORE should always report this pattern, no matter the length. With this commit, I also supplied the wish of Luigi, where the user can select which pattern matching algorithm to use, the old (legacy) pattern matcher, or the new, trie based matcher. The OLD matcher is the default. A new [general] section variable, extenpatternmatchnew, is added to the extensions.conf, and the example config has it set to false. If true, the new matcher is used. In all other respects, the context/exten structs are the same; the tries and hashtabs are formed, but in the new mode the tries are not used. A new CLI command 'dialplan set extenpatternmatch true/false' is provided to allow switching at run time. I beg users that are forced to return to the old matcher to please report the reason in the bug tracker. Measured the speed benefit of the new matcher against an impossibly large context with 10,000 extensions: the new matcher is 374 times faster.
18 years ago
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo ffd86fc964 more errno.h removal
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
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
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
Russell Bryant ac46e63a41 Merged revisions 85540 via svnmerge from
18 years ago
Russell Bryant e97a723cf1 Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :)
18 years ago
Russell Bryant 9388173f85 Make the MALLOC_DEBUG output for free() useful again. After changing calls to
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Tilghman Lesher 8f1c914c89 'dialplan save' shouldn't be converting '|' back to ',' anymore.
18 years ago
Tilghman Lesher 55b1ee298e Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
18 years ago
Joshua Colp d61056132a Merged revisions 73930 via svnmerge from
18 years ago
Russell Bryant 8d89f741a5 Merged revisions 72272 via svnmerge from
18 years ago
Russell Bryant 9e0458e9f1 Completely remove all of the code related to jumping to priority n + 101. yay!
18 years ago
Tilghman Lesher 7e52b8620b Merged revisions 68595 via svnmerge from
18 years ago
Joshua Colp e7b03a991e Convert the PBX core to use read/write locks. This yields a nifty performance improvement when it comes to simultaneous calls going through the dialplan. Using murf's test the old mutex based core took an average of 57.3 seconds while the rwlock based core took 31.1 seconds. That's a nifty 26.2 seconds performance improvement. The other good part is that if we do need to switch back then we just have to change the lock/unlock API calls. I converted everywhere that used to touch the mutex locks directly to use them.
18 years ago
Joshua Colp e83cff1c23 Merged revisions 56856 via svnmerge from
18 years ago
Russell Bryant 84718d10c4 Merged revisions 54898 via svnmerge from
19 years ago