aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
AgeCommit message (Collapse)AuthorFilesLines
2007-05-11oops.. Fix the logic of the last commit.qwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64013 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-11Better fallback method for autosystemname.qwell1-2/+4
Issue 9713, patch by Juggie with minor mods by me. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@64012 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-11Add autosystemname setting to asterisk.confqwell1-0/+10
When enabled, it will set the systemname to be the hostname of the system Issue 9713, patch by Juggie - slightly modified by me, to "failover" to localhost git-svn-id: http://svn.digium.com/svn/asterisk/trunk@63967 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-30Merged revisions 62369 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r62369 | file | 2007-04-30 11:36:11 -0300 (Mon, 30 Apr 2007) | 10 lines Merged revisions 62368 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r62368 | file | 2007-04-30 11:34:07 -0300 (Mon, 30 Apr 2007) | 2 lines Update copyright notice. It's now the year 2007! ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@62370 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-28Merge changes from team/russell/eventsrussell1-0/+1
This set of changes introduces a new generic event API for use within Asterisk. I am still working on a way for events to be shared between servers, but this part is ready and can already be used inside of Asterisk. This set of changes introduces the first use of the API, as well. I have restructured the way that MWI (message waiting indication) is handled. It is now event based instead of polling based. For example, if there are a bunch of SIP phones subscribed to mailboxes, then chan_sip will not have to constantly poll the mailboxes for changes. app_voicemail will generate events when changes occur. See UPGRADE.txt and CHANGES for some more information on the effects of these changes from the user perspective. For developer information, see the text in include/asterisk/event.h. As always, additional feedback is welcome on the asterisk-dev mailing list. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@62292 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11fixed the '-e' command line option for minmemfree. updated ↵dhubbard1-1/+1
doc/asterisk-conf.tex git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61597 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11changed #if HAVE_SYSINFO to #if defined(HAVE_SYSINFO)dhubbard1-7/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61576 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11added HAVE_SYSINFO preprocessor directives for portability and general happinessdhubbard1-1/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61575 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11added option_minmemfree for use in asterisk.conf to specify the amount of ↵dhubbard1-0/+43
minimum free memory prior to accepting calls. added CLI 'core show sysinfo' to display system information git-svn-id: http://svn.digium.com/svn/asterisk/trunk@61539 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-09Merged revisions 60850 via svnmerge from tilghman1-8/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r60850 | tilghman | 2007-04-08 22:01:12 -0500 (Sun, 08 Apr 2007) | 10 lines Merged revisions 60849 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r60849 | tilghman | 2007-04-08 21:49:06 -0500 (Sun, 08 Apr 2007) | 2 lines Don't check for error when lowering priority (according to the manpage, it should never happen anyway). It might could happen, though, if another thread messed with the priority, so safeguard against that (reported via -dev list). ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60851 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-11grammatical errors are bad, mmmkay?kpfleming1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58761 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-11Add CLI command "marko show birthday" to show "birthday information"qwell1-0/+83
for Mark Spencers upcoming 30th birthday. To enable, run `make menuselect` and select the option MARKO_BDAY under Compiler Flags. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58742 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-26Merged revisions 56783 via svnmerge from file1-6/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r56783 | file | 2007-02-26 11:36:08 -0500 (Mon, 26 Feb 2007) | 2 lines Allow both of the show version files and core show file versions CLI commands to work. (issue #9135 reported by mvanbaak) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56784 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-26Remove redundant check to ensure that LOW_MEMORY is not defined.russell1-2/+0
(issue #9136, mvanbaak) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56732 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-23Merged revisions 56505 via svnmerge from russell1-22/+48
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r56505 | russell | 2007-02-23 17:24:18 -0600 (Fri, 23 Feb 2007) | 16 lines Merged revisions 56504 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r56504 | russell | 2007-02-23 17:20:55 -0600 (Fri, 23 Feb 2007) | 8 lines Fix up a couple more signal handlers to not do bad things that could cause various undesirable results. The other day, I made Asterisk deadlock by hitting Control-C because of a bad signal handler. Now, signal handlers just set a flag and write to an alert pipe for the flag to be handled. Then, there is another thread that is monitoring for these flags. If being run in console mode, it is just the main thread. If Asterisk is in the background, a thread is created to do it. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@56506 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-16Merged revisions 54886 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54886 | qwell | 2007-02-16 11:25:21 -0600 (Fri, 16 Feb 2007) | 4 lines Clarify a restart message. It's silly, but the reporter had a very valid point. Issue 9079 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54887 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-14Show version in "core show settings"oej1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-14New CLI command "Core show settings" to list some core settingsoej1-1/+66
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54464 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-13Use spaces instead of tabs in the help text for a CLI commandrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54149 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-13Simplify WELCOME_MESSAGE to be a single function call instead of one for eachrussell1-9/+9
line. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54148 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-13- Constify the format string passed to ast_cli()russell1-48/+42
- Simplify printing out the warranty and license git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54147 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Merged revisions 53072 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r53072 | file | 2007-02-01 13:33:33 -0600 (Thu, 01 Feb 2007) | 2 lines Add missing 'F' letter to getopt so it magically becomes a valid option. (issue #8960 reported by tzafrir) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@53073 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-30Merged revisions 52904 via svnmerge from russell1-4/+17
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r52904 | russell | 2007-01-30 11:19:39 -0600 (Tue, 30 Jan 2007) | 17 lines Merged revisions 52903 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r52903 | russell | 2007-01-30 11:12:04 -0600 (Tue, 30 Jan 2007) | 9 lines The SIGHUP handler was implemented to allow admins to send SIGHUP to a running Asterisk process to reload the configuration. However, doing the actual reload in the signal handler itself is a very bad thing to do, because the reload process includes calling non-reentrant functions such as malloc/calloc/etc. If Asterisk is running in the background, then the reload will happen immediately. However, if running in console mode, the reload doesn't work until something is typed at the console. That sort of defeats the purpose, but I don't see an easy way to get around it at this point. ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@52905 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-23Cosmetic changes. Make main source files better conform to coding guidelines ↵file1-2/+2
and standards. (issue #8679 reported by johann8384) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51486 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-19Merged revisions 51302 via svnmerge from russell1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r51302 | russell | 2007-01-19 10:56:17 -0600 (Fri, 19 Jan 2007) | 12 lines Merged revisions 51300 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r51300 | russell | 2007-01-19 10:44:09 -0600 (Fri, 19 Jan 2007) | 4 lines Fix a memory leak on command line tab completion. The container for the matches was freed, but the individual matches themselves were not. (issue #8851, arkadia) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51303 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04Merged revisions 49553 via svnmerge from kpfleming1-0/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49553 | kpfleming | 2007-01-04 16:51:01 -0600 (Thu, 04 Jan 2007) | 2 lines add support for tracking thread-local-storage objects that exist via 'threadstorage' CLI commands ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49578 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27Merged revisions 49006 via svnmerge from kpfleming1-8/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r49006 | kpfleming | 2006-12-27 16:06:56 -0600 (Wed, 27 Dec 2006) | 2 lines since these variables all have static duration, none of them need initializers (they default to zero anyway) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49008 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27apparently we need an explicit message to warn peoplekpfleming1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49001 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27make the 'languageprefix' option default to on, and deprecate turning it offkpfleming1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49000 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27Merged revisions 48998 via svnmerge from kpfleming1-2/+0
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r48998 | kpfleming | 2006-12-27 15:08:30 -0600 (Wed, 27 Dec 2006) | 3 lines move extern declaration for this option to a header file where it belongs provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48999 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-06Constify a bunch of the usage strings for CLI commands.russell1-13/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48302 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-22Add support to set the maximum number of files open when Asterisk loads ↵file1-0/+26
using the 'maxfiles' configuration option. (issue #7499 reported by rkarlsba) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-09Merged revisions 47352 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47352 | russell | 2006-11-09 01:31:37 -0500 (Thu, 09 Nov 2006) | 3 lines fix "core show version" to reflect the new number of arguments for this CLI command (issue #8316, kshumard) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47353 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-07fix "core show profile" parsing.rizzo1-6/+6
Needs to go in 1.4 too, but ENOTIME now git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47300 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-04Merged revisions 47195 via svnmerge from russell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47195 | russell | 2006-11-04 12:59:39 -0500 (Sat, 04 Nov 2006) | 2 lines Really fix the "core set debug" and "core set verbose" CLI commands. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47197 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02Merged revisions 47051 via svnmerge from tilghman1-14/+14
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47051 | tilghman | 2006-11-02 17:00:20 -0600 (Thu, 02 Nov 2006) | 2 lines Reverse change of "show" to "list" and make several other commands more consistent with "category verb arguments" ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-30Issue 8246 Doxygen updates (kshumard) oej1-1/+1
THANK YOU! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46434 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-29Small formatting changesoej1-43/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46410 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-27Merged revisions 46363 via svnmerge from russell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r46363 | russell | 2006-10-27 12:39:31 -0500 (Fri, 27 Oct 2006) | 5 lines We should always be using _exit() after a fork() or vfork() instead of exit(). This is because exit() does some extra cleanup which in some implementations of vfork(), for example, can actually modify the state of the parent process, causing very weird bugs or crashes. (issue #7971, Nick Gavrikov) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18Merged revisions 45595 via svnmerge from file1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r45595 | file | 2006-10-18 17:03:34 -0400 (Wed, 18 Oct 2006) | 2 lines Don't modify things if we are using vfork as this is very bad and may cause unexpected behavior (issue #7970 reported by Nick Gavrikov) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@45596 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04Merged revisions 44378 via svnmerge from kpfleming1-4/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r44378 | kpfleming | 2006-10-04 14:47:22 -0500 (Wed, 04 Oct 2006) | 4 lines update thread creation code a bit reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44379 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04Merged revisions 44322 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r44322 | kpfleming | 2006-10-03 19:25:44 -0500 (Tue, 03 Oct 2006) | 3 lines ensure that local include files are always used avoid a duplicate function name (term_init()) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44323 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02clean up formatting and conformance to code guidelineskpfleming1-5/+7
revert Mark's change that caused a memory leak (cap_set_proc() does not free the capability structure so we always need to call cap_free()) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44152 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Uhm yah, not sure who committed this into trunk... Anyway, I think this markster1-3/+1
is what was intended... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44145 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-29Merged revisions 44053 via svnmerge from qwell1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r44053 | qwell | 2006-09-29 15:35:09 -0700 (Fri, 29 Sep 2006) | 3 lines Fix a bug with the removal of 'atleast' argument to 'core verbose' and 'core debug'. Add that argument back in. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44054 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-27Add ability to set high ToS bits as non-root on Linux using libcap (issue ↵file1-5/+26
#7047 reported by maddison) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43830 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-26Merged revisions 43710 via svnmerge from russell1-13/+11
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r43710 | russell | 2006-09-26 16:56:42 -0400 (Tue, 26 Sep 2006) | 17 lines (This was actually BE-65) Merged revisions 43708 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43708 | russell | 2006-09-26 16:49:21 -0400 (Tue, 26 Sep 2006) | 7 lines Back in revision 4798, this message was changed from using ast_cli() to directly calling write(). During this change, checking if this was a remote console was removed. This caused this message about using "exit" or "quit" to exit an Asterisk console to come up in times where it did not make sense. This change restores the check to see if this is a remote console before printing the message. (fixes BE-4) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43715 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-21Remove deprecated CLI apps from the coretilghman1-66/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43449 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19similar patch for verbose vs debug with minor changesmogorman1-1/+1
bug 2617 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43272 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18always use fork() when availablekpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43216 f38db490-d61c-443f-a65b-d21fe96a405b