Commit Graph

399 Commits (master)

Author SHA1 Message Date
Walter Doekes b84c0aabd4 Fix -Werror=unused-but-set-variable compile error in utils/extconf.c.
13 years ago
Matthew Jordan 9057aa20b6 Backed out core changes from r346391
14 years ago
Tilghman Lesher b63c61953b Fix compilation of utilities (caught by Bamboo).
14 years ago
Jonathan Rose e77f1a6ae1 Some additional module documentation changes for 10 for the menuselect change.
14 years ago
Terry Wilson 6708ee76a0 Merged revisions 340219-340220 via svnmerge from
14 years ago
Jason Parker a6c29b931e Merged revisions 338228 via svnmerge from
14 years ago
Tilghman Lesher 318f0f5514 Merged revisions 332369 via svnmerge from
14 years ago
Leif Madsen a525edea59 Merged revisions 328247 via svnmerge from
14 years ago
Terry Wilson f0c8b18c18 Use older functions out of deference to older distros
14 years ago
Terry Wilson efd040cd11 Replace Berkeley DB with SQLite 3
14 years ago
Paul Belanger ed3a4856aa Revert changes to extconf.c
14 years ago
Paul Belanger 3556e4c2d4 Replace ast_log(LOG_DEBUG, ...) with ast_debug()
14 years ago
Tilghman Lesher b98e47d119 Merged revisions 298960 via svnmerge from
15 years ago
Tilghman Lesher 5656e5020f Merged revisions 297821 via svnmerge from
15 years ago
Tzafrir Cohen 4a8fdd6aa1 Support for GNU/kFreeBSD
15 years ago
Tilghman Lesher 5d313f51b9 Merged revisions 269635 via svnmerge from
15 years ago
Tilghman Lesher 8872926df7 Fix trunk build on Mac OS X.
15 years ago
Russell Bryant 84e150f1bb Fix a build error on mac.
15 years ago
Tilghman Lesher fb80119b87 Merged revisions 266142 via svnmerge from
15 years ago
Jason Parker b65e2b6f98 Add another random function that does nothing to make the utils/ dir happy.
15 years ago
Jason Parker 81ec31afbb Make utils/ stuff *actually* compile this time.
15 years ago
Jason Parker 6915f50dd3 Let utils/ dir compile when DEBUG_THREADS is not enabled.
15 years ago
Jason Parker 6c693bc2b1 Merged revisions 254800 via svnmerge from
15 years ago
Russell Bryant 4acc1689c1 Merged revisions 252766 via svnmerge from
15 years ago
Tilghman Lesher 94fd355eff Instead of just automatically filtering out in the Makefile, give an indication of dependencies in menuselect.
15 years ago
Tilghman Lesher 304750c212 Oops, missed an include
15 years ago
Tilghman Lesher 8037982fa6 The previous attempt at using a pipe to guarantee astcanary shutdown did not work.
15 years ago
Jeff Peeler 7283d2b59b One more LOW_MEMORY compile fix.
16 years ago
Sean Bright 117d3fd910 Add the programs in utils/ to menuselect.
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
Kevin P. Fleming 96e4e31eeb Merged revisions 207647 via svnmerge from
16 years ago
Sean Bright e75ae63ac2 Fix a few compilation problems found when building Asterisk against uClibc.
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
Doug Bailey cf95f3a118 Merged revisions 189664 via svnmerge from
16 years ago
Tilghman Lesher c5719a495c Application delimiter is ',', not '|'.
16 years ago
Tilghman Lesher 8f28bfc63e Merged revisions 187300-187301 via svnmerge from
16 years ago
Russell Bryant 08f561f196 Fix build issues on Mac OSX.
16 years ago
Jeff Peeler 58cf8b69da Fix malloc debug macros to work properly with h323.
16 years ago
Steve Murphy ceea9b1dce My bad! left check_expr2 in the ALL_UTILS list by mistake. Already done to 1.6.x
16 years ago
Steve Murphy f47b03877b Merged revisions 179807 via svnmerge from
16 years ago
Tilghman Lesher 97830cc9cb Use a SIGPIPE to kill the process, instead of depending upon the astcanary process being inherited by init.
16 years ago
Tilghman Lesher bb2b9b1ff4 Cause astcanary to exit if Asterisk exits abnormally and doesn't kill astcanary.
16 years ago
Steve Murphy d6d524741a This patch corrects a segfault reported in 14289,
16 years ago
Steve Murphy 834782960b This patch is here committed to satisfy the
17 years ago
Steve Murphy 1a37ee4025 A possibly "horrible fix" for a "horribly broken"
17 years ago
Tilghman Lesher 27cbfc1bd5 Add timezone to the possible fields in a timespec.
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Sean Bright 0b1df98c19 Pay attention to the return value of system(), even if we basically ignore it.
17 years ago
Kevin P. Fleming 887e28d7aa incorporates r159808 from branches/1.4:
17 years ago
Kevin P. Fleming 63b031c471 Merged revisions 159476 via svnmerge from
17 years ago
Sean Bright fd8caa1778 This is basically a complete rollback of r155401, as it was determined that
17 years ago
Sean Bright 30d1744ffc Add ability to pass arbitrary data to the ao2_callback_fn (called from
17 years ago
Kevin P. Fleming c054d798b8 don't blindly assume that Darwin and Cygwin need GLOB_ABORTED defined; only define it if it is not already defined
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
Kevin P. Fleming 10d36d9f34 fix a few small things found by using sparse
17 years ago
Steve Murphy e235a07376 (closes issue #13557)
17 years ago
Sean Bright 24c127ac19 When echoing our copies, strip off ASTTOPDIR from the front of the source file.
17 years ago
Sean Bright 690f97870c Make NOISY_BUILD work for the calls to cp in utils/Makefile
17 years ago
Sean Bright f8f25ff595 Quote arguments to cp so we can handle spaces in our paths.
17 years ago
Russell Bryant f6e73e8661 Make this build on my mac.
17 years ago
Kevin P. Fleming d0dd58548f remove incorrect comment
17 years ago
Kevin P. Fleming fa2f4776a2 fix bugs caused by r144949 when MALLOC_DEBUG is defined
17 years ago
Kevin P. Fleming 629861a705 Merged revisions 144924-144925 via svnmerge from
17 years ago
Steve Murphy 9022df9b66 Matt suggests we remove utils/build-extensions-conf.lua, as per bug 12961, it is no longer necessary.
17 years ago
Mark Michelson 5dfefa5ee6 Merged revisions 140488 via svnmerge from
17 years ago
Steve Murphy d78f79d82c Oops. put a decl in a generated file. My bad, but fixed now.
17 years ago
Sean Bright 6305009cfc More merges from resolve-shadow warnings:
17 years ago
Tilghman Lesher 9cd11917c5 Fix trunk breakage
17 years ago
Brett Bryant 5b7933fe5e Janitor patch to change uses of sizeof to ARRAY_LEN
17 years ago
Mark Michelson 556664b79d Remove an unneeded target from the Makefile
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 51051ce949 Add lock tracking for rwlocks. Previously, lock.h only had the ability to
17 years ago
Sean Bright 9a535bd115 Avoid build warning when execinfo.h isn't available.
17 years ago
Russell Bryant 8fa6eaba67 Fix a linkage error related to the lock backtrace support
17 years ago
Mark Michelson 975a848b67 A new feature thanks to the fine folks at Switchvox!
17 years ago
Mark Michelson 1b8f183ca3 This change makes it so that logs will report the correct source of verbose messages.
17 years ago
Steve Murphy 6d16c8915e These changes were made via the comments atis_work made at 4:30am (Mountain Time zone- US)
17 years ago
Tilghman Lesher edc0591ad5 Add a set of text to the file astcanary uses to communicate back the main
17 years ago
Mark Michelson 55310cc855 Get refcounter to build with LOW_MEMORY defined
17 years ago
Steve Murphy 6138b16995 Introducing various astobj2 enhancements, chief being a refcount tracing feature, and various documentation updates in astobj2.h, and the addition of standalone utility, refcounter, that will filter the trace output for unbalanced, unfreed objects. This comes from the team/murf/bug11210 branch.
17 years ago
Mark Michelson 115d5024a1 Merged revisions 114051 via svnmerge from
17 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
17 years ago
Steve Murphy 4e29ae8806 Merged revisions 109309 via svnmerge from
17 years ago
Kevin P. Fleming 79c3038ee5 Merged revisions 107352 via svnmerge from
17 years ago
Steve Murphy 377e51c4d4 (closes issue #6002)
17 years ago
Tilghman Lesher 8718878490 Merged revisions 106552 via svnmerge from
17 years ago
Russell Bryant 7da06e6cb8 Merged revisions 105116 via svnmerge from
17 years ago
Tilghman Lesher f696089089 open(2) needs a mode argument when O_CREAT is specified.
17 years ago
Tilghman Lesher a8e821d061 Ignore some more unused generated events.
17 years ago
Tilghman Lesher 32a758d944 Remove extraneous copy
17 years ago
Tilghman Lesher 1dc86caf30 Merged revisions 102323 via svnmerge from
17 years ago
Steve Murphy 71ad27409c The fixes in this commit are mainly to allow compiling of trunk with --enable-dev-mode, mutex profiling, lock debugging, etc. Mainly, the version.c needs to be in the OBJS line; asterisk.h was chosen to have the prototypes for ast_get_version, ast_get_version_num; and the ASTERISK_FILE_VERSION macro needs to be used after including asterisk.h in a few files. I hope I did the right thing. If not, let me know.
18 years ago
Joshua Colp 9c0c82d0d0 Make ast_atomic_fetchadd_int_slow magically appear in extconf.
18 years ago
Luigi Rizzo 5e24835995 modify http://svn.digium.com/view/asterisk?view=rev&rev=93603
18 years ago
Tilghman Lesher 53436f42f4 Add a canary process, for high priority mode (asterisk -p) to ensure that if
18 years ago
Luigi Rizzo 10f70a8321 make configuration variable const so they are not accidentally
18 years ago
Luigi Rizzo fd88390af7 remove unnecessary (char *) casts for ast_config_AST_* variables.
18 years ago
Joshua Colp d7125b74c9 Add ast_atomic_fetchadd_int_slow to check_expr for platforms that need it.
18 years ago
Luigi Rizzo 9e4ebbee87 remove relative paths and use ASTTOPDIR instead.
18 years ago
Luigi Rizzo ff8134d30f simplify this file
18 years ago
Luigi Rizzo 15d5e144b1 add hashtab.c to the list of files deleted
18 years ago
Luigi Rizzo d652be0930 normalize subdirs' Makefile by using ASTTOPDIR and not .. to reference
18 years ago
Luigi Rizzo 3fbcdac589 normalize header order, and add a comment on the need
18 years ago
Russell Bryant 248dac6e73 Fix the build of astman. Any file that includes any asterisk sub-headers
18 years ago
Kevin P. Fleming 93615ecc22 let's try this again... *all* compilation and linking in Asterisk should be done using the standard compilation rules, not manually created ones. changing hashtest.c to use these rules caused the compiler to notice a large number of coding guidelines violations, so those are fixed too.
18 years ago
Steve Murphy 4c992507f4 closes issue #11341; made changes to make utils again right with the MTX_PROFILE world.
18 years ago
Luigi Rizzo 6dfc36b639 enable support for stack backtrace for stuff built in utils/
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 04e1e0069f more header removal/normalization
18 years ago
Luigi Rizzo b693c30a66 move the declaration of struct ast_channel ast_frame and ast_module
18 years ago
Luigi Rizzo 7cd78079ae more cygwin/mingw32 compatibility fixes
18 years ago
Luigi Rizzo 91475fd3dc add a return NULL to a function that is expected to return a value
18 years ago
Luigi Rizzo d82a631f9c more removal of duplicate #include lines
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
Steve Murphy f033e50a15 Don't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.
18 years ago
Kevin P. Fleming c7773aa206 (closes issue #11221)
18 years ago
Joshua Colp 098728eb64 Fix building on FreeBSD by including/not including some headers.
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
Luigi Rizzo 1c55f8424e Move AUDIO_LIBS outside the top level Makefile. This too is used only
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 cac97aa8b4 Remove another copied source file on "make clean".
18 years ago
Kevin P. Fleming 6ab27c871a UGH... while trying to fix #10995, I found all kinds of cruft in this Makefile. It should all be gone now, and as a side effect hashtest2 now builds with --enable-dev-mode enabled without a host of errors
18 years ago
Kevin P. Fleming a4b8ca220d clean up assembler and preprocessor files if they are here too
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Steve Murphy a69abc0179 and then, I noticed the clicompat stuff.
18 years ago
Steve Murphy e5fa15d812 more stub routines to allow linkage in stand-alone environment, with thread debugs turned on
18 years ago
Steve Murphy 65786f15fa more stub routines to allow linkage in stand-alone environment, with thread debugs turned on
18 years ago
Tilghman Lesher 7adbd6bb16 Remove redundant includes (patch by snuffy) (Closes issue #10922)
18 years ago
Joshua Colp 648f67d4c8 Fix up tree so that it compiles when MTX Profiling is enabled.
18 years ago
Steve Murphy 0d2ee300e7 OK. THis a DEBUG_THREADS situation.
18 years ago
Steve Murphy e8c8bb4a14 picky gcc versions... sigh.
18 years ago
Steve Murphy db26685460 This mod will allow check_expr to compile in the presence of DEBUG_THREAD situations. At least, it does for me. And it's less expensive than several other approaches I tried.
18 years ago
Russell Bryant 437b439c61 Add some files to the utils directory svn:ignore and Makefile clean target
18 years ago
Tilghman Lesher 1b949d24c0 Fix build of check_expr and hashtest2 when DEBUG_THREADLOCAL is defined
18 years ago
Russell Bryant 9f64905d4e Merged revisions 83432 via svnmerge from
18 years ago
Russell Bryant 99fb378cdc Change the traversal to use ao2_callback() instead of an ao2_iterator. Using
18 years ago
Steve Murphy c88e216a14 This solves an unreported solaris compile problem (missing -lnsl -lsocket).
18 years ago
Steve Murphy 26d739ff5b fixing up the pthread stuff for hashtest2
18 years ago
Joshua Colp 56a31d1d20 Include string compatibility file in hashtest2.
18 years ago
Joshua Colp c81d14226a Include compat.h to hopefully make it compatible with FreeBSD.
18 years ago
Joshua Colp 219470dc43 Fix building under FreeBSD. Make sure alloca.h exists before including it.
18 years ago
Steve Murphy c4133cc03f Committing my test for astobj2, hashtest2.c, along with makefile changes in utils.
18 years ago
Steve Murphy b5cd67adc3 This code was in team/murf/bug8684-trunk; it should fix bug 8684 in trunk. I didn't add it to 1.4 yet, because it's not entirely clear to me if this is a bug fix or an enhancement. A lot of files were affected by small changes like ast_variable_new getting an added arg, for the file name the var was defined in; ast_category_new gets added args of filename and lineno; ast_category and ast_variable structures now record file and lineno for each entry; a list of all #include and #execs in a config file (or any of its inclusions are now kept in the ast_config struct; at save time, each entry is put back into its proper file of origin, in order. #include and #exec directives are folded in properly. Headers indicating that the file was generated, are generated also for each included file. Some changes to main/manager.c to take care of file renaming, via the UpdateConfig command. Multiple inclusions of the same file are handled by exploding these into multiple include files, uniquely named. There's probably more, but I can't remember it right now.
18 years ago
Steve Murphy 088d7ef8bc fix up the MODULEINFO in conf2ael.c as well
18 years ago
Russell Bryant 6814e7b77e Merged revisions 80722 via svnmerge from
18 years ago