asterisk/asterisk.git
13 years agoChanges to fix all problems reported in 7804 are included here.
Steve Murphy [Fri, 25 Aug 2006 20:43:51 +0000 (20:43 +0000)]
Changes to fix all problems reported in 7804 are included here.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41150 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agowe really need BSD make here to understand the -V option.
Luigi Rizzo [Fri, 25 Aug 2006 20:10:56 +0000 (20:10 +0000)]
we really need BSD make here to understand the -V option.
Fix and document this.
(problem introduced in SVN 40753)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofix redirect typo
Russell Bryant [Fri, 25 Aug 2006 19:10:15 +0000 (19:10 +0000)]
fix redirect typo

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41133 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofix a typo and clarify something else
Kevin P. Fleming [Fri, 25 Aug 2006 18:58:52 +0000 (18:58 +0000)]
fix a typo and clarify something else

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41120 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove the make version check, and instead, check for the actual bug that
Russell Bryant [Fri, 25 Aug 2006 18:55:26 +0000 (18:55 +0000)]
remove the make version check, and instead, check for the actual bug that
causes our build system to blow up.

If anyone still sees problems and configure didn't detect a problem with make,
please let me know.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41119 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoIdentify what the columns mean in the output of "show profile"
Russell Bryant [Fri, 25 Aug 2006 18:05:28 +0000 (18:05 +0000)]
Identify what the columns mean in the output of "show profile"

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoOff by one error in buffer length (issue 7379)
Tilghman Lesher [Fri, 25 Aug 2006 17:48:34 +0000 (17:48 +0000)]
Off by one error in buffer length (issue 7379)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41103 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agowe use autoconf 2.60.
Russell Bryant [Fri, 25 Aug 2006 16:19:58 +0000 (16:19 +0000)]
we use autoconf 2.60.

Note that this only affects people regenerating the configure script.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41088 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoinstead of reverting this supposedly 'stupid' change, let's try to get it working...
Kevin P. Fleming [Fri, 25 Aug 2006 16:14:00 +0000 (16:14 +0000)]
instead of reverting this supposedly 'stupid' change, let's try to get it working properly
also eliminate a warning from dlopen() because some flags were missing on the second dlopen() call

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41087 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoNote to self, always compile before committing.
Matthew Fredrickson [Fri, 25 Aug 2006 15:20:16 +0000 (15:20 +0000)]
Note to self, always compile before committing.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41068 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDon't send proceeding twice (#7800)
Matthew Fredrickson [Fri, 25 Aug 2006 15:14:42 +0000 (15:14 +0000)]
Don't send proceeding twice (#7800)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41067 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove documentation of 'global' section in modules.conf, since it is no longer neede...
Kevin P. Fleming [Fri, 25 Aug 2006 14:14:27 +0000 (14:14 +0000)]
remove documentation of 'global' section in modules.conf, since it is no longer needed or supported

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41054 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodon't seg fault when using dbsecret
Russell Bryant [Fri, 25 Aug 2006 02:55:00 +0000 (02:55 +0000)]
don't seg fault when using dbsecret

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41034 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoThis is a bit safer on some versions of sed.
Jason Parker [Fri, 25 Aug 2006 00:52:19 +0000 (00:52 +0000)]
This is a bit safer on some versions of sed.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41026 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoget cflags for libcurl as well as libs (patch from qwell)
Russell Bryant [Fri, 25 Aug 2006 00:13:03 +0000 (00:13 +0000)]
get cflags for libcurl as well as libs (patch from qwell)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41023 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoAs per the comments in this file..
Jason Parker [Thu, 24 Aug 2006 22:17:12 +0000 (22:17 +0000)]
As per the comments in this file..
The last patch was slightly wrong.  This'll get it for sure.

