asterisk/asterisk.git
11 years agocomment a bit the code in acinclude.m4
Luigi Rizzo [Tue, 20 Nov 2007 14:54:52 +0000 (14:54 +0000)]
comment a bit the code in acinclude.m4
There is still a lot of code to clean up there, but hopefully
this should clarify what goes on in there.

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

11 years agoInclude the compatibility header file in ast_h323.cxx for compatibility reasons.
Joshua Colp [Tue, 20 Nov 2007 14:49:32 +0000 (14:49 +0000)]
Include the compatibility header file in ast_h323.cxx for compatibility reasons.
(closes issue #11311)
Reported by: falves11

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

11 years agoFix sip show history.
Olle Johansson [Tue, 20 Nov 2007 14:44:26 +0000 (14:44 +0000)]
Fix sip show history.

Closes issue #11312

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

11 years agoChange terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.
Olle Johansson [Tue, 20 Nov 2007 08:36:32 +0000 (08:36 +0000)]
Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.

Closes issue #11312

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

11 years agoinitial makefile changes to build loadable modules under cygwin
Luigi Rizzo [Tue, 20 Nov 2007 07:42:38 +0000 (07:42 +0000)]
initial makefile changes to build loadable modules under cygwin
(not complete yet - still need to sort out dependecies on res_*)

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

11 years agoGet rid of some debug messages in pbx.c
Steve Murphy [Tue, 20 Nov 2007 00:17:15 +0000 (00:17 +0000)]
Get rid of some debug messages in pbx.c

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

11 years agoChanged the "busy-level" option in sip.conf to "busylevel" to be more parallel
Mark Michelson [Mon, 19 Nov 2007 23:24:35 +0000 (23:24 +0000)]
Changed the "busy-level" option in sip.conf to "busylevel" to be more parallel
with the SIPPEER() argument of the same name. The deprecation procedure is not
being used here since this is a trunk-only option.

(closes issue #11307, reported by pj, patched by me)

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

11 years agoBe a bit more pedantic about the type for holding the md5 sum for the build options.
Russell Bryant [Mon, 19 Nov 2007 23:03:37 +0000 (23:03 +0000)]
Be a bit more pedantic about the type for holding the md5 sum for the build options.
Also, doxygenify the comment.

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

11 years agoMake the SYSINFO documentation reflect which options were compiled in
Russell Bryant [Mon, 19 Nov 2007 23:03:02 +0000 (23:03 +0000)]
Make the SYSINFO documentation reflect which options were compiled in

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

11 years agoThese changes were made in response to niklas@tese.se's letter of 11-17-2007, where...
Steve Murphy [Mon, 19 Nov 2007 22:55:38 +0000 (22:55 +0000)]
These changes were made in response to niklas@tese.se's letter of 11-17-2007, where he had 20 and 201 in two different contexts, included in the same context. In that particular case, we were behaving the same as 1.4, but after experimenting, I quickly found that if 20 and 201 were in the same extension, 1.4 would return 201, and this code returns 20. These changes now enable the current code to replicate the behavior of 1.4 in respect to MATCHMORE in cases like this.

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

11 years agoanother few errno.h removals
Luigi Rizzo [Mon, 19 Nov 2007 21:18:14 +0000 (21:18 +0000)]
another few errno.h removals

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

11 years agomore errno.h removal
Luigi Rizzo [Mon, 19 Nov 2007 21:12:08 +0000 (21:12 +0000)]
more errno.h removal

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

11 years agoremove unnecessary headers
Luigi Rizzo [Mon, 19 Nov 2007 21:04:04 +0000 (21:04 +0000)]
remove unnecessary headers

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

11 years agoremove some unnecessary includes.
Luigi Rizzo [Mon, 19 Nov 2007 20:42:06 +0000 (20:42 +0000)]
remove some unnecessary includes.

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

11 years agoChange delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the...
Tilghman Lesher [Mon, 19 Nov 2007 20:13:40 +0000 (20:13 +0000)]
Change delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the old ':' delimiter
Reported by: pj
Patch by: tilghman
Closes issue #11305

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

11 years agoremove some useless includes from codecs
Luigi Rizzo [Mon, 19 Nov 2007 19:51:55 +0000 (19:51 +0000)]
remove some useless includes from codecs

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

11 years agoformat handlers don't need network, lock, channel and scheduler headers
Luigi Rizzo [Mon, 19 Nov 2007 19:41:16 +0000 (19:41 +0000)]
format handlers don't need network, lock, channel and scheduler headers

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

11 years agomove the declaration of struct ast_channel ast_frame and ast_module
Luigi Rizzo [Mon, 19 Nov 2007 19:36:32 +0000 (19:36 +0000)]
move the declaration of struct ast_channel ast_frame and ast_module
to compat.h so it is always available - hopefully this will let
us reduce the number of inclusions of channel.h and frame.h

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

11 years agoanother bunch of include removals (errno.h and asterisk/logger.h)
Luigi Rizzo [Mon, 19 Nov 2007 19:09:03 +0000 (19:09 +0000)]
another bunch of include removals (errno.h and asterisk/logger.h)

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

11 years agoinclude "logger.h" and errno.h from asterisk.h - usage shows that they
Luigi Rizzo [Mon, 19 Nov 2007 18:52:04 +0000 (18:52 +0000)]
include "logger.h" and errno.h from asterisk.h - usage shows that they
were included almost everywhere.
Remove some of the instances.

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

11 years agoa correction to code involved in an extension removal
Steve Murphy [Mon, 19 Nov 2007 17:18:26 +0000 (17:18 +0000)]
a correction to code involved in an extension removal

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

11 years agoAdding SYSINFO() dialplan function for retrieval of system information
Mark Michelson [Mon, 19 Nov 2007 16:29:07 +0000 (16:29 +0000)]
Adding SYSINFO() dialplan function for retrieval of system information

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

11 years agoMerged revisions 89419 via svnmerge from
Joshua Colp [Mon, 19 Nov 2007 15:55:08 +0000 (15:55 +0000)]
Merged revisions 89419 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89419 | file | 2007-11-19 11:53:32 -0400 (Mon, 19 Nov 2007) | 6 lines

Print out the correct filename (features.conf) in the log message when parkpos options are incorrect.
(closes issue #11295)
Reported by: Laureano
Patches:
      res_features.c.patch uploaded by Laureano (license 265)

........

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

11 years agoMerged revisions 89416 via svnmerge from
Joshua Colp [Mon, 19 Nov 2007 15:27:08 +0000 (15:27 +0000)]
Merged revisions 89416 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89416 | file | 2007-11-19 11:24:12 -0400 (Mon, 19 Nov 2007) | 4 lines

Clarify documentation a bit, include that a frame has to pass through the core in order for the Local channel optimization to happen.
(closes issue #11246)
Reported by: jon

........

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

11 years agorevert inclusion of options.h
Luigi Rizzo [Mon, 19 Nov 2007 14:36:12 +0000 (14:36 +0000)]
revert inclusion of options.h

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

11 years agoChange warning messages (which are really debug messages) into debug messages.
Joshua Colp [Mon, 19 Nov 2007 14:03:30 +0000 (14:03 +0000)]
Change warning messages (which are really debug messages) into debug messages.
(closes issue #11288)
Reported by: IgorG
Patches:
      saydebug-89394-1-trunk.patch uploaded by IgorG (license 20)

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

11 years agoUpdate CHANGES
Olle Johansson [Mon, 19 Nov 2007 09:16:56 +0000 (09:16 +0000)]
Update CHANGES

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

11 years agoAdding busy-level to the SIP_PEER() dialplan function.
Olle Johansson [Mon, 19 Nov 2007 09:12:27 +0000 (09:12 +0000)]
Adding busy-level to the SIP_PEER() dialplan function.

With this, you can control the peer in the dialplan, so you avoid placing outbound
calls when the device has reached busy-level.
Reported by pj.

Closes bug #11180

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

11 years agoAdd some debugging to the routines that finds our local IP address.
Olle Johansson [Mon, 19 Nov 2007 08:41:14 +0000 (08:41 +0000)]
Add some debugging to the routines that finds our local IP address.

Related to bug #9225

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

11 years agoMake some notes about a problem I found with the OPTIONs handler while working with
Olle Johansson [Mon, 19 Nov 2007 08:34:26 +0000 (08:34 +0000)]
Make some notes about a problem I found with the OPTIONs handler while working with
the bug tracker. Since we don't authenticate devices (peers/users) on OPTIONS we don't
have the proper context set for the user/peer.

However, we might not want to process an authentication for every OPTIONS, so we could
have a config option for this, "optionsforceok" to always answer 200 OK on the request
and not check device or destination, nor add a SDP. If Asterisk sends the OPTIONs request,
it doesn't care about the reply. Some devices use OPTIONs to discover capabilities,
since we should answer like an INVITE from the device and we need to support that properly
too, which we don't today.

So much to do :-)

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

11 years agoAdd OSX into the logic that uses md5 instead of md5sum.
Joshua Colp [Sun, 18 Nov 2007 21:50:58 +0000 (21:50 +0000)]
Add OSX into the logic that uses md5 instead of md5sum.

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

11 years agoUse the easy way that rizzo mentioned, only include malloc.h on the Windows platform.
Joshua Colp [Sun, 18 Nov 2007 17:49:40 +0000 (17:49 +0000)]
Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.

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

11 years agoRevert last commit, apparently buildbot lied to me.
Joshua Colp [Sun, 18 Nov 2007 17:03:38 +0000 (17:03 +0000)]
Revert last commit, apparently buildbot lied to me.

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

11 years agoChange how we handle alloca to conform with how it is suggested in the autoconf manua...
Joshua Colp [Sun, 18 Nov 2007 17:01:41 +0000 (17:01 +0000)]
Change how we handle alloca to conform with how it is suggested in the autoconf manual for AC_FUNC_ALLOCA. FreeBSD 6 now builds again and no other platforms should be broken by this.

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

11 years agoChange autoconf logic a bit so it says what it is looking for in two instances where...
Joshua Colp [Sun, 18 Nov 2007 16:43:08 +0000 (16:43 +0000)]
Change autoconf logic a bit so it says what it is looking for in two instances where it didn't.

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

11 years agoUse autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_N...
Joshua Colp [Sat, 17 Nov 2007 23:03:16 +0000 (23:03 +0000)]
Use autoconf logic to determine the presence of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP and PTHREAD_MUTEX_RECURSIVE_NP. Enclose error message from network.h in "

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

11 years agoAdd SS7 Generic address support (#11156)
Matthew Fredrickson [Sat, 17 Nov 2007 21:47:48 +0000 (21:47 +0000)]
Add SS7 Generic address support (#11156)

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

11 years agoif alloca.h is not present, try malloc.h
Luigi Rizzo [Sat, 17 Nov 2007 19:29:54 +0000 (19:29 +0000)]
if alloca.h is not present, try malloc.h

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

11 years agotemporarily disable this target in mingw
Luigi Rizzo [Sat, 17 Nov 2007 19:29:04 +0000 (19:29 +0000)]
temporarily disable this target in mingw

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

11 years agowill i ever get precedences for windows right ?
Luigi Rizzo [Sat, 17 Nov 2007 19:27:51 +0000 (19:27 +0000)]
will i ever get precedences for windows right ?
in the meantime, use a variable to ease enabling/disabling print subdirectories.

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

11 years agoreformulate dependencies in a more correct way
Luigi Rizzo [Sat, 17 Nov 2007 19:00:07 +0000 (19:00 +0000)]
reformulate dependencies in a more correct way

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

11 years agoa quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing...
Steve Murphy [Sat, 17 Nov 2007 17:46:36 +0000 (17:46 +0000)]
a quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing. And some additions to removal of extens to take care of hashtab pointers in all cases.

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

11 years agoas discussed some time ago on the -dev list, create embedde object
Luigi Rizzo [Sat, 17 Nov 2007 17:27:26 +0000 (17:27 +0000)]
as discussed some time ago on the -dev list, create embedde object
with a .eo suffix even if they are coming from .cc sources.
This simplifies the handling in the build scripts.

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

11 years agoprefer socket.h over other variants (winsock etc.)
Luigi Rizzo [Sat, 17 Nov 2007 16:32:18 +0000 (16:32 +0000)]
prefer socket.h over other variants (winsock etc.)

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

11 years agotrim more redundant headers
Luigi Rizzo [Sat, 17 Nov 2007 16:18:53 +0000 (16:18 +0000)]
trim more redundant headers

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

11 years agoremove unnecessary includes
Luigi Rizzo [Sat, 17 Nov 2007 14:47:33 +0000 (14:47 +0000)]
remove unnecessary includes

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

11 years agofix breakage induced by previous mistake
Luigi Rizzo [Sat, 17 Nov 2007 14:45:46 +0000 (14:45 +0000)]
fix breakage induced by previous mistake

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

11 years agowrong variable, wrong order -> broken build.
Luigi Rizzo [Sat, 17 Nov 2007 14:44:03 +0000 (14:44 +0000)]
wrong variable, wrong order -> broken build.

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

11 years agostart using asterisk/network.h for network related headers.
Luigi Rizzo [Sat, 17 Nov 2007 14:11:53 +0000 (14:11 +0000)]
start using asterisk/network.h for network related headers.
Also remove some unnecessary includes.

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

11 years agowrapper for all generic network headers that have different names
Luigi Rizzo [Sat, 17 Nov 2007 14:00:24 +0000 (14:00 +0000)]
wrapper for all generic network headers that have different names
and locations on the various systems.

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

11 years agomain is called main not amain!
Luigi Rizzo [Sat, 17 Nov 2007 12:44:22 +0000 (12:44 +0000)]
main is called main not amain!

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

11 years agoconditional targets for building the windows version
Luigi Rizzo [Sat, 17 Nov 2007 12:33:15 +0000 (12:33 +0000)]
conditional targets for building the windows version

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

11 years agosupport cygwin targets
Luigi Rizzo [Sat, 17 Nov 2007 11:57:52 +0000 (11:57 +0000)]
support cygwin targets

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

11 years agoand this is the last one to have asterisk compile (not run yet)
Luigi Rizzo [Sat, 17 Nov 2007 11:10:16 +0000 (11:10 +0000)]
and this is the last one to have asterisk compile (not run yet)
natively under cygwin.

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

11 years agoanother cygwin compatibility fix.
Luigi Rizzo [Sat, 17 Nov 2007 11:08:58 +0000 (11:08 +0000)]
another cygwin compatibility fix.
This one must be handled in a better way in configure, also for other
architectures

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

11 years agomore cygwin/mingw32 compatibility fixes
Luigi Rizzo [Sat, 17 Nov 2007 10:54:52 +0000 (10:54 +0000)]
more cygwin/mingw32 compatibility fixes

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

11 years agouse autoconf results to conditionally compile timersub
Luigi Rizzo [Sat, 17 Nov 2007 10:32:56 +0000 (10:32 +0000)]
use autoconf results to conditionally compile timersub

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

11 years agocompatibility fixes for cygwin
Luigi Rizzo [Sat, 17 Nov 2007 10:28:55 +0000 (10:28 +0000)]
compatibility fixes for cygwin

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

11 years agosome version of flex produce code that wants __STDC_VERSION__
Luigi Rizzo [Sat, 17 Nov 2007 10:26:21 +0000 (10:26 +0000)]
some version of flex produce code that wants __STDC_VERSION__
defined, but the compiler does not always define it.

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

11 years agothese linker flags apply to both cygwin and mingw32
Luigi Rizzo [Sat, 17 Nov 2007 10:12:43 +0000 (10:12 +0000)]
these linker flags apply to both cygwin and mingw32

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

11 years agoadd a return NULL to a function that is expected to return a value
Luigi Rizzo [Sat, 17 Nov 2007 09:54:54 +0000 (09:54 +0000)]
add a return NULL to a function that is expected to return a value
so compilers that don't understand that this code is NOTREACHED
will not complain (the fault is not much on the compiler but on the
declaration of pthread_exit on certain platforms)
s/certain platform/cygwin/ if you are really curious

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

11 years agodefine RTLD_LOCAL for platforms that don't have it.
Luigi Rizzo [Sat, 17 Nov 2007 09:51:45 +0000 (09:51 +0000)]
define RTLD_LOCAL for platforms that don't have it.
This is only to complete the build, clearly the linker
behaviour will be completely different and likely to
cause trouble in those cases.

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

11 years agofilter out modules that do not compile under windows
Luigi Rizzo [Sat, 17 Nov 2007 09:48:45 +0000 (09:48 +0000)]
filter out modules that do not compile under windows
(this should be handled with the dependencies generated by
configure and menuselect, but will be fixed later)

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

11 years agonetdb.h is used for gethostbyname, and it was not included in some
Luigi Rizzo [Sat, 17 Nov 2007 09:44:14 +0000 (09:44 +0000)]
netdb.h is used for gethostbyname, and it was not included in some
platforms.

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

11 years agoLoader for cygwin where asterisk is really a big dll
Luigi Rizzo [Sat, 17 Nov 2007 09:37:12 +0000 (09:37 +0000)]
Loader for cygwin where asterisk is really a big dll
(something like this is already in 1.2)

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

11 years agotimersub is a macro not a function, so write the check in a way
Luigi Rizzo [Sat, 17 Nov 2007 09:30:22 +0000 (09:30 +0000)]
timersub is a macro not a function, so write the check in a way
that detects both formats.

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

11 years agofix the build of pbx_lua
Russell Bryant [Sat, 17 Nov 2007 06:34:10 +0000 (06:34 +0000)]
fix the build of pbx_lua

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

11 years agoUpdate the configure script check for sys/poll.h to also provide the result in
Russell Bryant [Sat, 17 Nov 2007 06:33:07 +0000 (06:33 +0000)]
Update the configure script check for sys/poll.h to also provide the result in
include/asterisk/autoconfig.h.  Also, move the conditional include of sys/poll.h
or asterisk/poll-compat.h into asterisk/config.h instead of the two headers it
existed in before.

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

11 years agoactually let this compile, oops :(
Russell Bryant [Sat, 17 Nov 2007 06:09:42 +0000 (06:09 +0000)]
actually let this compile, oops :(

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

11 years agoUse the fix suggested by Tilghman on the -dev to make cutting up the BUILDSUM
Russell Bryant [Sat, 17 Nov 2007 06:07:57 +0000 (06:07 +0000)]
Use the fix suggested by Tilghman on the -dev to make cutting up the BUILDSUM
friendly to non-bash shells.  I think this should work for BSD/mingw as well,
but did not yet remove the switch statement.

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

11 years agolinker flags for mingw32
Luigi Rizzo [Sat, 17 Nov 2007 04:19:02 +0000 (04:19 +0000)]
linker flags for mingw32

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

11 years agoadd detection for timersub() and winsock.h/winsock2.h
Luigi Rizzo [Sat, 17 Nov 2007 04:17:53 +0000 (04:17 +0000)]
add detection for timersub() and winsock.h/winsock2.h

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

11 years agoprovide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.
Luigi Rizzo [Sat, 17 Nov 2007 03:28:31 +0000 (03:28 +0000)]
provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.

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

11 years agouse poll as detected by configure
Luigi Rizzo [Sat, 17 Nov 2007 03:07:06 +0000 (03:07 +0000)]
use poll as detected by configure

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

11 years agouse autoconf to check for the existence of sys/poll.h
Luigi Rizzo [Sat, 17 Nov 2007 02:57:40 +0000 (02:57 +0000)]
use autoconf to check for the existence of sys/poll.h

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

11 years agothis script is run on the build system, not on the host.
Luigi Rizzo [Sat, 17 Nov 2007 02:54:23 +0000 (02:54 +0000)]
this script is run on the build system, not on the host.

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

11 years agocompatibility fix for mingw32
Luigi Rizzo [Sat, 17 Nov 2007 02:50:52 +0000 (02:50 +0000)]
compatibility fix for mingw32

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

11 years agoacinclude.m4: add a function to help checking sdl-config, gtk-config
Luigi Rizzo [Sat, 17 Nov 2007 01:49:26 +0000 (01:49 +0000)]
acinclude.m4: add a function to help checking sdl-config, gtk-config
and the like (this could be used for gtk and gtk2 as well)
Other files: add tests for sdl, sdl_image and avcodec and regenerate
configure and autoconfig.h.in

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

11 years agoadd check for the presence of glob
Luigi Rizzo [Sat, 17 Nov 2007 00:31:32 +0000 (00:31 +0000)]
add check for the presence of glob

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

11 years agomore removal of duplicate #include lines
Luigi Rizzo [Sat, 17 Nov 2007 00:02:33 +0000 (00:02 +0000)]
more removal of duplicate #include lines

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

11 years agoremove a bunch of duplicate includes
Luigi Rizzo [Fri, 16 Nov 2007 23:54:45 +0000 (23:54 +0000)]
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

11 years agoFix broken parking dial-back
Terry Wilson [Fri, 16 Nov 2007 23:44:14 +0000 (23:44 +0000)]
Fix broken parking dial-back

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

11 years agoMy goodness, haven't handled an extension deletion. Add code to ast_context_remove_ex...
Steve Murphy [Fri, 16 Nov 2007 23:33:32 +0000 (23:33 +0000)]
My goodness, haven't handled an extension deletion. Add code to ast_context_remove_extension2() to remove an extension from the trie. Done by marking it deleted. The scoreboard won't update for it any more. Also, a couple of calls to insert hashtab had a spurious ->exten, which was removed.

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

11 years agopaths are already in include/asterisk/paths.h so don't duplicate
Luigi Rizzo [Fri, 16 Nov 2007 23:28:28 +0000 (23:28 +0000)]
paths are already in include/asterisk/paths.h so don't duplicate
them in include/asterisk.h

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

11 years agowhitespace only change - adjust indentation and add some
Luigi Rizzo [Fri, 16 Nov 2007 22:37:17 +0000 (22:37 +0000)]
whitespace only change - adjust indentation and add some
comments on the content of these two files.

utils.h (which is included in over 150 files) contains a lot of
unrelated functions which require the inclusion of a large number
of other headers.  At some point we should partition its content
in a better way.

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

11 years agoBlocked revisions 89339 via svnmerge
Russell Bryant [Fri, 16 Nov 2007 22:33:24 +0000 (22:33 +0000)]
Blocked revisions 89339 via svnmerge

........
r89339 | russell | 2007-11-16 16:26:44 -0600 (Fri, 16 Nov 2007) | 5 lines

Temporarily revert revision 89325, which added md5 magic for keeping track of
what build options were used.  We agreed that we should remove this before
making a 1.4 release, and then we can put it back in.  Then, we can take a
month or so to play around with it to get it how we want it.

........

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

11 years agologger.h does not need options.h
Luigi Rizzo [Fri, 16 Nov 2007 21:23:50 +0000 (21:23 +0000)]
logger.h does not need options.h

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

11 years agoremove redundant #include "asterisk/compat.h",
Luigi Rizzo [Fri, 16 Nov 2007 21:08:28 +0000 (21:08 +0000)]
remove redundant #include "asterisk/compat.h",
but make sure that asterisk/compiler.h is included everywhere

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

11 years agoremove duplicate headers.
Luigi Rizzo [Fri, 16 Nov 2007 20:28:19 +0000 (20:28 +0000)]
remove duplicate headers.
Properly check for netdb.h (there is actually tens of places to fix)

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

11 years agoput back default optimization to -O6 (previously changed by mistake)
Luigi Rizzo [Fri, 16 Nov 2007 20:15:21 +0000 (20:15 +0000)]
put back default optimization to -O6 (previously changed by mistake)

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

11 years agoStart untangling header inclusion in a way that does not affect
Luigi Rizzo [Fri, 16 Nov 2007 20:04:58 +0000 (20:04 +0000)]
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

11 years agoFixing a problem pointed out by Qwell
Mark Michelson [Fri, 16 Nov 2007 19:51:47 +0000 (19:51 +0000)]
Fixing a problem pointed out by Qwell

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

11 years agoAdded some locks that should have been around astman_send_error,
Mark Michelson [Fri, 16 Nov 2007 19:41:15 +0000 (19:41 +0000)]
Added some locks that should have been around astman_send_error,
at least according to the comments.

(closes issue #11258, reported and patched by eliel)

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

11 years agoThis corrects a hashtab removal, given a bad argument
Steve Murphy [Fri, 16 Nov 2007 19:26:54 +0000 (19:26 +0000)]
This corrects a hashtab removal, given a bad argument

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

11 years agoThis fixes a problem with pattern ranges; and corrects a situation in res_features...
Steve Murphy [Fri, 16 Nov 2007 18:59:02 +0000 (18:59 +0000)]
This fixes a problem with pattern ranges; and corrects a situation in res_features, where an extension would be created with the name Zap/51, as an example. THe / is bad because it would tend to mean that the 51 is to be cid matched.

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

11 years agoboth md5sum and variable substitutions such as ${BUILDSUM:0:8}
Luigi Rizzo [Fri, 16 Nov 2007 18:48:15 +0000 (18:48 +0000)]
both md5sum and variable substitutions such as ${BUILDSUM:0:8}
are not available in FreeBSD.
For the time being, put in a workaround so we can build the system,
and wait for the result of the discussion on whether we can store
the md5 as a string rather than 4 ints (if so, we won't need more
complex tricks with awk or sed for splitting the md5).

1.4 will be fixed when we decide the issue.

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

11 years agoAdding confirmation playback when forwarding voicemail messages. This will attempt
Mark Michelson [Fri, 16 Nov 2007 17:11:43 +0000 (17:11 +0000)]
Adding confirmation playback when forwarding voicemail messages. This will attempt
to play the name(s) of the person(s) to whom you are forwarding the message prior to
prompting for prepending. If no name is found, the extension is read back verbatim.

(closes issue #9046, reported and patched by jaroth)

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

11 years agoMerged revisions 89325 via svnmerge from
Kevin P. Fleming [Fri, 16 Nov 2007 16:56:59 +0000 (16:56 +0000)]
Merged revisions 89325 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89325 | kpfleming | 2007-11-16 10:47:46 -0600 (Fri, 16 Nov 2007) | 4 lines

To help combat problems where people build external modules (asterisk-addons or others) and then change the build options of the Asterisk build in a way that makes the incompatible without warning, this commit introduces an MD5 signature of the important build-time options and includes that signature into modules when they are built. When the loader loads one of these modules and notices the problem, it will emit a warning to console and refuse to initialize the module, as doing so could cause the system to be unstable or even crash.

If you upgrade to this version of Asterisk, you must rebuild *all* of your modules that came from other sources before trying to run this version. If you are using Digium's G.729 binary codec module, you will need v33 or newer.

........

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

11 years agoMerged revisions 89323 via svnmerge from
Mark Michelson [Fri, 16 Nov 2007 15:44:27 +0000 (15:44 +0000)]
Merged revisions 89323 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89323 | mmichelson | 2007-11-16 09:28:22 -0600 (Fri, 16 Nov 2007) | 5 lines

Make realtime queues accessible from the QUEUE_MEMBER_COUNT function.

(closes issue #11271, reported and patched by atis, with small modifications from me)

........

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

11 years agoadd a small new function to retrieve variables from a config
Luigi Rizzo [Fri, 16 Nov 2007 10:07:24 +0000 (10:07 +0000)]
add a small new function to retrieve variables from a config
once we have a pointer to the category.

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