asterisk/asterisk.git
13 years agomake menuselect configure process be silent when possible
Kevin P. Fleming [Tue, 29 Aug 2006 23:33:59 +0000 (23:33 +0000)]
make menuselect configure process be silent when possible
don't use #ifdef inside a macro call... it appears various versions of gcc have bugs related to this

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

13 years agoThis change fixes bug 7820. Way back in April this bug was reintroduced, it appears...
Steve Murphy [Tue, 29 Aug 2006 23:08:42 +0000 (23:08 +0000)]
This change fixes bug 7820. Way back in April this bug was reintroduced, it appears, when a bunch of restructuring was done. This code was basically left out during the restructuring. In the case of the failure in 7820, it is trying to match the extension _x. with _x., and failing, because the 'x' should only match 0 thru 9. I **could** upgrade the code so that that N,Z, and X match not only their intended number ranges, but also N,Z,and X respectively. And, moreover, X could also match N and Z, and Z could also match N. I have no idea why this bug took so long to turn up. I have no idea what a more thorough treatment of the code would do to working code, either. So I left it as it ***was***.

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

13 years agoKevins last commit made me spot a typo.
Jason Parker [Tue, 29 Aug 2006 21:52:40 +0000 (21:52 +0000)]
Kevins last commit made me spot a typo.

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

13 years agoadd one remaining bit of functionality to the features.conf applicationmap (from...
Kevin P. Fleming [Tue, 29 Aug 2006 21:20:43 +0000 (21:20 +0000)]
add one remaining bit of functionality to the features.conf applicationmap (from Matt Nicholson in Digium Express Services)

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

13 years agoLimit challenges to 9 digits in length
Joshua Colp [Tue, 29 Aug 2006 20:53:27 +0000 (20:53 +0000)]
Limit challenges to 9 digits in length

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

13 years agoMerge team/russell/frame_caching
Russell Bryant [Tue, 29 Aug 2006 20:50:36 +0000 (20:50 +0000)]
Merge team/russell/frame_caching

There are some situations in Asterisk where ast_frame and/or iax_frame
structures are rapidly allocatted and freed (at least 50 times per second
for one call).

This code significantly improves the performance of ast_frame_header_new(),
ast_frdup(), ast_frfree(), iax_frame_new(), and iax_frame_free() by keeping
a thread-local cache of these structures and using frames from the cache
whenever possible instead of calling malloc/free every time.

This commit also converts the ast_frame and iax_frame structures to use the
linked list macros.

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

13 years agosuppress compiler warning
Jason Parker [Tue, 29 Aug 2006 17:31:15 +0000 (17:31 +0000)]
suppress compiler warning

Code shamelessly borrowed from r41271 (it was the same warning/fix)

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

13 years agoupdate to reflect recent rtp changes
Russell Bryant [Tue, 29 Aug 2006 13:55:54 +0000 (13:55 +0000)]
update to reflect recent rtp changes

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

13 years agosuppress compiler warning
Russell Bryant [Tue, 29 Aug 2006 13:48:15 +0000 (13:48 +0000)]
suppress compiler warning

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

13 years agoMerged revisions 41269 via svnmerge from
Russell Bryant [Tue, 29 Aug 2006 13:40:04 +0000 (13:40 +0000)]
Merged revisions 41269 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r41269 | russell | 2006-08-29 09:33:34 -0400 (Tue, 29 Aug 2006) | 3 lines

clean up last commit ... most notably, there is no reason to do heap
allocations here, and it also included a potential memory leak

........

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

13 years agoCommitted a fix for 7731, suggested by mnehauser.
Steve Murphy [Tue, 29 Aug 2006 13:21:47 +0000 (13:21 +0000)]
Committed a fix for 7731, suggested by mnehauser.

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

13 years agoBugfix for 7813 applied to trunk as per patch supplied by stevens
Steve Murphy [Tue, 29 Aug 2006 12:24:01 +0000 (12:24 +0000)]
Bugfix for 7813 applied to trunk as per patch supplied by stevens

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

13 years agoblocking version 41240 from erasing stuff about complement and matching ops from...
Steve Murphy [Mon, 28 Aug 2006 20:56:52 +0000 (20:56 +0000)]
blocking version 41240 from erasing stuff about complement and matching ops from the trunk version

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

13 years agoMerge in RTP-level packet bridging. Packet comes in, packet goes out - that's what...
Joshua Colp [Mon, 28 Aug 2006 17:37:56 +0000 (17:37 +0000)]
Merge in RTP-level packet bridging. Packet comes in, packet goes out - that's what RTP-level packet bridging is all about!

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

13 years agoMy apologies, I missed the compiler warning in a previous commit for the ael_main.c;
Steve Murphy [Mon, 28 Aug 2006 15:31:14 +0000 (15:31 +0000)]
My apologies, I missed the compiler warning in a previous commit for the ael_main.c;
I've fixed this.

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

13 years agoGNU make already knows how to quietly ignore non-existent files in 'include' directives
Kevin P. Fleming [Sat, 26 Aug 2006 23:58:47 +0000 (23:58 +0000)]
GNU make already knows how to quietly ignore non-existent files in 'include' directives

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

13 years agoensure that unload_dynamic_module won't continue dereferencing a module pointer after...
Kevin P. Fleming [Sat, 26 Aug 2006 19:45:16 +0000 (19:45 +0000)]
ensure that unload_dynamic_module won't continue dereferencing a module pointer after the module has been unloaded from memory

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

13 years agomenuselect doesn't use asterisk's autoconfig.h anymore, so this ifdef can be
Russell Bryant [Sat, 26 Aug 2006 17:15:38 +0000 (17:15 +0000)]
menuselect doesn't use asterisk's autoconfig.h anymore, so this ifdef can be
removed

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

13 years agoensure that cross-compiler info is removed from the enviroment before configuring...
Kevin P. Fleming [Sat, 26 Aug 2006 17:05:38 +0000 (17:05 +0000)]
ensure that cross-compiler info is removed from the enviroment before configuring menuselect
ensure that the user's LDFLAGS take precedence when linking the final binary

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

13 years agomore optimizations for embedded systems:
Kevin P. Fleming [Sat, 26 Aug 2006 16:45:35 +0000 (16:45 +0000)]
more optimizations for embedded systems:
  when LOADABLE_MODULES is off, don't export symbols from the main binary
  when LOADABLE_MODULES is off, and the compiler/linker support it, strip out code not used in the final binary

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

13 years agoremove some unneeded variables now that the menuselect build is isolated from
Russell Bryant [Sat, 26 Aug 2006 16:13:45 +0000 (16:13 +0000)]
remove some unneeded variables now that the menuselect build is isolated from
the parent project

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

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