Jason Parker 
							
						 
					 
					
						
						
							
						
						eea428cf76 
					 
					
						
						
							
							Use defined return values in load_module in more places.  
						
						... 
						
						
						
						(closes issue #11096 )
Patches:
      pbx_config.c.patch uploaded by moy (license 222)
      pbx_dundi.c.patch uploaded by moy (license 222)
      pbx_gtkconsole.c.patch uploaded by moy (license 222)
      pbx_loopback.c.patch uploaded by moy (license 222)
      pbx_realtime.c.patch uploaded by moy (license 222)
      pbx_spool.c.patch uploaded by moy (license 222)
      app_adsiprog.c.patch uploaded by moy (license 222)
      app_alarmreceiver.c.patch uploaded by moy (license 222)
      app_amd.c.patch uploaded by moy (license 222)
      app_authenticate.c.patch uploaded by moy (license 222)
      app_cdr.c.patch uploaded by moy (license 222)
      app_zapateller.c.patch uploaded by moy (license 222)
      app_zapbarge.c.patch uploaded by moy (license 222)
      app_zapras.c.patch uploaded by moy (license 222)
      app_zapscan.c.patch uploaded by moy (license 222)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94806  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-12-26 20:02:27 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						7e8835e0d7 
					 
					
						
						
							
							remove another set of redundant #include "asterisk/options.h"  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89512  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-21 23:24:55 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						ffd86fc964 
					 
					
						
						
							
							more errno.h removal  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89432  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-19 21:12:08 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						5490960453 
					 
					
						
						
							
							remove a bunch of duplicate includes  
						
						... 
						
						
						
						Reproduce with
grep -r #include . | grep -v .svn | grep -v Binary | sort | uniq -c | sort -nr 
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89348  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-16 23:54:45 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						fdb7f7ba3d 
					 
					
						
						
							
							Start untangling header inclusion in a way that does not affect  
						
						... 
						
						
						
						build times - tested, there is no measureable difference before and
after this commit.
In this change:
use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h
Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.
Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better. 
For the time being I have left alone second-level directories
(main/db1-ast, etc.).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-16 20:04:58 +00:00 
						 
				 
			
				
					
						
							
							
								Steve Murphy 
							
						 
					 
					
						
						
							
						
						98429d37b2 
					 
					
						
						
							
							Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89186  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-12 18:44:36 +00:00 
						 
				 
			
				
					
						
							
							
								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.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88166  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-11-01 22:26:51 +00:00 
						 
				 
			
				
					
						
							
							
								Russell Bryant 
							
						 
					 
					
						
						
							
						
						e5853d8409 
					 
					
						
						
							
							Merged revisions 85515 via svnmerge from  
						
						... 
						
						
						
						https://origsvn.digium.com/svn/asterisk/branches/1.4 
........
r85515 | russell | 2007-10-12 10:40:35 -0500 (Fri, 12 Oct 2007) | 7 lines
Fix the potential use of an uninitialized buffer in a log message.
(closes issue #10958 )
Reported by: dimas
Patches: 
      realtime.patch uploaded by dimas (license 88)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85516  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
					
						2007-10-12 15:41:27 +00:00 
						 
				 
			
				
					
						
							
							
								Russell Bryant 
							
						 
					 
					
						
						
							
						
						f8483a0d04 
					 
					
						
						
							
							Do a massive conversion for using the ast_verb() macro  
						
						... 
						
						
						
						(closes issue #10277 , patches by mvanbaak)
Basically, this changes ...
if (option_verbose > 2)
   ast_verbose(VERBOSE_PREFIX_3, "Something\n");
to ...
ast_verb(3, "Something\n");
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77299  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-07-26 15:49:18 +00:00 
						 
				 
			
				
					
						
							
							
								Joshua Colp 
							
						 
					 
					
						
						
							
						
						4003b31fc5 
					 
					
						
						
							
							Minor code tweaks. Variables were being checked wrong in some situations and didn't need to be checked in others.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75566  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2007-07-18 13:59:01 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						749029de38 
					 
					
						
						
							
							Merged revisions 46200 via svnmerge from  
						
						... 
						
						
						
						https://origsvn.digium.com/svn/asterisk/branches/1.4 
........
r46200 | kpfleming | 2006-10-25 09:32:08 -0500 (Wed, 25 Oct 2006) | 2 lines
apparently developers are still not aware that they should be use ast_copy_string instead of strncpy... fix up many more users, and fix some bugs in the process
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46201  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
					
						2006-10-25 14:44:50 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						0a27d8bfe5 
					 
					
						
						
							
							merge new_loader_completion branch, including (at least):  
						
						... 
						
						
						
						- restructured build tree and makefiles to eliminate recursion problems
  - support for embedded modules
  - support for static builds
  - simpler cross-compilation support
  - simpler module/loader interface (no exported symbols)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-08-21 02:11:39 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						472c1ca282 
					 
					
						
						
							
							simplify autoconfig include mechanism (make tholo happy he can use lint again :-)  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-06-07 18:54:56 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						7c415648d1 
					 
					
						
						
							
							change macro into a function, remove unused code.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26656  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-05-10 21:55:25 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						b09dd8708b 
					 
					
						
						
							
							start cleanup indentation etc.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26655  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-05-10 21:12:55 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						e43bc6634d 
					 
					
						
						
							
							This rather large commit changes the way modules are loaded.  
						
						... 
						
						
						
						As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely.  Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
 
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968 
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-04-14 14:08:19 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						f10f427d49 
					 
					
						
						
							
							since the module API is changing, it's a good time to const-ify the description() and key() return values  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-04-08 22:01:19 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						94b886650c 
					 
					
						
						
							
							fix formatting  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16640  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-03-31 09:53:05 +00:00 
						 
				 
			
				
					
						
							
							
								Luigi Rizzo 
							
						 
					 
					
						
						
							
						
						6c232811c0 
					 
					
						
						
							
							as discussed with Mark a few weeks ago, the 'newstack' argument  
						
						... 
						
						
						
						in pbx_exec is always 1 so it can be removed.
This change also takes away ast_exec_extension(), and lets all
switch functions (exists, canmatch, exec, matchmore) all use the same
prototype, which makes the code a bit cleaner.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16558  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2006-03-30 21:29:39 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						2c65582b66 
					 
					
						
						
							
							remove extraneous svn:executable properties  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-11-29 18:24:39 +00:00 
						 
				 
			
				
					
						
							
							
								Russell Bryant 
							
						 
					 
					
						
						
							
						
						987b87662c 
					 
					
						
						
							
							make app_queue 1.2 jump compliant (issue  #5580 )  
						
						... 
						
						
						
						add missing includes of stdio.h
remove some unused and duplicate headers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7026  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-11-08 04:48:00 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						a0a9769616 
					 
					
						
						
							
							issue  #5648  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-11-08 01:55:31 +00:00 
						 
				 
			
				
					
						
							
							
								Russell Bryant 
							
						 
					 
					
						
						
							
						
						3453e3efa5 
					 
					
						
						
							
							Doxygen documentation update from oej (issue  #5505 )  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-10-24 20:12:06 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						5da915dcfd 
					 
					
						
						
							
							update MANY more files with proper copyright/license info (thanks Ian!)  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-09-14 20:46:50 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						2b8338cb52 
					 
					
						
						
							
							more file version tags  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-06-06 22:12:19 +00:00 
						 
				 
			
				
					
						
							
							
								Kevin P. Fleming 
							
						 
					 
					
						
						
							
						
						1f9ab2380a 
					 
					
						
						
							
							use double-quotes instead of angle-brackets for non-system include files (bug  #4058 )  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-04-21 06:02:45 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						5f726ad8c7 
					 
					
						
						
							
							Merge config updates (bug  #3406 )  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4889  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-01-25 06:10:20 +00:00 
						 
				 
			
				
					
						
							
							
								Russell Bryant 
							
						 
					 
					
						
						
							
						
						0c30452423 
					 
					
						
						
							
							update copyright headers for 2005  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2005-01-21 07:06:25 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						a519477534 
					 
					
						
						
							
							Fix Realtime to work with MySQL and Postgres both (bug  #3029 )  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4510  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-12-21 01:39:49 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						dc074b7029 
					 
					
						
						
							
							Merge bkw's formatting and variable substitition (bug  #2984 )  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4392  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-12-06 17:21:44 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						8f2b687a95 
					 
					
						
						
							
							Make realtime pbx understand patterns.  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4326  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-11-24 03:07:08 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						a69c0016da 
					 
					
						
						
							
							Realtime improvements  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4314  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-11-22 18:39:40 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						b48d2563ae 
					 
					
						
						
							
							Fix missing arguments  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4312  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-11-22 14:33:42 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						536d9d370e 
					 
					
						
						
							
							Minor realtime improvements  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4311  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-11-22 05:03:03 +00:00 
						 
				 
			
				
					
						
							
							
								Mark Spencer 
							
						 
					 
					
						
						
							
						
						fdfd69cca0 
					 
					
						
						
							
							Add first pass at realtime  
						
						... 
						
						
						
						git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4309  65c4cc65-6c06-0410-ace0-fbb531ad65f3 
						
						
					 
					
						2004-11-22 03:25:27 +00:00