Commit Graph

1472 Commits (c25ffdd2612cf9ee10da0d3d09eb58e0882d113d)

Author SHA1 Message Date
Joshua Colp 46d2c050c5 Merged revisions 90548 via svnmerge from
18 years ago
Mark Michelson 6b08c442c7 Adding support for the "automixmonitor" dial and queue options.
18 years ago
Russell Bryant fac7480820 Merged revisions 90348 via svnmerge from
18 years ago
Russell Bryant 45f98e5419 Merged revisions 90310 via svnmerge from
18 years ago
Tilghman Lesher afac5cce50 Merged revisions 90155 via svnmerge from
18 years ago
Tilghman Lesher 4807fe0f0d Fix build of trunk
18 years ago
Russell Bryant 53a5f22849 Merged revisions 90145 via svnmerge from
18 years ago
Russell Bryant 8a3e984b0c Merged revisions 90142 via svnmerge from
18 years ago
Russell Bryant 68f8257484 Merge another small doxygen change from team/russell/chan_refcount to indicate
18 years ago
Russell Bryant 1d52125cbb Merge some channel.h doxygen updates from team/russell/chan_refcount
18 years ago
Jason Parker aa0f63d65f Remove "old"-style CLI handler, since nothing uses it anymore.
18 years ago
Russell Bryant 880fb1ece9 Merged revisions 89893 via svnmerge from
18 years ago
Russell Bryant 1dc9fa5231 Document that the channel is not locked when the send_digit_begin and end
18 years ago
Olle Johansson a30972ee65 More "moremanager" fixes. Manager commands to check module status.
18 years ago
Olle Johansson 4bf40290ae More "moremanager" changes - doxygen docs and changing manager version (finally)
18 years ago
Olle Johansson df7ba90b20 The following patch with updates for trunk. Works much better in trunk.
18 years ago
Jason Parker 35ecd08b46 Add an S_COR macro, which is similar to the existing S_OR macro,
18 years ago
Steve Murphy 4d8932a6dc Merged revisions 89622 via svnmerge from
18 years ago
Olle Johansson d4863bb0f0 Start using Doxygen groupings to group variables and defines.
18 years ago
Olle Johansson 595961655a Try to get channel.h and channel.c aligned in regards to ast_set_callerid as well
18 years ago
Tilghman Lesher f1de129e5f Merged revisions 89559 via svnmerge from
18 years ago
Olle Johansson 77e15c9b2f Housekeeping...
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
Olle Johansson 38c8755e9a Let's start with implementing the base architecture for UTF8 caller ID's
18 years ago
Luigi Rizzo 2b93af99dc formatting cleanup on the header,
18 years ago
Luigi Rizzo 89c2e53eb0 formatting cleanup
18 years ago
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
18 years ago
Luigi Rizzo ea2c54859d more removal of redundant headers
18 years ago
Luigi Rizzo 730e4eaca4 implement the split of file.h and mod_format.h
18 years ago
Luigi Rizzo 8ad9122aa8 Add a specific header for providers of file and format handling routines,
18 years ago
Kevin P. Fleming 3826d15993 move these forward declarations back to asterisk.h where they belong... even though asterisk.h includes compat.h, these declarations have nothing to do with the being platform-compatible and are directly related to being part of Asterisk
18 years ago
Luigi Rizzo 2ff174e62e add check for video4linux
18 years ago
Luigi Rizzo b4ab6b5652 X11 checks (at least some - for other platforms with
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 915b97d300 move internal function declarations to include/asterisk/_private.h
18 years ago
Kevin P. Fleming 4d522da4aa switch compile-time option checking to string storage mode in this branch too
18 years ago
Russell Bryant 3cda8388b9 Be a bit more pedantic about the type for holding the md5 sum for the build options.
18 years ago
Luigi Rizzo b693c30a66 move the declaration of struct ast_channel ast_frame and ast_module
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Luigi Rizzo 9175f79aff revert inclusion of options.h
18 years ago
Joshua Colp d447eb052c Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.
18 years ago
Joshua Colp fa1f321ffc Revert last commit, apparently buildbot lied to me.
18 years ago
Joshua Colp 5adb2b2b06 Change how we handle alloca to conform with how it is suggested in the autoconf manual for AC_FUNC_ALLOCA. FreeBSD 6 now builds again and no other platforms should be broken by this.
18 years ago
Joshua Colp 42b08b4eb8 Use autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_RECURSIVE_NP. Enclose error message from network.h in "
18 years ago
Luigi Rizzo 9f7fdc983f if alloca.h is not present, try malloc.h
18 years ago
Luigi Rizzo a4f9397028 prefer socket.h over other variants (winsock etc.)
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Luigi Rizzo 616189c6ec wrapper for all generic network headers that have different names
18 years ago
Luigi Rizzo a45c53bc5b use autoconf results to conditionally compile timersub
18 years ago
Luigi Rizzo f728d220df compatibility fixes for cygwin
18 years ago
Luigi Rizzo 813fe77801 some version of flex produce code that wants __STDC_VERSION__
18 years ago
Luigi Rizzo 59efa92285 timersub is a macro not a function, so write the check in a way
18 years ago
Russell Bryant 505499588b Update the configure script check for sys/poll.h to also provide the result in
18 years ago
Luigi Rizzo aeba4fef65 add detection for timersub() and winsock.h/winsock2.h
18 years ago
Luigi Rizzo 882f5a69fa provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.
18 years ago
Luigi Rizzo 5862c55451 use poll as detected by configure
18 years ago
Luigi Rizzo 732c1d30c3 acinclude.m4: add a function to help checking sdl-config, gtk-config
18 years ago
Luigi Rizzo d209cb090e add check for the presence of glob
18 years ago
Luigi Rizzo 7b523bf896 paths are already in include/asterisk/paths.h so don't duplicate
18 years ago
Luigi Rizzo 1f6dcae007 whitespace only change - adjust indentation and add some
18 years ago
Luigi Rizzo 89ffa642a1 logger.h does not need options.h
18 years ago
Luigi Rizzo 4afe3b5ba9 remove redundant #include "asterisk/compat.h",
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Kevin P. Fleming 547306835e Merged revisions 89325 via svnmerge from
18 years ago
Luigi Rizzo 02733f3290 add a small new function to retrieve variables from a config
18 years ago
Tilghman Lesher 8309f54e39 If we're going to be passing a negative value for the size of a stringfield,
18 years ago
Luigi Rizzo 09d9cce1d8 access channel locks through ast_channel_lock/unlock/trylock and not
18 years ago
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 9eff81dad9 This fixes a build error on my mac. It also works on my linux box. Let me
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
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
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
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Russell Bryant 4afb905cf0 Print out the channel name as a prefix to the "agi debug" output. This makes
18 years ago
Tilghman Lesher 7c56918262 Commit some cleanups to the format type code.
18 years ago
Tilghman Lesher 3c9bc8827b Merged revisions 89045 via svnmerge from
18 years ago
Olle Johansson 6519abeffc Additional TDD changes (preparing for SIP changes - adding TDD support to SIP)
18 years ago
Jason Parker 2c582c7cfb Allow gtalk and jingle to use TLS connections again.
18 years ago
Tilghman Lesher 32701f5031 Set up detection of IP_PKTINFO in autoconf for chan_unistim
18 years ago
Russell Bryant 9bfd82cec2 Merged revisions 88805 via svnmerge from
18 years ago
Russell Bryant ed6e62a8e5 Merged revisions 88931 via svnmerge from
18 years ago
Kevin P. Fleming 1c96946877 Merged revisions 88862 via svnmerge from
18 years ago
Russell Bryant aecb21e822 Merged revisions 88719 via svnmerge from
18 years ago
Luigi Rizzo 08b10da53b Simplify the implementation and the API for stringfields;
18 years ago
Tilghman Lesher e8c781b215 Add pbx_lua as a method of doing extensions
18 years ago
Tilghman Lesher ce90623010 Merged revisions 88210 via svnmerge from
18 years ago
Jason Parker 2902601eea Remove traces of gnutls, since we no longer use/need it.
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 5a58a4c475 Switch res_jabber to use openssl rather than gnutls.
18 years ago
Joshua Colp 2b33aca04c Remove old whisper remnants from channel.h
18 years ago
Tilghman Lesher 59ca511408 Merged revisions 87739 via svnmerge from
18 years ago
Russell Bryant f7782d60d1 Merged revisions 87396 via svnmerge from
18 years ago
Joshua Colp c8777404b3 Add autoconf checks for extra suppserv definitions that are not present in releases yet. chan_misdn should now build against the latest release.
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Tilghman Lesher 446a6cdc94 Use the same delimited character as the FILTER function in FIELDQTY and CUT.
18 years ago
Kevin P. Fleming c6a8d45f43 Merged revisions 87069 via svnmerge from
18 years ago
Russell Bryant 8bf796ec10 Merged revisions 86836 via svnmerge from
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