Solaris (and some others) don't have sed -r.  perl -p is equivalent

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41015 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix a small typo I found.
Jason Parker [Thu, 24 Aug 2006 21:30:34 +0000 (21:30 +0000)]
Fix a small typo I found.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41009 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40994 via svnmerge from
Russell Bryant [Thu, 24 Aug 2006 19:53:43 +0000 (19:53 +0000)]
Merged revisions 40994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40994 | russell | 2006-08-24 15:41:26 -0400 (Thu, 24 Aug 2006) | 11 lines

Fix a few issues related to the handling of channel variables
 - in pbx_builtin_serialize_variables(), the variable list traversal would stop
   on a variables with empty name/values, which is not appropriate
 - When removing the GROUP variables, use AST_LIST_REMOVE_CURRENT instead of
   AST_LIST_REMOVE
 - During masquerading, when copying the variables list from one channel to the
   other, using AST_LIST_INSERT_TAIL is not valid for appending a whole list.
   It leaves the tail pointer of the list invalid.  Introduce a new macro,
   AST_LIST_APPEND_LIST that appends a list properly.
(issue #7802, softins)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40995 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofix codec_gsm build for powerpc
Russell Bryant [Thu, 24 Aug 2006 19:07:01 +0000 (19:07 +0000)]
fix codec_gsm build for powerpc

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40993 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove CFLAGS that aren't needed anymore
Russell Bryant [Thu, 24 Aug 2006 18:57:46 +0000 (18:57 +0000)]
remove CFLAGS that aren't needed anymore

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40990 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDeprecate USERAGENT
Olle Johansson [Thu, 24 Aug 2006 18:49:35 +0000 (18:49 +0000)]
Deprecate USERAGENT

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40988 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoRevert stupid RTLD_NOLOAD change that breaks module loading on some systems.
Matthew Fredrickson [Thu, 24 Aug 2006 17:24:33 +0000 (17:24 +0000)]
Revert stupid RTLD_NOLOAD change that breaks module loading on some systems.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40981 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40979 via svnmerge from
Joshua Colp [Thu, 24 Aug 2006 17:13:57 +0000 (17:13 +0000)]
Merged revisions 40979 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40979 | file | 2006-08-24 13:13:04 -0400 (Thu, 24 Aug 2006) | 2 lines

I can type english. Honest. Thanks Kenny.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40980 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40971 via svnmerge from
Joshua Colp [Thu, 24 Aug 2006 16:46:13 +0000 (16:46 +0000)]
Merged revisions 40971 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40971 | file | 2006-08-24 12:44:41 -0400 (Thu, 24 Aug 2006) | 2 lines

Minor documentation fix to add the 'dynamic' dialplan option from angler

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40972 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoDocumentation updates (thanks Shaun for the speechrec.txt one!)
Joshua Colp [Thu, 24 Aug 2006 15:44:24 +0000 (15:44 +0000)]
Documentation updates (thanks Shaun for the speechrec.txt one!)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40968 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoOkay, there are 3 reasons why I'm doing this.
Jason Parker [Thu, 24 Aug 2006 01:21:41 +0000 (01:21 +0000)]
Okay, there are 3 reasons why I'm doing this.

1) Solaris sed doesn't have -r, which means things like \s and \S don't work.
2) GNU sed version 4.1.2 failed on a very simple test
     echo "Test   Test" | sed -r -e 's/\s/x/g'
     should have returned "TestxxxTest", but did not (however, 4.1.4 did?).
