Commit Graph

204 Commits (master)

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
16 years ago
Tilghman Lesher 53ddd52fc4 Merged revisions 170158 via svnmerge from
16 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
18 years ago
Tilghman Lesher a3ce6f5f8c Merged revisions 52679 via svnmerge from
19 years ago
Jason Parker 5abda34cd9 Merged revisions 49742 via svnmerge from
19 years ago
Joshua Colp 858796affa Merged revisions 49073 via svnmerge from
19 years ago
Steve Murphy f92697c5fc This small update will generate WARNINGS if there is garbage in your extensions.conf file (liken extem => instead of exten => !)
19 years ago
Paul Cadach b4ef9599de Merged revisions 44186 via svnmerge from
19 years ago
Tilghman Lesher 6ae8741518 Lots more removal of deprecated things
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
19 years ago
Russell Bryant f7cac071d9 Merged revisions 41269 via svnmerge from
19 years ago
Steve Murphy 8efd121371 Bugfix for 7813 applied to trunk as per patch supplied by stevens
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant 92bd7f19f7 Merge team/russell/ast_verbose_threadstorage
19 years ago
Kevin P. Fleming acfa035afe Merged revisions 37417 via svnmerge from
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Kevin P. Fleming dd6de5ee4e it's time... only enable global priority jumping if the config file says to do so
19 years ago
Kevin P. Fleming ed3ffb4b46 various doxygen fixes
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Kevin P. Fleming f515078c53 Merged revisions 19345 via svnmerge from
19 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
19 years ago
Luigi Rizzo 08dfc15553 whitespace and formatting fix postponed from last commit:
19 years ago
Luigi Rizzo 25a61b9e08 split pbx_load_module so we can reduce the indentation depth.
19 years ago
Luigi Rizzo 38f14cbca7 use FREE instead of free as pointer to the destructor function.
19 years ago
Olle Johansson 16728da6a7 Whitespace fix forgotten by someone who added a note about needing to fix this...
19 years ago
Luigi Rizzo 4ca73f8ae4 as reported in mantis #6066, fix a bunch of cli bugs and
19 years ago
Olle Johansson acfc219733 Reverting revision 10998 that was accidentaly committed to trunk. My apologies.
19 years ago
Olle Johansson dd5222fd30 Update to trunk
19 years ago
Russell Bryant 6f71e1178e constify arguments in more places where strings should not be modified (issue #6286)
20 years ago
Tilghman Lesher a84633ba26 Merged revisions 7831 via svnmerge from
20 years ago
Russell Bryant ec05153ac4 convert most of the option_*'s to a single ast_flags structure. Also, fix some
20 years ago
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
20 years ago
Russell Bryant d8dfa4434d finish merging doxygen updates from issue #5605
20 years ago
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
20 years ago
Kevin P. Fleming 053326ac85 ensure that priorityjumping option returns to its default during reload if it is no longer specified in extensions.conf
20 years ago
Russell Bryant 779d033f21 move process_quotes_and_slashes to utils.c since it is used by both pbx_ael and pbx_config
20 years ago
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
20 years ago
Kevin P. Fleming 5cc0413c54 add a global option to disable priority jumping in applications (when they get updated), settable in extensions.conf
20 years ago
Kevin P. Fleming 2b8338cb52 more file version tags
20 years ago
Kevin P. Fleming 4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
20 years ago
Kevin P. Fleming ce89d985f2 allow global variables to be reset on reload (defaults to off) (bug #4385)
20 years ago
Russell Bryant 3c98814bb5 add 'dontwarn' option to asterisk.conf to appease the whining masses :p (bug #4320)
20 years ago
Russell Bryant 364e179b78 check to see if a comma or an open paren came first when splitting the application
20 years ago
Russell Bryant 7d3f5785e9 fix some more typos and clarity issues
20 years ago
Russell Bryant e82344f7e0 fix a little typo
20 years ago
Kevin P. Fleming 8634ef9e4a don't use '%i' at all, since we have no current use cases that need non base-10 parsing (bug #4110)
20 years ago
Kevin P. Fleming a9831e75ee perform global variable substitution before splitting extension and cidmatch when reading in dialplan (bug #4035)
20 years ago
Kevin P. Fleming 1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
20 years ago
Mark Spencer fdff1f69b5 Add warning for _. match (bug #4032)
20 years ago
Russell Bryant f0c880d6f6 silly typo
20 years ago