Commit Graph

218 Commits (master)

Author SHA1 Message Date
Luigi Rizzo e2807b69a3 use %p to print a pointer
17 years ago
Michiel van Baak 8e8359465b Older versions of GNU gcc do not allow 'NULL' as sentinel.
17 years ago
Russell Bryant 8b0ea3a76d Do a deep copy of file and function strings to avoid a potential crash when
17 years ago
Brett Bryant 5b8e1963c5 Adds support for changing logger settingss on remote consoles with a
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
Joshua Colp 83e37eaf1c The logger closes the files it is logging to when reloading so we have to read in the logger configuration even if it has not changed so that the logs get opened again.
17 years ago
Tilghman Lesher e82b7365b7 Merged revisions 115333 via svnmerge from
17 years ago
Tilghman Lesher 123ac5fd64 Standardized routines for forking processes (keeps all the specialized code in one place).
17 years ago
Tilghman Lesher ef4eff9a9b Add the "config reload <conffile>" command, which allows you to tell Asterisk
17 years ago
Joshua Colp 760fc3403c Make sure values are interpreted as character strings and not format strings.
17 years ago
Tilghman Lesher cfc1df4c1a Whitespace changes only
17 years ago
Joshua Colp c81350d6f6 Just some minor coding style cleanup...
17 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
17 years ago
Tilghman Lesher 8fd1e10d3d Normalize the detection for execinfo, so that Linux (glibc) and other platforms
17 years ago
Mark Michelson 00d848c94e Adding support for storing the queue log entries in a realtime backend.
18 years ago
Mark Michelson 4f75e15665 After reading Russell's e-mail to the dev list stating that checking option_verbose is not
18 years ago
Tilghman Lesher 99308dfb4e Conversions of free to ast_free, where applicable, and several other formatting fixes.
18 years ago
Olle Johansson 9f1c4887fa Doxygen updates
18 years ago
Olle Johansson 9dc965eadd Merged revisions 91366 via svnmerge from
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
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
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
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
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
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 ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Joshua Colp d19257304e Process outstanding log messages before shutting down the logger thread.
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Tilghman Lesher 43adcde7bf Always force reread of the config when we're rotating the log file (closes issue #10598)
18 years ago
Joshua Colp f4fa5a228a Add some read/write locking magic to make logger reload operate again.
18 years ago
Tilghman Lesher f5a14167f3 Support better rotation of log files to be more like system logging (closes issue #10398)
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Mark Michelson 57d5d489a7 Merged revisions 77380 via svnmerge from
18 years ago
Tilghman Lesher 03c973ab2d Merged revisions 77350 via svnmerge from
18 years ago
Tilghman Lesher 620a5a11e4 Merged revisions 77348 via svnmerge from
18 years ago
Russell Bryant f1f72312bb (closes issue #10192)
18 years ago
Tilghman Lesher 4af3f12b29 Reduce some logging contention by switching several locks over to rwlocks
18 years ago
Tilghman Lesher 81bc1d7af5 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
18 years ago
Joshua Colp 2c52ab7afb Fix -T option. (issue #10073 reported by xylome)
18 years ago
Russell Bryant 80166c6de8 Conversions to ast_debug()
18 years ago
Tilghman Lesher a1bc823136 Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
18 years ago
Kevin P. Fleming 5fdba27ea2 Merged revisions 69392 via svnmerge from
18 years ago
Joshua Colp 6fc5c73f78 Output verbose messages to the normal logger as well. (issue #9476 reported by gdalgliesh)
18 years ago
Tilghman Lesher 058ec10e42 Merged revisions 59078 via svnmerge from
18 years ago
Joshua Colp 746e139e6d Flush out the file pointer. (issue #9115 reported by guthrie)
18 years ago
Joshua Colp 21b53af31d Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
19 years ago
Kevin P. Fleming adca0ff14b Merged revisions 49006 via svnmerge from
19 years ago
Joshua Colp 8e9cdb10fd Merge non-blocking logger from my branch. This should improve things under heavy load with lots of CLI/logging output.
19 years ago
Luigi Rizzo 684e4dc373 debugging shows that we always need more than 128 bytes
19 years ago
Luigi Rizzo 055abfe9d9 simplify the ast_dynamic_str_*.... routines by
19 years ago
Matt O'Gorman b025702287 safe terminal output is sweet.
19 years ago
Luigi Rizzo ce68e30a07 remove many unnecessary casts
19 years ago
Tilghman Lesher 10875731ec Merged revisions 47051 via svnmerge from
19 years ago
Russell Bryant bd53e7ee4c Extend the thread storage API such that a custom initialization function can
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp e5203bb283 Add option to logger to rename log files with timestamp (issue #8020 reported by jmls)
19 years ago
Jason Parker fe1a3b8877 Add optional queue_log_name config option for logger.conf, to change the
19 years ago
Tilghman Lesher 2b55678e1f Remove deprecated CLI apps from the core
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Steve Murphy 11a7e38930 Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago