aboutsummaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2009-09-10Reinstate muted that was removed by mistake. oej1-1/+1
muted doesn't compile any more on os/x, so I have to disable it in order to testcompile other code... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@217735 f38db490-d61c-443f-a65b-d21fe96a405b
2009-09-10Remove harmful code that causes endless loops. oej1-1/+1
Remove code that causes loops in registrations. We have agreed that the patch that this code was part of was bad. I am ripping out the code that causes the issue. putnopvut needs to check the rest of the patch, if it needs to be changed as well. This solves the issue reported in #15540, but needs more work before we close it (as described above). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@217668 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10AST-2009-005tilghman2-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@211528 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-01Minor changes inspired by testing with latest GCC.kpfleming1-1/+1
The latest GCC (what will become 4.5.x) has a few new warnings, that in these cases found some either downright buggy code, or at least seriously poorly designed code that could be improved. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@209759 f38db490-d61c-443f-a65b-d21fe96a405b
2009-07-21Ensure that user-provided CFLAGS and LDFLAGS are honored.kpfleming1-7/+7
This commit changes the build system so that user-provided flags (in ASTCFLAGS and ASTLDFLAGS) are supplied to the compiler/linker *after* all flags provided by the build system itself, so that the user can effectively override the build system's flags if desired. In addition, ASTCFLAGS and ASTLDFLAGS can now be provided *either* in the environment before running 'make', or as variable assignments on the 'make' command line. As a result, the use of COPTS and LDOPTS is no longer necessary, so they are no longer documented, but are still supported so as not to break existing build systems that supply them when building Asterisk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@207647 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-21Remove daemon call on systems that do not support forking.dbailey1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@189664 f38db490-d61c-443f-a65b-d21fe96a405b
2009-04-09Add debugging mode for diagnosing file descriptor leaks.tilghman1-1/+1
(Related to issue #14625) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@187300 f38db490-d61c-443f-a65b-d21fe96a405b
2009-03-03These changes allow AEL to better check ${} constructs within $[...], that ↵murf2-8/+17
are concatenated with text. I modified and added rules in ast_expr2.fl to better handle the concatenations. I added some default routines to ast_expr2.y so the standalone would compile. It also looks like I haven't run this thru bison since 2.1, so it's good to get this updated. The Makefile has comments added now for check_expr2 and check_expr to explain what they are for, and how to run them. The testexpr2s stuff has been removed, in favor of check_expr2. expr2.testinput has been updated to include the two expressions that inspired these changes (from mcnobody on #asterisk this morning) The regression has been run and all looks well. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@179807 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-06Backport OS X fix from trunktilghman1-0/+2
(AGAIN, closes issue #14360) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@173900 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05kill a warningdhubbard1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@161354 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-29update dev-mode compiler flags to match the ones used by default on Ubuntu ↵kpfleming3-9/+9
Intrepid, so all developers will see the same warnings and errors since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them format attributes in a consistent way git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159808 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26simplify (and slightly bug-fix) the recent developer-oriented COMPILE_DOUBLE ↵kpfleming1-1/+1
mode add channels/busy.h and channels/ringtone.h to the repository instead of generating them repeatedtly; most users do not change the settings to build them, but the Makefile rules are still there if they wish to do so ensure that 'make clean' removes dependency files for .i files that are created in COMPILE_DOUBLE mode git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@159476 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-01fix a bunch of potential problems found by gcc 4.3.x, primarily bare strings ↵kpfleming5-112/+185
being passed to printf()-like functions and ignored results from read()/write() and friends git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@153337 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-27fix some minor issues with rev 144924kpfleming2-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@144925 f38db490-d61c-443f-a65b-d21fe96a405b
2008-09-27improve header inclusion process in a few small ways:kpfleming2-24/+6
- it is no longer necessary to forcibly include asterisk/autoconfig.h; every module already includes asterisk.h as its first header (even before system headers), which serves the same purpose - astmm.h is now included by asterisk.h when needed, instead of being forced by the Makefile; this means external modules will build properly against installed headers with MALLOC_DEBUG enabled - simplify the usage of some of these headers in the AEL-related stuff in the utils directory git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@144924 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-11fix up various compiler warnings found with gcc-4.3:kpfleming1-2/+2
- the output of flex includes a static function called 'input' that is not used, so for the moment we'll stop having the compiler tell us about unused variables in the flex source files (a better fix would be to improve our flex post-processing to remove the unused function) - main/stdtime/localtime.c makes assumptions about signed integer overflow, and gcc-4.3's improved optimizer tries to take advantage of handling potential overflow conditions at compile time; for now, suppress these optimizations until we can fiure out if the code needs improvement - main/udptl.c has some references to uninitialized variables; in one case there was no bug, but in the other it was certainly possibly for unexpected behavior to occur - main/editline/readline.c had an unused variable git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@107352 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-04Cross-platform fix: OS X now deprecates the use of the daemon(3) API.tilghman1-1/+7
(closes issue #11908) Reported by: oej Patches: 20080204__bug11908.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@102323 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29clean up (and ignore) assembler and preprocessor intermediate files if any ↵kpfleming1-1/+1
are created during the build git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87463 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-26closes issue #11086 where a user complains that references to following ↵murf1-0/+16
contexts report a problem; The problem was REALLy that he was referring to empty contexts, which were being ignored. Reporter stated that empty contexts should be OK. I checked it out against extensions.conf, and sure enough, empty contexts ARE ok. So, I removed the restriction from AEL. This, though, highlighted a problem with multiple contexts of the same name. This should be OK, also. So, I added the extend keyword to AEL, and it can preceed the 'context' keyword (mixed with 'abstract', if nec.). This will turn off the warnings in AEL if the same context name is used 2 or more times. Also, I now call ast_context_find_or_create for contexts now, instead of just ast_context_create; I did this because pbx_config does this. The 'extend' keyword thus becomes a statement of intent. AEL can now duplicate the behavior of pbx_config, git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@87168 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set ofrussell1-5/+5
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24Tweak the formatting of this MODULEINFO block. I think this would have causedrussell1-2/+2
a "*" to get in the menuselect-tree file. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80722 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-24This change addresses JerJer's complaint that aelparse builds and installs ↵murf1-0/+4
even if pbx_ael is unchecked in the menuselect stuff. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80717 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-13This patch fixes bug 10411. I added a new regression test, some regression ↵murf1-0/+11
test cleanups git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@79255 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Add some fixes for building on Solaris.file1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-11further reversion of previously applied floating point stuff for expr2murf1-4/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74628 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02support for floating point numbers added to ast_expr2 $\[...\] exprs. Fixes ↵murf1-0/+4
bug 9508, where the expr code fails with fp numbers. The MATH function returns fp numbers by default, so this fix is considered necessary. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72933 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-22The stuff in utils was compiling with -O6 even if DONT_OPTIMIZE is set in ↵murf1-0/+2
menuconfig. Added the include to fix that git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59145 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-02I almost had comma escapes right, but 9184 points out the problem-- the ↵murf1-0/+34
escape is removed by pbx_config, and pbx_ael should also, before sending it down into the pbx engine. Also, you have to insert it back in, if you are generating extensions.conf code from the AEL. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57426 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-24Merged revisions 52002 via svnmerge from murf2-61/+93
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r52002 | murf | 2007-01-24 10:43:50 -0700 (Wed, 24 Jan 2007) | 1 line updated check_expr via 8322 (refactoring of expression checking impl); elfring contributed a nice code reorg, I contributed some time to get it working again, better messages ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@52052 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most ↵kpfleming1-1/+7
cases git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49676 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28removed <err.h> as in trunk from the ael stuff. Also, threw in a minor fix ↵murf1-3/+0
to frame.c to avoid build-killing compiler warnings. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49020 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18remove some now-unnecessary explicit includes of autoconfig.hkpfleming3-6/+0
clean up per-file dependencies during 'make clean' git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48554 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16simplify dependency tracking system, using the compiler's built-in method ↵kpfleming1-12/+5
for generating them, and only doing dependency tracking if developer mode is enabled via the configure script git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48525 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-08I occasionally get email from users that are trying to figure out what thisrussell1-8/+26
does, or due to some misunderstanding as to what it is supposed to do, can't get it to work. So, I have added some text here to hopefully explain what this application does and does not do. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47331 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-28Don't build muted on OpenBSD, it is not supported.file1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46377 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24In muted.c, check the return value of strdup. In ael_main.c, check the returnrussell2-9/+23
value of calloc. (issue #8157) In passing fix a few minor bugs in ael_main.c. The last argument to strncpy() was a hard-coded 100, where it should have been 99. I changed this to use sizeof() - 1. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46067 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05Hang on a minute, the install process sticks muted.conf in /etc/asterisk, so ↵murf1-1/+1
that's where muted should look for it, right\? git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44465 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05this change was correct, the old version is no longer neededkpfleming1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44436 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04as far as i can tell astman only uses newt...rizzo1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44409 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29fix a few build system bugs, and convert Makefiles to be compatible with GNU ↵kpfleming1-18/+33
make 3.80 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44055 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29don't abuse CFLAGS and LDFLAGS for build of Asterisk components, because ↵kpfleming1-5/+5
they are also then used for non-Asterisk components (like menuselect); use our own variables instead git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19be a little more consistent with our variable usageqwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43257 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18Change the includes to work on FreeBSDqwell2-3/+4
Linux has sys/soundcard.h, which does a #include <linux/soundcard.h> git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43240 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-15Many Solaris fixes - this moves some of the stuff from utils.c to strcompat.cqwell1-3/+5
Every OS uses strcompat now - this was done on purpose. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42982 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-09more makefile tweaks to keep targets from being run when they don't need to bekpfleming1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42505 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-29suppress compiler warningrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41271 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-28My apologies, I missed the compiler warning in a previous commit for the ↵murf1-1/+1
ael_main.c; I've fixed this. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41230 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26GNU make already knows how to quietly ignore non-existent files in 'include' ↵kpfleming1-3/+1
directives git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-25Changes to fix all problems reported in 7804 are included here.murf2-5/+24
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41150 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-22Another compile time warning bites the dustfile1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40820 f38db490-d61c-443f-a65b-d21fe96a405b