Commit Graph

802 Commits (20ee33e22e3724c35ab3078c5032b87af5b4920c)

Author SHA1 Message Date
Tilghman Lesher bddb242d72 Merged revisions 290255 via svnmerge from
15 years ago
Tilghman Lesher 93f9937ede Merged revisions 290066 via svnmerge from
15 years ago
Tilghman Lesher 29249cfb25 Merged revisions 285386 via svnmerge from
15 years ago
Tilghman Lesher 90bf5c0549 Merged revisions 285367 via svnmerge from
15 years ago
Tilghman Lesher 8190e96fad Merged revisions 284610 via svnmerge from
15 years ago
Russell Bryant 61aa412c61 Merged revisions 283951 via svnmerge from
15 years ago
Jason Parker 377c3bf88e Merged revisions 282131 via svnmerge from
15 years ago
Terry Wilson d6e1c724e5 Remove built-in AES code and use optional_api instead
15 years ago
Tilghman Lesher b4e18d5660 Add load priority order, such that preload becomes unnecessary in most cases
15 years ago
David Vossel 3f00e3ff03 fixes issue with 'dialplan remove extension blah' segfaulting with tab completion
15 years ago
Matthew Nicholson 01507f4ab7 Merged revisions 271761 via svnmerge from
15 years ago
Jeff Peeler 54f2dfc91c Merged revisions 271399 via svnmerge from
15 years ago
Jeff Peeler a370bc1522 fix compile error
15 years ago
Tilghman Lesher 05a1ec8abc Cache query results for one second.
15 years ago
Tilghman Lesher a7498ae02e Use configure to determine the prefixes and include directories properly.
15 years ago
Russell Bryant 7c4a95f2ea Fix build on linux.
15 years ago
Tilghman Lesher 8d6ee962c7 Add kqueue(2) implementation to Asterisk in various places.
15 years ago
Paul Belanger 663a368a87 Improve logging by displaying line number
15 years ago
Russell Bryant be672528e6 Merged revisions 255322 via svnmerge from
15 years ago
Tilghman Lesher 11f57c6806 inotify support for pbx_spool
15 years ago
Kevin P. Fleming ae6008ef3a Change per-file debug and verbose levels to be per-module, the way
15 years ago
Russell Bryant b6e5e180b9 Resolve a compiler warning on FreeBSD.
15 years ago
Russell Bryant 925aad8944 Remove pbx_gtkconsole and related gtk1 checks.
15 years ago
Leif Madsen b310356d93 Convert some DUNDI functions to XML documentation.
15 years ago
Russell Bryant 77578f5e35 Add a todo for pbx_gtkconsole for updating to gtk2.
16 years ago
Tilghman Lesher bc9f02a60d Merged revisions 242520 via svnmerge from
16 years ago
Jeff Peeler 568c057c4c Extend max call limit duration from 24.8 days to 292+ million years.
16 years ago
Matthias Nick 89b02b583a Parse global variables or expressions in hint extensions
16 years ago
Matthew Nicholson a723865e5c Load pbx_lua with global symbols to allow linking with other lua libraries.
16 years ago
Tilghman Lesher d8e0c58437 Expand codec bitfield from 32 bits to 64 bits.
16 years ago
Russell Bryant b0778107c7 Resolve a warning from gcc 4.4.1.
16 years ago
Tilghman Lesher 01fd08d5b9 If lua is detected with the lua5.1 prefix (or not), adjust the include path accordingly.
16 years ago
Tilghman Lesher 9c653c4431 DUNDILOOKUP function in 1.6 should use comma delimiters.
16 years ago
Tilghman Lesher 642bec4d6f AST-2009-005
16 years ago
Kevin P. Fleming ed2a3cedd1 Merged revisions 209759 via svnmerge from
16 years ago
David Brooks d81d6d3415 Fixing typos. Replaces "recieved" with "received" and "initilize" with "initialize"
16 years ago
Russell Bryant 742f0b90dd Remove trailing whitespace.
16 years ago
Kevin P. Fleming 96e4e31eeb Merged revisions 207647 via svnmerge from
16 years ago
David Vossel dcfe69ec64 fixes some memory leaks and redundant conditions
16 years ago
Kevin P. Fleming 82fb56886e More 'static' qualifiers on module global variables.
16 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Kevin P. Fleming a3af213506 Remove rarely-used event_log/LOG_EVENT support
16 years ago
David Brooks 0ea83eab48 Removing crufty code that is no longer necessary. Code cleanup.
16 years ago
Russell Bryant b564b2105f Change g_eid to ast_eid_default.
16 years ago
Jeff Peeler 58cf8b69da Fix malloc debug macros to work properly with h323.
16 years ago
Mark Michelson 7824d71998 Convert pbx_spool to use string fields instead of statically-sized buffers.
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
Sean Bright 5183cbccfc Change intializer types. Found while working on asterisk-cpp. I have a new
17 years ago
Joshua Colp 654ea55a65 Numerous documentation updates.
17 years ago
Steve Murphy 1a37ee4025 A possibly "horrible fix" for a "horribly broken"
17 years ago
Steve Murphy eaafc96872 fixed the regressions
17 years ago
Joshua Colp 601176cb6e Be more detailed about why the include did not get included.
17 years ago
Tilghman Lesher e62193f887 Allow disabling pattern match searches within the Realtime dialplan switch.
17 years ago
Russell Bryant 1238488319 When a reload is issued, always process the configuration for dundi.conf.
17 years ago
Russell Bryant 92e1619bab Merged revisions 163511 via svnmerge from
17 years ago
Matthew Nicholson c6244cca48 Merged revisions 163316 via svnmerge from
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Tilghman Lesher b1824992a9 Merged revisions 160558 via svnmerge from
17 years ago
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
17 years ago
Kevin P. Fleming 6291cd19bf remove remaining Zaptel references in various places
17 years ago
Brett Bryant 5b7933fe5e Janitor patch to change uses of sizeof to ARRAY_LEN
17 years ago
Tilghman Lesher 4ff527903e Code wasn't ready to be merged - see -dev list discussion
17 years ago
Brett Bryant d185405755 Janitor project to convert sizeof to ARRAY_LEN macro.
17 years ago
Olle Johansson 6f400edeab Changing name of global api call to ast_*
17 years ago
Olle Johansson 45e79490ba Implement flags for AGI in the channel structure so taht "show channels" and
17 years ago
Tilghman Lesher 12e5c68622 Merged revisions 127973 via svnmerge from
17 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:
17 years ago
Michiel van Baak 8e8359465b Older versions of GNU gcc do not allow 'NULL' as sentinel.
17 years ago
Tilghman Lesher 122486b263 Allow alternative extensions to be specified for a user.
17 years ago
Tilghman Lesher c86e26e66b Merged revisions 123710 via svnmerge from
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
Russell Bryant f4a8062e93 Merge another change from team/russell/events ...
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 5b5a84676a Merged revisions 120226 via svnmerge from
17 years ago
Tilghman Lesher 76506b7baa Move compatibility options into asterisk.conf, default them to on for upgrades,
17 years ago
Steve Murphy f40f170eea Merged revisions 119966 via svnmerge from
17 years ago
Tilghman Lesher 1c51fec08c In compat14 mode, don't translate pipes inside expressions, as they aren't
17 years ago
Tilghman Lesher 9276a4370c Add a compatibility option for upgrading realtime extensions
17 years ago
Russell Bryant 457dbc1b4f Merged revisions 117507 via svnmerge from
17 years ago
Olle Johansson 29b1d73567 Add support for codec settings in originate via call file and manager.
17 years ago
Olle Johansson cc6d4100ad Doxygen formatting change only
17 years ago
Russell Bryant 9eb8e7d665 Lock the channel around datastore access
17 years ago
Steve Murphy c0b8f57b9d (closes issue #12467)
17 years ago
Steve Murphy 2427603eaf Merged revisions 111341 via svnmerge from
17 years ago
Steve Murphy 4e29ae8806 Merged revisions 109309 via svnmerge from
17 years ago
Tilghman Lesher bdad3c9889 (closes issue #6019)
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 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