Commit Graph

1447 Commits (f483cf28bbde151d07a1e14dd885b5c63e137a33)

Author SHA1 Message Date
Luigi Rizzo 89c2e53eb0 formatting cleanup
19 years ago
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
19 years ago
Luigi Rizzo ea2c54859d more removal of redundant headers
19 years ago
Luigi Rizzo 730e4eaca4 implement the split of file.h and mod_format.h
19 years ago
Luigi Rizzo 8ad9122aa8 Add a specific header for providers of file and format handling routines,
19 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
19 years ago
Luigi Rizzo 2ff174e62e add check for video4linux
19 years ago
Luigi Rizzo b4ab6b5652 X11 checks (at least some - for other platforms with
19 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
19 years ago
Luigi Rizzo 915b97d300 move internal function declarations to include/asterisk/_private.h
19 years ago
Kevin P. Fleming 4d522da4aa switch compile-time option checking to string storage mode in this branch too
19 years ago
Russell Bryant 3cda8388b9 Be a bit more pedantic about the type for holding the md5 sum for the build options.
19 years ago
Luigi Rizzo b693c30a66 move the declaration of struct ast_channel ast_frame and ast_module
19 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
19 years ago
Luigi Rizzo 9175f79aff revert inclusion of options.h
19 years ago
Joshua Colp d447eb052c Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.
19 years ago
Joshua Colp fa1f321ffc Revert last commit, apparently buildbot lied to me.
19 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.
19 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 "
19 years ago
Luigi Rizzo 9f7fdc983f if alloca.h is not present, try malloc.h
19 years ago
Luigi Rizzo a4f9397028 prefer socket.h over other variants (winsock etc.)
19 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
19 years ago
Luigi Rizzo 616189c6ec wrapper for all generic network headers that have different names
19 years ago
Luigi Rizzo a45c53bc5b use autoconf results to conditionally compile timersub
19 years ago
Luigi Rizzo f728d220df compatibility fixes for cygwin
19 years ago
Luigi Rizzo 813fe77801 some version of flex produce code that wants __STDC_VERSION__
19 years ago
Luigi Rizzo 59efa92285 timersub is a macro not a function, so write the check in a way
19 years ago
Russell Bryant 505499588b Update the configure script check for sys/poll.h to also provide the result in
19 years ago
Luigi Rizzo aeba4fef65 add detection for timersub() and winsock.h/winsock2.h
19 years ago
Luigi Rizzo 882f5a69fa provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.
19 years ago
Luigi Rizzo 5862c55451 use poll as detected by configure
19 years ago
Luigi Rizzo 732c1d30c3 acinclude.m4: add a function to help checking sdl-config, gtk-config
19 years ago
Luigi Rizzo d209cb090e add check for the presence of glob
19 years ago
Luigi Rizzo 7b523bf896 paths are already in include/asterisk/paths.h so don't duplicate
19 years ago
Luigi Rizzo 1f6dcae007 whitespace only change - adjust indentation and add some
19 years ago
Luigi Rizzo 89ffa642a1 logger.h does not need options.h
19 years ago
Luigi Rizzo 4afe3b5ba9 remove redundant #include "asterisk/compat.h",
19 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
19 years ago
Kevin P. Fleming 547306835e Merged revisions 89325 via svnmerge from
19 years ago
Luigi Rizzo 02733f3290 add a small new function to retrieve variables from a config
19 years ago
Tilghman Lesher 8309f54e39 If we're going to be passing a negative value for the size of a stringfield,
19 years ago
Luigi Rizzo 09d9cce1d8 access channel locks through ast_channel_lock/unlock/trylock and not
19 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
19 years ago
Russell Bryant d3414c7552 Fix up various coding guidelines issues ...
19 years ago
Russell Bryant 9eff81dad9 This fixes a build error on my mac. It also works on my linux box. Let me
19 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
19 years ago
Steve Murphy db1000b803 Thanks to snuffy for this doxygen update to hashtab.h; closes issue #11223
19 years ago
Steve Murphy fd1fbb0223 Thanks to snuff-work, who brought up that these fixes might need to be made.
19 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.
19 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
19 years ago
Russell Bryant 4afb905cf0 Print out the channel name as a prefix to the "agi debug" output. This makes
19 years ago
Tilghman Lesher 7c56918262 Commit some cleanups to the format type code.
19 years ago
Tilghman Lesher 3c9bc8827b Merged revisions 89045 via svnmerge from
19 years ago
Olle Johansson 6519abeffc Additional TDD changes (preparing for SIP changes - adding TDD support to SIP)
19 years ago
Jason Parker 2c582c7cfb Allow gtalk and jingle to use TLS connections again.
19 years ago
Tilghman Lesher 32701f5031 Set up detection of IP_PKTINFO in autoconf for chan_unistim
19 years ago
Russell Bryant 9bfd82cec2 Merged revisions 88805 via svnmerge from
19 years ago
Russell Bryant ed6e62a8e5 Merged revisions 88931 via svnmerge from
19 years ago
Kevin P. Fleming 1c96946877 Merged revisions 88862 via svnmerge from
19 years ago
Russell Bryant aecb21e822 Merged revisions 88719 via svnmerge from
19 years ago
Luigi Rizzo 08b10da53b Simplify the implementation and the API for stringfields;
19 years ago
Tilghman Lesher e8c781b215 Add pbx_lua as a method of doing extensions
19 years ago
Tilghman Lesher ce90623010 Merged revisions 88210 via svnmerge from
19 years ago
Jason Parker 2902601eea Remove traces of gnutls, since we no longer use/need it.
19 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.
19 years ago
Jason Parker 5a58a4c475 Switch res_jabber to use openssl rather than gnutls.
19 years ago
Joshua Colp 2b33aca04c Remove old whisper remnants from channel.h
19 years ago
Tilghman Lesher 59ca511408 Merged revisions 87739 via svnmerge from
19 years ago
Russell Bryant f7782d60d1 Merged revisions 87396 via svnmerge from
19 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.
19 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
19 years ago
Tilghman Lesher 446a6cdc94 Use the same delimited character as the FILTER function in FIELDQTY and CUT.
19 years ago
Kevin P. Fleming c6a8d45f43 Merged revisions 87069 via svnmerge from
19 years ago
Russell Bryant 8bf796ec10 Merged revisions 86836 via svnmerge from
19 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
19 years ago
Russell Bryant 3b92c7b262 Merged revisions 86726 via svnmerge from
19 years ago
Russell Bryant 56879bf978 Merged revisions 85532 via svnmerge from
19 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
19 years ago
Russell Bryant 155aaf947f Merged revisions 86330 via svnmerge from
19 years ago
Russell Bryant dbdbdb7f43 Merged revisions 85997 via svnmerge from
19 years ago
Russell Bryant 5007769d4e Merged revisions 85994 via svnmerge from
19 years ago
Russell Bryant a4d915608b Merged revisions 85561 via svnmerge from
19 years ago
Russell Bryant eec3f78368 Merged revisions 85533 via svnmerge from
19 years ago
Russell Bryant a6507769ca Merged revisions 85316 via svnmerge from
19 years ago
Kevin P. Fleming cf12ac90b3 Merged revisions 85195 via svnmerge from
19 years ago
Tilghman Lesher e9221b062e Merged revisions 85158 via svnmerge from
19 years ago
Philippe Sultan 510430a6a2 Make the status and priority configurable.
19 years ago
Tilghman Lesher c2f7cc4bd4 Create a universal exception handling extension, "e" (closes issue #9785)
19 years ago
Russell Bryant 9334e72e76 Merged revisions 84271 via svnmerge from
19 years ago
Russell Bryant 1f3f7215d8 Merged revisions 84206 via svnmerge from
19 years ago
Russell Bryant 019c07e63e Merged revisions 84146 via svnmerge from
19 years ago
Dwayne M. Hubbard bd5b6cea68 Merged revisions 84018 via svnmerge from
19 years ago
Russell Bryant f04b586267 fix a typo in a comment
19 years ago
Russell Bryant 6e8997fe3c Change function documentation to use doxygen tags. (Really, I just needed
19 years ago
Russell Bryant b6abd3c659 Don't note that functions are deprecated in favor of themselves. This was
19 years ago
Philippe Sultan 3a5f263bf0 Comply with latest XEP-0166, XEP-0167, XEP-0176.
19 years ago
Tilghman Lesher 48f56ba8b4 Fixes for FreeBSD... testing for every conceivable math function now
19 years ago
Russell Bryant 9f64905d4e Merged revisions 83432 via svnmerge from
19 years ago
Tilghman Lesher 78a94595f6 Check for the presence of trunc and round, and make the ISOC99 detection a little more sane (closes issue #10776)
19 years ago
Philippe Sultan dc9dc75379 Transmit proper invitation, thus conforming to XEP-0166 (Jingle general
19 years ago