3) The CFLAGS were never set, so that entire line actually did nothing.  Now it's useful again.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40964 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFixing a comment
Olle Johansson [Wed, 23 Aug 2006 21:19:21 +0000 (21:19 +0000)]
Fixing a comment

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40960 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoAdd a lasting legacy from 1082... a Macro to do a pre acknowledgement message with...
Joshua Colp [Wed, 23 Aug 2006 20:39:23 +0000 (20:39 +0000)]
Add a lasting legacy from 1082... a Macro to do a pre acknowledgement message with option to reject. Thanks to patbaker82 for this. (issue #1082 reported by damin)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40955 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFree the filename so we don't have a memory leak. (reported by PCadach in #asterisk...
Joshua Colp [Wed, 23 Aug 2006 20:22:18 +0000 (20:22 +0000)]
Free the filename so we don't have a memory leak. (reported by PCadach in #asterisk-bugs)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40953 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agouse RTLD_NOLOAD if it's available to make loading dynamic modules a little faster...
Kevin P. Fleming [Wed, 23 Aug 2006 19:28:13 +0000 (19:28 +0000)]
use RTLD_NOLOAD if it's available to make loading dynamic modules a little faster and less resource-intensive
also, keep trying to dlclose() a module until it actually goes away, since it may have other modules it brought in when it was loaded (thanks PCadach for pointing this problem out to me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40949 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomove the "muted" svn:ignore to the utils/ directory
Jason Parker [Wed, 23 Aug 2006 18:51:39 +0000 (18:51 +0000)]
move the "muted" svn:ignore to the utils/ directory

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove svnmerge-integrated property
Russell Bryant [Wed, 23 Aug 2006 17:44:33 +0000 (17:44 +0000)]
remove svnmerge-integrated property

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40928 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40901 via svnmerge from
Tilghman Lesher [Wed, 23 Aug 2006 16:14:18 +0000 (16:14 +0000)]
Merged revisions 40901 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40901 | tilghman | 2006-08-23 11:05:26 -0500 (Wed, 23 Aug 2006) | 2 lines

Revert last change - breaks retrieval of builtin variables

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40904 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomerge menuselect_build ... most of the changes happened in menuselect
Russell Bryant [Wed, 23 Aug 2006 03:07:34 +0000 (03:07 +0000)]
merge menuselect_build ... most of the changes happened in menuselect

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40877 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agogenerate a message when a module cannot be found and loadable modules are disabled
Kevin P. Fleming [Tue, 22 Aug 2006 23:55:16 +0000 (23:55 +0000)]
generate a message when a module cannot be found and loadable modules are disabled

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40866 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomake platforms that use mutexes in stdio.h happy
Kevin P. Fleming [Tue, 22 Aug 2006 23:07:11 +0000 (23:07 +0000)]
make platforms that use mutexes in stdio.h happy

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40864 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agominor improvements
Kevin P. Fleming [Tue, 22 Aug 2006 23:06:13 +0000 (23:06 +0000)]
minor improvements

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40863 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agowhen loadable modules are disabled, if someone tries to load a module that does not...
Kevin P. Fleming [Tue, 22 Aug 2006 21:57:16 +0000 (21:57 +0000)]
when loadable modules are disabled, if someone tries to load a module that does not exist, don't dereference a NULL pointer, just stop trying to load it...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40854 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoadd a new include file for out-of-tree modules that need to know where things are...
Kevin P. Fleming [Tue, 22 Aug 2006 21:45:15 +0000 (21:45 +0000)]
add a new include file for out-of-tree modules that need to know where things are located

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40853 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoremove requirement for libtasn1, which appears to be a Debian thing
Kevin P. Fleming [Tue, 22 Aug 2006 16:32:41 +0000 (16:32 +0000)]
remove requirement for libtasn1, which appears to be a Debian thing

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40837 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoSolaris didn't like this.
Jason Parker [Tue, 22 Aug 2006 05:34:44 +0000 (05:34 +0000)]
Solaris didn't like this.

Let's just go ahead and make this match every other uintXX_t in Asterisk.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40833 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoa couple Solaris tweaks, to help build properly.
Jason Parker [Tue, 22 Aug 2006 05:24:50 +0000 (05:24 +0000)]
a couple Solaris tweaks, to help build properly.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40832 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocked revisions 40821 via svnmerge
Tilghman Lesher [Tue, 22 Aug 2006 03:01:49 +0000 (03:01 +0000)]
Blocked revisions 40821 via svnmerge

........
r40821 | tilghman | 2006-08-21 21:59:37 -0500 (Mon, 21 Aug 2006) | 2 lines

Bug 7779 - Using initstate(3) means that we cannot unload this module once loaded.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40826 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoAnother compile time warning bites the dust
Joshua Colp [Tue, 22 Aug 2006 02:30:38 +0000 (02:30 +0000)]
Another compile time warning bites the dust

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake a warning about an unused function & variable go away on the stand alone AEL...
Joshua Colp [Tue, 22 Aug 2006 02:24:46 +0000 (02:24 +0000)]
Make a warning about an unused function & variable go away on the stand alone AEL build.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40819 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake doxygen work with the new location of files that now reside in main
Joshua Colp [Tue, 22 Aug 2006 02:15:34 +0000 (02:15 +0000)]
Make doxygen work with the new location of files that now reside in main

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40818 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoSorry, but this does not resemble malloc... so GCC was ignoring the attribute and...
Joshua Colp [Tue, 22 Aug 2006 01:57:40 +0000 (01:57 +0000)]
Sorry, but this does not resemble malloc... so GCC was ignoring the attribute and throwing a warning.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40815 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix up the props a bit
Joshua Colp [Tue, 22 Aug 2006 01:01:39 +0000 (01:01 +0000)]
Fix up the props a bit

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40812 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40798 via svnmerge from
Matt O'Gorman [Mon, 21 Aug 2006 22:36:15 +0000 (22:36 +0000)]
Merged revisions 40798 via svnmerge from
https://svn.digium.com/svn/asterisk/branches/1.2

........
r40798 | mogorman | 2006-08-21 17:34:26 -0500 (Mon, 21 Aug 2006) | 4 lines

Move the load_modules call so that if a module needs
realtime support it will work, none do currently but a good
move none the less.

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40799 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agorestore 'preload' functionality in loader
Kevin P. Fleming [Mon, 21 Aug 2006 22:23:26 +0000 (22:23 +0000)]
restore 'preload' functionality in loader

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40796 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agooops... missed one
Kevin P. Fleming [Mon, 21 Aug 2006 20:19:47 +0000 (20:19 +0000)]
oops... missed one

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40792 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoanother variable to clear out before configuring mxml
Kevin P. Fleming [Mon, 21 Aug 2006 20:18:36 +0000 (20:18 +0000)]
another variable to clear out before configuring mxml

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40791 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agouse a customized configure macro to tell the script that uCLinux does not have fork...
Kevin P. Fleming [Mon, 21 Aug 2006 20:12:18 +0000 (20:12 +0000)]
use a customized configure macro to tell the script that uCLinux does not have fork() that works
drop all startup options and code related to forking if it is not available

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40790 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodon't initialize global variables list twice
Kevin P. Fleming [Mon, 21 Aug 2006 20:04:59 +0000 (20:04 +0000)]
don't initialize global variables list twice

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40789 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agouse new configure-provided wrappers for attributes
Kevin P. Fleming [Mon, 21 Aug 2006 19:56:45 +0000 (19:56 +0000)]
use new configure-provided wrappers for attributes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40785 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agorestore printing of module name during loading
Kevin P. Fleming [Mon, 21 Aug 2006 19:56:30 +0000 (19:56 +0000)]
restore printing of module name during loading

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years ago- simplify and improve astmm by using thread storage instead of a dynamic
Russell Bryant [Mon, 21 Aug 2006 19:42:29 +0000 (19:42 +0000)]
- simplify and improve astmm by using thread storage instead of a dynamic
  allocation and free on every call of the function for preparing the string
  that will be appended.  Then, use the ast_dynamic_str() code instead of the
  open coded version that is appended to when waiting for it to be delivered.
- use for loops for list traversals
- convert the manager sessions list to use list macros
- use atomic operations for num_sessions and usecounts
- convert some defines to the equivalent enum

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40783 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years ago- use the atomic operations for incrementing the unique int
Russell Bryant [Mon, 21 Aug 2006 19:35:28 +0000 (19:35 +0000)]
- use the atomic operations for incrementing the unique int
- free the string fields allocation if ast_create_channel() failes to open the
  alert pipe
- formatting tweaks

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40782 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoAllow an offset for SIP_HEADER so you can get more then 1 header of the same name...
Joshua Colp [Mon, 21 Aug 2006 19:33:42 +0000 (19:33 +0000)]
Allow an offset for SIP_HEADER so you can get more then 1 header of the same name if they exist. Why someone would want to grab something like Via headers from dialplan I don't exactly know, but okay. (issue #7563 reported by Corydon76)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agovarious cleanups, including ...
Russell Bryant [Mon, 21 Aug 2006 19:18:09 +0000 (19:18 +0000)]
various cleanups, including ...
- Create an astmm_log() macro that logs the same message to both stderr as well
  as the mmlog file if it is open instead of duplicating the code everywhere.
- Use for loops for list traversals instead of while loops
- reduce nesting
- ensure locking isn't put around more than is necessary
- localize a struct definition
- change the limit of the path to the mmlog to PATH_MAX instead of 80

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40780 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years ago- use a common error message in all of the memory allocation macros
Russell Bryant [Mon, 21 Aug 2006 17:22:24 +0000 (17:22 +0000)]
- use a common error message in all of the memory allocation macros
- add ast_asprintf() and ast_vasprintf()
- tweak doxygen comments
- simplify the definition of a flag macro

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40775 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agobuild muted by default, since there is no Makefile target for it anymore
Kevin P. Fleming [Mon, 21 Aug 2006 14:45:58 +0000 (14:45 +0000)]
build muted by default, since there is no Makefile target for it anymore

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40770 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agouse a safer process for checking if a module wants to export symbols into the global...
Kevin P. Fleming [Mon, 21 Aug 2006 14:42:03 +0000 (14:42 +0000)]
use a safer process for checking if a module wants to export symbols into the global namespace

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40769 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoreplace a couple of bare 'make' with $(MAKE)
Kevin P. Fleming [Mon, 21 Aug 2006 13:47:45 +0000 (13:47 +0000)]
replace a couple of bare 'make' with $(MAKE)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40765 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoswap module macro arguments to proper order
Kevin P. Fleming [Mon, 21 Aug 2006 11:48:08 +0000 (11:48 +0000)]
swap module macro arguments to proper order

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40761 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix a potential integer signedness problem.
Jason Parker [Mon, 21 Aug 2006 07:34:59 +0000 (07:34 +0000)]
Fix a potential integer signedness problem.
Also fix some locking issues I found at the same time.

Issue 7770, original patch by alamantia

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40757 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoensure that 'make' after 'svn update' that includes a configure script change won...
Kevin P. Fleming [Mon, 21 Aug 2006 03:58:02 +0000 (03:58 +0000)]
ensure that 'make' after 'svn update' that includes a configure script change won't run without making the user run configure first

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40753 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodon't declare these variables unless needed
Kevin P. Fleming [Mon, 21 Aug 2006 03:06:41 +0000 (03:06 +0000)]
don't declare these variables unless needed

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40751 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodocument Makefile target changes
Kevin P. Fleming [Mon, 21 Aug 2006 02:54:05 +0000 (02:54 +0000)]
document Makefile target changes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40728 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agocould have sworn i committed this change already...
Kevin P. Fleming [Mon, 21 Aug 2006 02:46:47 +0000 (02:46 +0000)]
could have sworn i committed this change already...

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40726 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomain subdirectory is not dependencies for menuselect input
Kevin P. Fleming [Mon, 21 Aug 2006 02:31:01 +0000 (02:31 +0000)]
main subdirectory is not dependencies for menuselect input

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40725 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agooops... no pattern rules for bison/flex
Kevin P. Fleming [Mon, 21 Aug 2006 02:26:51 +0000 (02:26 +0000)]
oops... no pattern rules for bison/flex

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40724 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agomerge new_loader_completion branch, including (at least):
Kevin P. Fleming [Mon, 21 Aug 2006 02:11:39 +0000 (02:11 +0000)]
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

13 years agoMerged revisions 40692 via svnmerge from
Tilghman Lesher [Sun, 20 Aug 2006 22:12:50 +0000 (22:12 +0000)]
Merged revisions 40692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40692 | tilghman | 2006-08-20 17:09:57 -0500 (Sun, 20 Aug 2006) | 2 lines

Reformat to match the contribution style of other contributors

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40693 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoThis is just step 1 in taking over the world.
Jason Parker [Sun, 20 Aug 2006 18:03:24 +0000 (18:03 +0000)]
This is just step 1 in taking over the world.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40663 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoConvert func_odbc to use the prepare_and_execute callback, which helps with a databas...
Tilghman Lesher [Sun, 20 Aug 2006 15:46:00 +0000 (15:46 +0000)]
Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40632 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocked revisions 40601 via svnmerge
Joshua Colp [Sun, 20 Aug 2006 04:51:06 +0000 (04:51 +0000)]
Blocked revisions 40601 via svnmerge

........
r40601 | file | 2006-08-20 00:49:48 -0400 (Sun, 20 Aug 2006) | 2 lines

Turn media level c= parsing on by default (issue #7725 reported by psm)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40602 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoConverted device2str and control2str to use thread local storage.
Jason Parker [Sun, 20 Aug 2006 04:39:57 +0000 (04:39 +0000)]
Converted device2str and control2str to use thread local storage.

Thanks Russell.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40600 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoProperly check to see if parkingnum is a number (issue #7762 reported by robf)
Joshua Colp [Sun, 20 Aug 2006 04:25:28 +0000 (04:25 +0000)]
Properly check to see if parkingnum is a number (issue #7762 reported by robf)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40599 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agokpfleming didn't break trunk, it was the aliens. (fix it so that the Makefile referen...
Joshua Colp [Sun, 20 Aug 2006 01:42:41 +0000 (01:42 +0000)]
kpfleming didn't break trunk, it was the aliens. (fix it so that the Makefile references the new name for the XML tree, menuselect-tree)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40566 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake the CIPC device string useful
Jason Parker [Sun, 20 Aug 2006 01:27:24 +0000 (01:27 +0000)]
Make the CIPC device string useful

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40563 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix minor display issues in "skinny show devices".
Jason Parker [Sun, 20 Aug 2006 01:25:02 +0000 (01:25 +0000)]
Fix minor display issues in "skinny show devices".

Patch by wedhorn with minor modifications by me.

Issue 7766

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40561 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agodeprecate chan_agent callback mode
Kevin P. Fleming [Sat, 19 Aug 2006 17:05:43 +0000 (17:05 +0000)]
deprecate chan_agent callback mode

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40521 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agosuppress warnings introduced by putting states in an enum
Russell Bryant [Sat, 19 Aug 2006 03:50:15 +0000 (03:50 +0000)]
suppress warnings introduced by putting states in an enum

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40489 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoBlocking 1.2 rev 40446 from merging to trunk
Jason Parker [Sat, 19 Aug 2006 01:06:53 +0000 (01:06 +0000)]
Blocking 1.2 rev 40446 from merging to trunk

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40452 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoFix a bug with app_voicemail when trying to use app_directory to leave messages
Jason Parker [Sat, 19 Aug 2006 00:53:54 +0000 (00:53 +0000)]
Fix a bug with app_voicemail when trying to use app_directory to leave messages
to another user (options 3, 5, 2).

If the context/extension didn't exist in the dialplan (and why should it have to?),
it would fail, saying that it's an "invalid extension".

(issue BE-71)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40426 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoconvert lists of constants in channel.h to enums instead of #defines
Russell Bryant [Sat, 19 Aug 2006 00:33:44 +0000 (00:33 +0000)]
convert lists of constants in channel.h to enums instead of #defines

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40424 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMake a zttest of 20 seconds part of the autosupport script (issue #7752 reported...
Joshua Colp [Fri, 18 Aug 2006 19:22:33 +0000 (19:22 +0000)]
Make a zttest of 20 seconds part of the autosupport script (issue #7752 reported by kshumard)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40395 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoMerged revisions 40392 via svnmerge from
Kevin P. Fleming [Fri, 18 Aug 2006 19:11:34 +0000 (19:11 +0000)]
Merged revisions 40392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r40392 | kpfleming | 2006-08-18 14:10:51 -0500 (Fri, 18 Aug 2006) | 2 lines

make a feeble attempt to avoid the 'how do I enable my hardware echo canceler' questions

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoUpdated this as per wishes of Kevin Fleming. Needs review. Any mistakes/misconception...
Steve Murphy [Fri, 18 Aug 2006 02:31:12 +0000 (02:31 +0000)]
Updated this as per wishes of Kevin Fleming. Needs review. Any mistakes/misconceptions/glaring errors?

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40360 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoupdating configure script and putting comments in the docs
Matt O'Gorman [Thu, 17 Aug 2006 22:52:07 +0000 (22:52 +0000)]
updating configure script and putting comments in the docs
in english. yay!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40337 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agochanges to configure to support older c-client than the
Matt O'Gorman [Thu, 17 Aug 2006 22:39:48 +0000 (22:39 +0000)]
changes to configure to support older c-client than the
2004 version.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40335 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoUse OSAtomicAdd instead of OSAtomicDecrement to decrement the value by 1.
Joshua Colp [Thu, 17 Aug 2006 21:14:03 +0000 (21:14 +0000)]
Use OSAtomicAdd instead of OSAtomicDecrement to decrement the value by 1.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40303 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoupdate configure script to reflect change to make version check
Russell Bryant [Thu, 17 Aug 2006 21:10:16 +0000 (21:10 +0000)]
update configure script to reflect change to make version check

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40302 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoa lot of systems use GNU Make 3.81beta4, so only consider the first two characters
Russell Bryant [Thu, 17 Aug 2006 19:38:15 +0000 (19:38 +0000)]
a lot of systems use GNU Make 3.81beta4, so only consider the first two characters
in the minor part of the version string

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40280 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofix the use of an uninitialized variable (issue #7746, pointed out by garyhai)
Russell Bryant [Thu, 17 Aug 2006 19:14:20 +0000 (19:14 +0000)]
fix the use of an uninitialized variable (issue #7746, pointed out by garyhai)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40278 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agorename to more clearly state what this file shows how to do
Kevin P. Fleming [Thu, 17 Aug 2006 18:33:24 +0000 (18:33 +0000)]
rename to more clearly state what this file shows how to do

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40257 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agotypo
Kevin P. Fleming [Thu, 17 Aug 2006 18:32:47 +0000 (18:32 +0000)]
typo

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40256 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agofix a little typo in the config file name
Russell Bryant [Thu, 17 Aug 2006 18:16:22 +0000 (18:16 +0000)]
fix a little typo in the config file name

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40255 65c4cc65-6c06-0410-ace0-fbb531ad65f3

13 years agoadd Steve Murphy's guide on setting up call queues using dynamic queue members,
Russell Bryant [Thu, 17 Aug 2006 18:09:59 +0000 (18:09 +0000)]
add Steve Murphy's guide on setting up call queues using dynamic queue members,
including examples in AEL.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40254 65c4cc65-6c06-0410-ace0-fbb531ad65f3