Commit Graph

693 Commits (0ae9097e3e7326bbc0c4b1ec0c6dd8e2127d7a2e)

Author SHA1 Message Date
Tilghman Lesher efa00e7038 Merged revisions 160551 via svnmerge from
17 years ago
Tilghman Lesher 1b0d3db863 Don't actually do anything with a negative priority, because we ignore it in
17 years ago
Kevin P. Fleming 8d5deb312b Merged revisions 157859 via svnmerge from
17 years ago
Terry Wilson d66a8cd264 Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config
17 years ago
Michiel van Baak 86f900b201 This commit does two things:
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 d5837ba8c2 Add additional memory debugging to several core APIs, and fix several memory
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
Kevin P. Fleming 629861a705 Merged revisions 144924-144925 via svnmerge from
17 years ago
Steve Murphy 1c2b1eb928 (closes issue #13564)
17 years ago
Steve Murphy a36696f2e7 (closes issue #13559)
17 years ago
Steve Murphy 38028fa641 I added a little verbage to hashtab for the hashtab_destroy func.
17 years ago
Steve Murphy f8ddaae70b (closes issue #13558)
17 years ago
Steve Murphy ec25f4be4d Merged revisions 141094 via svnmerge from
17 years ago
Steve Murphy a40f1cc1c5 Merged revisions 136726 via svnmerge from
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 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Russell Bryant 8c29e699fe Merged revisions 134595 via svnmerge from
18 years ago
Kevin P. Fleming 6291cd19bf remove remaining Zaptel references in various places
18 years ago
Brett Bryant 5b7933fe5e Janitor patch to change uses of sizeof to ARRAY_LEN
18 years ago
Tilghman Lesher 4ff527903e Code wasn't ready to be merged - see -dev list discussion
18 years ago
Brett Bryant d185405755 Janitor project to convert sizeof to ARRAY_LEN macro.
18 years ago
Olle Johansson 6f400edeab Changing name of global api call to ast_*
18 years ago
Olle Johansson 45e79490ba Implement flags for AGI in the channel structure so taht "show channels" and
18 years ago
Tilghman Lesher 12e5c68622 Merged revisions 127973 via svnmerge from
18 years ago
Kevin P. Fleming 71b3fd1ef7 various minor fixes created while i worked on getting *every* Asterisk module to build on laptop in dev mode:
18 years ago
Michiel van Baak 8e8359465b Older versions of GNU gcc do not allow 'NULL' as sentinel.
18 years ago
Tilghman Lesher 122486b263 Allow alternative extensions to be specified for a user.
18 years ago
Tilghman Lesher c86e26e66b Merged revisions 123710 via svnmerge from
18 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.
18 years ago
Russell Bryant f4a8062e93 Merge another change from team/russell/events ...
18 years ago
Joshua Colp 270bad99c8 We like tabs.
18 years ago
Joshua Colp db9d25d32e Merged revisions 120282 via svnmerge from
18 years ago
Tilghman Lesher 5b5a84676a Merged revisions 120226 via svnmerge from
18 years ago
Tilghman Lesher 76506b7baa Move compatibility options into asterisk.conf, default them to on for upgrades,
18 years ago
Steve Murphy f40f170eea Merged revisions 119966 via svnmerge from
18 years ago
Tilghman Lesher 1c51fec08c In compat14 mode, don't translate pipes inside expressions, as they aren't
18 years ago
Tilghman Lesher 9276a4370c Add a compatibility option for upgrading realtime extensions
18 years ago
Russell Bryant 457dbc1b4f Merged revisions 117507 via svnmerge from
18 years ago
Olle Johansson 29b1d73567 Add support for codec settings in originate via call file and manager.
18 years ago
Olle Johansson cc6d4100ad Doxygen formatting change only
18 years ago
Russell Bryant 9eb8e7d665 Lock the channel around datastore access
18 years ago
Steve Murphy c0b8f57b9d (closes issue #12467)
18 years ago
Steve Murphy 2427603eaf Merged revisions 111341 via svnmerge from
18 years ago
Steve Murphy 4e29ae8806 Merged revisions 109309 via svnmerge from
18 years ago
Tilghman Lesher bdad3c9889 (closes issue #6019)
18 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
18 years ago
Russell Bryant 1ec8cb41a8 Merge changes from team/mvanbaak/cli-command-audit
18 years ago
Tilghman Lesher ac699196f5 Merged revisions 100465 via svnmerge from
18 years ago
Russell Bryant cc4a630cd7 Merged revisions 98390 via svnmerge from
18 years ago
Russell Bryant 234b856d17 Merged revisions 97753 via svnmerge from
18 years ago
Russell Bryant c53f95e29f Merged revisions 97734 via svnmerge from
18 years ago
Tilghman Lesher 857e3412f4 Several manager changes:
18 years ago
Russell Bryant 372dd125dc Merged revisions 97645 via svnmerge from
18 years ago
Russell Bryant ddc0fbfc98 Merged revisions 97640 via svnmerge from
18 years ago
Jason Parker eea428cf76 Use defined return values in load_module in more places.
18 years ago
Kevin P. Fleming 100ef27af9 Merged revisions 93180 via svnmerge from
18 years ago
Olle Johansson 940f8f6276 Convert from LOG_DEBUG etc to ast_debug. Thanks, dimas!
18 years ago
Olle Johansson 17afebc1a6 HUGE improvements to QoS/CoS handling by IgorG
18 years ago
Russell Bryant 04ab19aef5 make something static
18 years ago
Luigi Rizzo 5490889153 Put into Makefile.moddir_rules the common instructions used to
18 years ago
Luigi Rizzo d652be0930 normalize subdirs' Makefile by using ASTTOPDIR and not .. to reference
18 years ago
Jason Parker fc607d5be4 Update documentation for pbx_lua.
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
Steve Murphy ab92fc1f35 made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.
18 years ago
Mark Michelson 180c3fb60e Change all instances of "CALLERID(number)" to "CALLERID(num)" for
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
Tilghman Lesher cbfc6dcbea Make trunk build again
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 6938f4b2b0 Fix building of modules under cygwin.
18 years ago
Luigi Rizzo ffd86fc964 more errno.h removal
18 years ago
Steve Murphy 1a5cdeb138 a quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing. And some additions to removal of extens to take care of hashtab pointers in all cases.
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Russell Bryant 49d1248c55 fix the build of pbx_lua
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
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
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 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
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Russell Bryant c93520b88b propagate the DECLINE return value back to the loader
18 years ago
Russell Bryant 9a47852673 Don't kill asterisk if extensions.lua is not present.
18 years ago
Tilghman Lesher ca55e2f671 Oops, some dev-mode changes for ISO C90
18 years ago
Tilghman Lesher e8c781b215 Add pbx_lua as a method of doing extensions
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
Russell Bryant 1c7eb1d82b Change some uses of free() to ast_free(). (No functional differences.)
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Steve Murphy b7ef49c931 closes issue #11005, where #include uses the current dir instead of the config dir (/etc/asterisk) for relative path includes for AEL
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
Joshua Colp 9409a33900 Merged revisions 86661 via svnmerge from
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago