[svn-commits] murf: branch murf/bug11210 r89539 - in /team/murf/bug11210: ./ agi/ apps/ bui...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Nov 23 18:54:36 CST 2007


Author: murf
Date: Fri Nov 23 18:54:34 2007
New Revision: 89539

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89539
Log:
Merged revisions 89319-89322,89324,89326-89336,89338,89340-89341,89345-89385,89387-89399,89404-89407,89410,89412,89417,89420-89422,89424-89433,89438-89444,89446-89449,89451-89455,89458-89460,89463-89470,89472-89484,89487-89490,89492,89494,89496,89504-89519,89521-89524,89526,89529-89533,89535,89537 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
r89319 | crichter | 2007-11-16 01:54:04 -0700 (Fri, 16 Nov 2007) | 1 line

fixed compilation of chan_misdn, #11269, thanks IgorG.
................
r89320 | rizzo | 2007-11-16 02:51:41 -0700 (Fri, 16 Nov 2007) | 5 lines

move the inner part of config file parsing to a separate function,
so it can be reused in the implementation of cli commands when
they have a similar syntax.


................
r89321 | crichter | 2007-11-16 03:06:55 -0700 (Fri, 16 Nov 2007) | 1 line

fixed #10631, about one way audio. thanks IgorG again.
................
r89322 | rizzo | 2007-11-16 03:07:24 -0700 (Fri, 16 Nov 2007) | 4 lines

add a small new function to retrieve variables from a config
once we have a pointer to the category.


................
r89324 | mmichelson | 2007-11-16 08:44:27 -0700 (Fri, 16 Nov 2007) | 13 lines

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)


........

................
r89326 | kpfleming | 2007-11-16 09:56:59 -0700 (Fri, 16 Nov 2007) | 12 lines

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.

........

................
r89327 | mmichelson | 2007-11-16 10:11:43 -0700 (Fri, 16 Nov 2007) | 7 lines

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)


................
r89328 | rizzo | 2007-11-16 11:48:15 -0700 (Fri, 16 Nov 2007) | 10 lines

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.


................
r89329 | murf | 2007-11-16 11:59:02 -0700 (Fri, 16 Nov 2007) | 1 line

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.
................
r89330 | murf | 2007-11-16 12:26:54 -0700 (Fri, 16 Nov 2007) | 1 line

This corrects a hashtab removal, given a bad argument
................
r89331 | mmichelson | 2007-11-16 12:41:15 -0700 (Fri, 16 Nov 2007) | 6 lines

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)


................
r89332 | mmichelson | 2007-11-16 12:51:47 -0700 (Fri, 16 Nov 2007) | 3 lines

Fixing a problem pointed out by Qwell


................
r89333 | rizzo | 2007-11-16 13:04:58 -0700 (Fri, 16 Nov 2007) | 21 lines

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.).


................
r89334 | rizzo | 2007-11-16 13:15:21 -0700 (Fri, 16 Nov 2007) | 3 lines

put back default optimization to -O6 (previously changed by mistake)


................
r89335 | rizzo | 2007-11-16 13:28:19 -0700 (Fri, 16 Nov 2007) | 4 lines

remove duplicate headers.
Properly check for netdb.h (there is actually tens of places to fix)


................
r89336 | rizzo | 2007-11-16 14:08:28 -0700 (Fri, 16 Nov 2007) | 4 lines

remove redundant #include "asterisk/compat.h",
but make sure that asterisk/compiler.h is included everywhere


................
r89338 | rizzo | 2007-11-16 14:23:50 -0700 (Fri, 16 Nov 2007) | 3 lines

logger.h does not need options.h


................
r89340 | russell | 2007-11-16 15:33:24 -0700 (Fri, 16 Nov 2007) | 12 lines

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.

........

................
r89341 | rizzo | 2007-11-16 15:37:17 -0700 (Fri, 16 Nov 2007) | 9 lines

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.


................
r89345 | rizzo | 2007-11-16 16:28:28 -0700 (Fri, 16 Nov 2007) | 4 lines

paths are already in include/asterisk/paths.h so don't duplicate
them in include/asterisk.h


................
r89346 | murf | 2007-11-16 16:33:32 -0700 (Fri, 16 Nov 2007) | 1 line

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.
................
r89347 | twilson | 2007-11-16 16:44:14 -0700 (Fri, 16 Nov 2007) | 2 lines

Fix broken parking dial-back

................
r89348 | rizzo | 2007-11-16 16:54:45 -0700 (Fri, 16 Nov 2007) | 6 lines

remove a bunch of duplicate includes
Reproduce with

grep -r #include . | grep -v .svn | grep -v Binary | sort | uniq -c | sort -nr 


................
r89349 | rizzo | 2007-11-16 17:02:33 -0700 (Fri, 16 Nov 2007) | 3 lines

more removal of duplicate #include lines


................
r89350 | rizzo | 2007-11-16 17:31:32 -0700 (Fri, 16 Nov 2007) | 3 lines

add check for the presence of glob


................
r89351 | rizzo | 2007-11-16 18:49:26 -0700 (Fri, 16 Nov 2007) | 6 lines

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


................
r89352 | rizzo | 2007-11-16 19:50:52 -0700 (Fri, 16 Nov 2007) | 2 lines

compatibility fix for mingw32

................
r89353 | rizzo | 2007-11-16 19:54:23 -0700 (Fri, 16 Nov 2007) | 2 lines

this script is run on the build system, not on the host.

................
r89354 | rizzo | 2007-11-16 19:57:40 -0700 (Fri, 16 Nov 2007) | 3 lines

use autoconf to check for the existence of sys/poll.h


................
r89355 | rizzo | 2007-11-16 20:07:06 -0700 (Fri, 16 Nov 2007) | 2 lines

use poll as detected by configure

................
r89356 | rizzo | 2007-11-16 20:28:31 -0700 (Fri, 16 Nov 2007) | 3 lines

provide definitions for __LITTLE_ENDIAN and __BIG_ENDIAN if not present.


................
r89357 | rizzo | 2007-11-16 21:17:53 -0700 (Fri, 16 Nov 2007) | 3 lines

add detection for timersub() and winsock.h/winsock2.h


................
r89358 | rizzo | 2007-11-16 21:19:02 -0700 (Fri, 16 Nov 2007) | 3 lines

linker flags for mingw32


................
r89359 | russell | 2007-11-16 23:07:57 -0700 (Fri, 16 Nov 2007) | 4 lines

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.

................
r89360 | russell | 2007-11-16 23:09:42 -0700 (Fri, 16 Nov 2007) | 2 lines

actually let this compile, oops :(

................
r89361 | russell | 2007-11-16 23:33:07 -0700 (Fri, 16 Nov 2007) | 5 lines

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.

................
r89362 | russell | 2007-11-16 23:34:10 -0700 (Fri, 16 Nov 2007) | 1 line

fix the build of pbx_lua
................
r89363 | rizzo | 2007-11-17 02:30:22 -0700 (Sat, 17 Nov 2007) | 4 lines

timersub is a macro not a function, so write the check in a way
that detects both formats.


................
r89364 | rizzo | 2007-11-17 02:37:12 -0700 (Sat, 17 Nov 2007) | 4 lines

Loader for cygwin where asterisk is really a big dll
(something like this is already in 1.2)


................
r89365 | rizzo | 2007-11-17 02:44:14 -0700 (Sat, 17 Nov 2007) | 4 lines

netdb.h is used for gethostbyname, and it was not included in some
platforms.


................
r89366 | rizzo | 2007-11-17 02:48:45 -0700 (Sat, 17 Nov 2007) | 5 lines

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)


................
r89367 | rizzo | 2007-11-17 02:51:45 -0700 (Sat, 17 Nov 2007) | 6 lines

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.


................
r89368 | rizzo | 2007-11-17 02:54:54 -0700 (Sat, 17 Nov 2007) | 7 lines

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


................
r89369 | rizzo | 2007-11-17 03:12:43 -0700 (Sat, 17 Nov 2007) | 2 lines

these linker flags apply to both cygwin and mingw32

................
r89370 | rizzo | 2007-11-17 03:26:21 -0700 (Sat, 17 Nov 2007) | 4 lines

some version of flex produce code that wants __STDC_VERSION__
defined, but the compiler does not always define it.


................
r89371 | rizzo | 2007-11-17 03:28:55 -0700 (Sat, 17 Nov 2007) | 3 lines

compatibility fixes for cygwin


................
r89372 | rizzo | 2007-11-17 03:32:56 -0700 (Sat, 17 Nov 2007) | 2 lines

use autoconf results to conditionally compile timersub

................
r89373 | rizzo | 2007-11-17 03:54:52 -0700 (Sat, 17 Nov 2007) | 3 lines

more cygwin/mingw32 compatibility fixes


................
r89374 | rizzo | 2007-11-17 04:08:58 -0700 (Sat, 17 Nov 2007) | 5 lines

another cygwin compatibility fix.
This one must be handled in a better way in configure, also for other
architectures


................
r89375 | rizzo | 2007-11-17 04:10:16 -0700 (Sat, 17 Nov 2007) | 4 lines

and this is the last one to have asterisk compile (not run yet)
natively under cygwin.


................
r89376 | rizzo | 2007-11-17 04:57:52 -0700 (Sat, 17 Nov 2007) | 3 lines

support cygwin targets


................
r89377 | rizzo | 2007-11-17 05:33:15 -0700 (Sat, 17 Nov 2007) | 3 lines

conditional targets for building the windows version


................
r89378 | rizzo | 2007-11-17 05:44:22 -0700 (Sat, 17 Nov 2007) | 3 lines

main is called main not amain!


................
r89379 | rizzo | 2007-11-17 07:00:24 -0700 (Sat, 17 Nov 2007) | 4 lines

wrapper for all generic network headers that have different names
and locations on the various systems.


................
r89380 | rizzo | 2007-11-17 07:11:53 -0700 (Sat, 17 Nov 2007) | 4 lines

start using asterisk/network.h for network related headers.
Also remove some unnecessary includes.


................
r89381 | rizzo | 2007-11-17 07:44:03 -0700 (Sat, 17 Nov 2007) | 3 lines

wrong variable, wrong order -> broken build.


................
r89382 | rizzo | 2007-11-17 07:45:46 -0700 (Sat, 17 Nov 2007) | 2 lines

fix breakage induced by previous mistake

................
r89383 | rizzo | 2007-11-17 07:47:33 -0700 (Sat, 17 Nov 2007) | 2 lines

remove unnecessary includes

................
r89384 | rizzo | 2007-11-17 09:18:53 -0700 (Sat, 17 Nov 2007) | 3 lines

trim more redundant headers


................
r89385 | rizzo | 2007-11-17 09:32:18 -0700 (Sat, 17 Nov 2007) | 3 lines

prefer socket.h over other variants (winsock etc.)


................
r89387 | rizzo | 2007-11-17 10:27:26 -0700 (Sat, 17 Nov 2007) | 5 lines

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.


................
r89388 | murf | 2007-11-17 10:46:36 -0700 (Sat, 17 Nov 2007) | 1 line

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.
................
r89389 | rizzo | 2007-11-17 12:00:07 -0700 (Sat, 17 Nov 2007) | 2 lines

reformulate dependencies in a more correct way

................
r89390 | rizzo | 2007-11-17 12:27:51 -0700 (Sat, 17 Nov 2007) | 4 lines

will i ever get precedences for windows right ?
in the meantime, use a variable to ease enabling/disabling print subdirectories.


................
r89391 | rizzo | 2007-11-17 12:29:04 -0700 (Sat, 17 Nov 2007) | 2 lines

temporarily disable this target in mingw

................
r89392 | rizzo | 2007-11-17 12:29:54 -0700 (Sat, 17 Nov 2007) | 3 lines

if alloca.h is not present, try malloc.h


................
r89393 | mattf | 2007-11-17 14:47:48 -0700 (Sat, 17 Nov 2007) | 1 line

Add SS7 Generic address support (#11156)
................
r89394 | file | 2007-11-17 16:03:16 -0700 (Sat, 17 Nov 2007) | 2 lines

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 "

................
r89395 | file | 2007-11-18 09:43:08 -0700 (Sun, 18 Nov 2007) | 2 lines

Change autoconf logic a bit so it says what it is looking for in two instances where it didn't.

................
r89396 | file | 2007-11-18 10:01:41 -0700 (Sun, 18 Nov 2007) | 2 lines

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.

................
r89397 | file | 2007-11-18 10:03:38 -0700 (Sun, 18 Nov 2007) | 2 lines

Revert last commit, apparently buildbot lied to me.

................
r89398 | file | 2007-11-18 10:49:40 -0700 (Sun, 18 Nov 2007) | 2 lines

Use the easy way that rizzo mentioned, only include malloc.h on the Windows platform.

................
r89399 | file | 2007-11-18 14:50:58 -0700 (Sun, 18 Nov 2007) | 2 lines

Add OSX into the logic that uses md5 instead of md5sum.

................
r89404 | oej | 2007-11-19 01:34:26 -0700 (Mon, 19 Nov 2007) | 13 lines

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 :-)

................
r89405 | oej | 2007-11-19 01:41:14 -0700 (Mon, 19 Nov 2007) | 4 lines

Add some debugging to the routines that finds our local IP address.

Related to bug #9225

................
r89406 | oej | 2007-11-19 02:12:27 -0700 (Mon, 19 Nov 2007) | 9 lines

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


................
r89407 | oej | 2007-11-19 02:16:56 -0700 (Mon, 19 Nov 2007) | 2 lines

Update CHANGES

................
r89410 | file | 2007-11-19 07:03:30 -0700 (Mon, 19 Nov 2007) | 6 lines

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)

................
r89412 | rizzo | 2007-11-19 07:36:12 -0700 (Mon, 19 Nov 2007) | 3 lines

revert inclusion of options.h


................
r89417 | file | 2007-11-19 08:27:08 -0700 (Mon, 19 Nov 2007) | 12 lines

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

........

................
r89420 | file | 2007-11-19 08:55:08 -0700 (Mon, 19 Nov 2007) | 14 lines

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)

........

................
r89421 | mmichelson | 2007-11-19 09:29:07 -0700 (Mon, 19 Nov 2007) | 3 lines

Adding SYSINFO() dialplan function for retrieval of system information


................
r89422 | murf | 2007-11-19 10:18:26 -0700 (Mon, 19 Nov 2007) | 1 line

a correction to code involved in an extension removal
................
r89424 | rizzo | 2007-11-19 11:52:04 -0700 (Mon, 19 Nov 2007) | 5 lines

include "logger.h" and errno.h from asterisk.h - usage shows that they
were included almost everywhere.
Remove some of the instances.


................
r89425 | rizzo | 2007-11-19 12:09:03 -0700 (Mon, 19 Nov 2007) | 3 lines

another bunch of include removals (errno.h and asterisk/logger.h)


................
r89426 | rizzo | 2007-11-19 12:36:32 -0700 (Mon, 19 Nov 2007) | 5 lines

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


................
r89427 | rizzo | 2007-11-19 12:41:16 -0700 (Mon, 19 Nov 2007) | 2 lines

format handlers don't need network, lock, channel and scheduler headers

................
r89428 | rizzo | 2007-11-19 12:51:55 -0700 (Mon, 19 Nov 2007) | 2 lines

remove some useless includes from codecs

................
r89429 | tilghman | 2007-11-19 13:13:40 -0700 (Mon, 19 Nov 2007) | 5 lines

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

................
r89430 | rizzo | 2007-11-19 13:42:06 -0700 (Mon, 19 Nov 2007) | 2 lines

remove some unnecessary includes.

................
r89431 | rizzo | 2007-11-19 14:04:04 -0700 (Mon, 19 Nov 2007) | 2 lines

remove unnecessary headers

................
r89432 | rizzo | 2007-11-19 14:12:08 -0700 (Mon, 19 Nov 2007) | 2 lines

more errno.h removal

................
r89433 | rizzo | 2007-11-19 14:18:14 -0700 (Mon, 19 Nov 2007) | 2 lines

another few errno.h removals

................
r89438 | murf | 2007-11-19 15:55:38 -0700 (Mon, 19 Nov 2007) | 1 line

These changes were made in response to niklas at 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.
................
r89439 | russell | 2007-11-19 16:03:02 -0700 (Mon, 19 Nov 2007) | 2 lines

Make the SYSINFO documentation reflect which options were compiled in

................
r89440 | russell | 2007-11-19 16:03:37 -0700 (Mon, 19 Nov 2007) | 3 lines

Be a bit more pedantic about the type for holding the md5 sum for the build options.
Also, doxygenify the comment.

................
r89441 | mmichelson | 2007-11-19 16:24:35 -0700 (Mon, 19 Nov 2007) | 7 lines

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)


................
r89442 | murf | 2007-11-19 17:17:15 -0700 (Mon, 19 Nov 2007) | 1 line

Get rid of some debug messages in pbx.c
................
r89443 | rizzo | 2007-11-20 00:42:38 -0700 (Tue, 20 Nov 2007) | 4 lines

initial makefile changes to build loadable modules under cygwin
(not complete yet - still need to sort out dependecies on res_*)


................
r89444 | oej | 2007-11-20 01:36:32 -0700 (Tue, 20 Nov 2007) | 4 lines

Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.

Closes issue #11312

................
r89446 | oej | 2007-11-20 07:44:26 -0700 (Tue, 20 Nov 2007) | 4 lines

Fix sip show history.

Closes issue #11312

................
r89447 | file | 2007-11-20 07:49:32 -0700 (Tue, 20 Nov 2007) | 4 lines

Include the compatibility header file in ast_h323.cxx for compatibility reasons.
(closes issue #11311)
Reported by: falves11

................
r89448 | rizzo | 2007-11-20 07:54:52 -0700 (Tue, 20 Nov 2007) | 4 lines

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.

................
r89449 | file | 2007-11-20 08:00:41 -0700 (Tue, 20 Nov 2007) | 6 lines

Minor documentation tweak and if an incorrect parameter is given to core show translation return the usage information.
(closes issue #11316)
Reported by: eliel
Patches:
      translate.c.patch uploaded by eliel (license 64)

................
r89451 | murf | 2007-11-20 08:30:48 -0700 (Tue, 20 Nov 2007) | 9 lines

Merged revisions 89450 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89450 | murf | 2007-11-20 08:22:08 -0700 (Tue, 20 Nov 2007) | 1 line

closes issue #11324; break statements missing in switch cases.
........

................
r89452 | rizzo | 2007-11-20 08:39:00 -0700 (Tue, 20 Nov 2007) | 5 lines

add an argument for extra headers to AC_EXT_LIB_CHECK,
and on passing simplify the code.
Too bad that every time we need to regenerate configure...


................
r89453 | mmichelson | 2007-11-20 09:11:19 -0700 (Tue, 20 Nov 2007) | 6 lines

Changed occurrences of "busy-level" to "busylevel" in sip.conf.sample
in light of commit 89441. Thanks to pj for pointing out the need for this

(closes issue #11307, reported by pj)


................
r89454 | rizzo | 2007-11-20 09:12:10 -0700 (Tue, 20 Nov 2007) | 7 lines

Fix building of modules under cygwin.

After this commit we can actually load modules under windows,
and we can start debugging more interesting problems related
to the load order and functionality of modules.


................
r89455 | rizzo | 2007-11-20 10:11:12 -0700 (Tue, 20 Nov 2007) | 2 lines

prepare to support console_video

................
r89458 | mmichelson | 2007-11-20 10:59:00 -0700 (Tue, 20 Nov 2007) | 17 lines

Merged revisions 89457 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89457 | mmichelson | 2007-11-20 11:50:31 -0600 (Tue, 20 Nov 2007) | 9 lines

According to comments in main/pbx.c, it is essential that if we are going to lock
the conlock as well as the hints lock, it must be locked in that respective order.
In order to prevent a potential deadlock, we need to lock the conlock prior to 
locking the hints lock in ast_hint_state_changed (see the call stack example on
issue #11323 for how this can happen).

(closes issue #11323, reported  by eelcob, suggestion for patch by eelcob, patch by me)


........

................
r89459 | rizzo | 2007-11-20 11:20:25 -0700 (Tue, 20 Nov 2007) | 4 lines

the 'version' is now $7 not $6
(wait a bit before regenerating configure, i have more changes)


................
r89460 | russell | 2007-11-20 12:11:18 -0700 (Tue, 20 Nov 2007) | 2 lines

fix the zaptel configure script check

................
r89463 | kpfleming | 2007-11-20 12:28:10 -0700 (Tue, 20 Nov 2007) | 2 lines

switch compile-time option checking to string storage mode in this branch too

................
r89464 | russell | 2007-11-20 12:29:08 -0700 (Tue, 20 Nov 2007) | 2 lines

i got a little carried away with commas ...

................
r89465 | rizzo | 2007-11-20 15:18:21 -0700 (Tue, 20 Nov 2007) | 3 lines

move internal function declarations to include/asterisk/_private.h


................
r89466 | rizzo | 2007-11-20 16:16:15 -0700 (Tue, 20 Nov 2007) | 4 lines

move asterisk/paths.h outside asterisk.h and into those files
who really need it.


................
r89467 | tilghman | 2007-11-20 16:28:57 -0700 (Tue, 20 Nov 2007) | 3 lines

Add support for new recorded character sounds
Closes issue #5208

................
r89468 | tilghman | 2007-11-20 16:29:33 -0700 (Tue, 20 Nov 2007) | 2 lines

Make trunk build again

................
r89469 | rizzo | 2007-11-20 17:20:08 -0700 (Tue, 20 Nov 2007) | 3 lines

complete support for X11


................
r89470 | russell | 2007-11-20 17:21:38 -0700 (Tue, 20 Nov 2007) | 9 lines

Merge changes from team/russell/sla_trunk_moh ...

* Added the ability to specify the music on hold class used to play into the
   conference when there is only one member and the M option is used.
* Added the ability to specify a music on hold class to play instead of ringing
   for the SLATrunk application.

(patched by me, and tested internally)

................
r89472 | rizzo | 2007-11-20 17:22:41 -0700 (Tue, 20 Nov 2007) | 4 lines

X11 checks (at least some - for other platforms with
unusual X11 locations you might need to add more directories)


................
r89473 | rizzo | 2007-11-20 17:23:49 -0700 (Tue, 20 Nov 2007) | 3 lines

more header removal/normalization


................
r89474 | murf | 2007-11-20 18:09:47 -0700 (Tue, 20 Nov 2007) | 1 line

A free in add_pri was ultimately the source of the grief we were having with parking. This set of changes fixes that problem, and introduces some more error messages, and puts debugs into ifdefs for what could be short-term usage. Txs to Terry W. for his help, guidance, and especially patience.
................
r89475 | rizzo | 2007-11-20 18:29:45 -0700 (Tue, 20 Nov 2007) | 3 lines

add check for video4linux


................
r89476 | rizzo | 2007-11-20 18:35:30 -0700 (Tue, 20 Nov 2007) | 3 lines

add missing paths.h


................
r89477 | rizzo | 2007-11-21 01:28:27 -0700 (Wed, 21 Nov 2007) | 3 lines

remove this file, it is not used anywhere.


................
r89478 | murf | 2007-11-21 08:11:43 -0700 (Wed, 21 Nov 2007) | 1 line

closes issue #11265; Thanks to snuffy for his work on neatening up the code and removing duplicated code.
................
r89479 | murf | 2007-11-21 08:17:12 -0700 (Wed, 21 Nov 2007) | 1 line

OOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.
................
r89480 | kpfleming | 2007-11-21 08:29:39 -0700 (Wed, 21 Nov 2007) | 2 lines

remove some debugging code that doesn't compile on 64-bit platforms

................
r89481 | kpfleming | 2007-11-21 08:45:56 -0700 (Wed, 21 Nov 2007) | 2 lines

get this to actually compile...

................
r89482 | kpfleming | 2007-11-21 09:07:11 -0700 (Wed, 21 Nov 2007) | 2 lines

move these forward declarations back to asterisk.h where they belong... even though asterisk.h includes compat.h, these declarations have nothing to do with the being platform-compatible and are directly related to being part of Asterisk

................
r89483 | mmichelson | 2007-11-21 09:08:12 -0700 (Wed, 21 Nov 2007) | 6 lines

I introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as well.
Unfortunately, since trunk uses read/write locks for the context lock, it means that I have
actually *introduced* a deadlock condition since they are not recursive. Removing this change
for now and will look into introducing a different one.


................
r89484 | russell | 2007-11-21 09:24:17 -0700 (Wed, 21 Nov 2007) | 9 lines

Fix some code that was supposed to ensure that a buffer was terminated, but was
writing to the wrong byte.  Also, remove some non-thread safe test code.

(closes issue #11317)
Reported by: IgorG
Patches:
      unistim-2.patch uploaded by IgorG (license 20)
	  - additional changes by me

................
r89487 | mmichelson | 2007-11-21 11:19:22 -0700 (Wed, 21 Nov 2007) | 8 lines

There existed about a 1 in 4 billion chance that reading from /dev/urandom
would return LONG_MIN (1 in 9 quintillion if using 64-bit longs). Since there
is no positive equivalent of LONG_MIN, the result of labs() in this case is
unpredictable. This fixes that situation.

(closes issue #11336, reported and patched by sperreault)


................
r89488 | russell | 2007-11-21 11:24:23 -0700 (Wed, 21 Nov 2007) | 1 line

fix a small gramatical error in a comment
................
r89489 | tilghman | 2007-11-21 11:38:18 -0700 (Wed, 21 Nov 2007) | 6 lines

Change Read to set READSTATUS as an indication of the result
Also, some cleanup to CHANGES.
Reported by: michael-fig
Patch by: michael-fig,tilghman
(Closes issue #11004)

................
r89490 | russell | 2007-11-21 11:52:19 -0700 (Wed, 21 Nov 2007) | 8 lines

Remove obsolete OLD_DSP_ROUTINES code.  Also, remove the FAX_DETECT define and
only do the calculations if fax detection is enabled on the dsp.

(closes issue #11331)
Reported by: dimas
Patches:
      dsp.patch uploaded by dimas (license 88)

................
r89492 | twilson | 2007-11-21 12:20:33 -0700 (Wed, 21 Nov 2007) | 12 lines

Merged revisions 89491 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89491 | twilson | 2007-11-21 12:59:27 -0600 (Wed, 21 Nov 2007) | 4 lines

If a channel gets masqueraded in the middle of a park, don't play the
announcement to the masqueraded channel, and dial back to the original
channel on timeout.

........

................
r89494 | mmichelson | 2007-11-21 12:27:22 -0700 (Wed, 21 Nov 2007) | 13 lines

Merged revisions 89493 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89493 | mmichelson | 2007-11-21 13:24:22 -0600 (Wed, 21 Nov 2007) | 5 lines

Changing an inaccurate debug message to be less inaccurate. Under the circumstances, this
message would always report that there were 0 members available, even though that may not be true.



........

................
r89496 | mmichelson | 2007-11-21 12:28:43 -0700 (Wed, 21 Nov 2007) | 11 lines

Merged revisions 89495 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89495 | mmichelson | 2007-11-21 13:27:51 -0600 (Wed, 21 Nov 2007) | 3 lines

Fix a small error I made in my previous commit


........

................
r89504 | twilson | 2007-11-21 13:22:40 -0700 (Wed, 21 Nov 2007) | 2 lines

Simplify comparison in parking fix

................
r89505 | murf | 2007-11-21 13:38:00 -0700 (Wed, 21 Nov 2007) | 1 line

closes issue #11290; the proposed patch was a good guess, and would solve the bug to some extent, but was really masking the real issue, that there were bad entries in the table. This fix removes the condition that the hashtab updates be done on exten removal only when the pattern_tree was present, which is silly. The operations that apply to the pattern tree are instead made conditional. Also, threw back in routines that kpfleming deleted because of probs in the 64-bit world. Tested on both 32 and 64-bit machines (compile). Tested the reload problem with over 20 reloads, and no problems. If you find more problems, please reopen 11290.
................
r89506 | rizzo | 2007-11-21 14:30:24 -0700 (Wed, 21 Nov 2007) | 4 lines

enable support for stack backtrace for stuff built in utils/
(this was present in the main tree but forgotten here).


................
r89507 | mattf | 2007-11-21 15:07:55 -0700 (Wed, 21 Nov 2007) | 1 line

Add BRI support to chan_zap
................
r89508 | rizzo | 2007-11-21 15:20:36 -0700 (Wed, 21 Nov 2007) | 2 lines

add a missing return

................
r89509 | mattf | 2007-11-21 15:34:45 -0700 (Wed, 21 Nov 2007) | 1 line

Take some debug code out :-)
................
r89510 | mattf | 2007-11-21 15:37:25 -0700 (Wed, 21 Nov 2007) | 1 line

Remove unneccessary explicit case for BRI
................
r89511 | rizzo | 2007-11-21 16:09:02 -0700 (Wed, 21 Nov 2007) | 3 lines

remove a bunch of useless #include "options.h"


................
r89512 | rizzo | 2007-11-21 16:24:55 -0700 (Wed, 21 Nov 2007) | 2 lines

remove another set of redundant #include "asterisk/options.h"

................
r89513 | murf | 2007-11-21 16:54:12 -0700 (Wed, 21 Nov 2007) | 1 line

closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
................
r89514 | rizzo | 2007-11-21 17:53:13 -0700 (Wed, 21 Nov 2007) | 4 lines

Add a specific header for providers of file and format handling routines,
moving here structs and function declarations formerly in file.h


................
r89515 | rizzo | 2007-11-21 17:53:49 -0700 (Wed, 21 Nov 2007) | 3 lines

implement the split of file.h and mod_format.h


................
r89516 | rizzo | 2007-11-21 18:03:02 -0700 (Wed, 21 Nov 2007) | 4 lines

remove a number of #include <fcntl.h> which are either
useless or done elsewhere


................
r89517 | rizzo | 2007-11-21 18:13:46 -0700 (Wed, 21 Nov 2007) | 3 lines

more removal of fcntl.h and other system headers


................
r89518 | rizzo | 2007-11-21 18:39:06 -0700 (Wed, 21 Nov 2007) | 2 lines

remove redundant headers

................
r89519 | rizzo | 2007-11-21 19:07:33 -0700 (Wed, 21 Nov 2007) | 3 lines

more removal of redundant headers


................
r89521 | rizzo | 2007-11-21 19:30:58 -0700 (Wed, 21 Nov 2007) | 2 lines

remove some useless includes

................
r89522 | rizzo | 2007-11-21 20:50:04 -0700 (Wed, 21 Nov 2007) | 24 lines

shuffle a little bit the content of header files to reduce dependencies.
In this commit:
- move the ast_register/unregister_app functions to module.h
  to avoid the need to include pbx.h for the simpler apps;
- move the ast_group structure to channel.h to remove the
  dependency of app.h on linkedlists.h

Note, this is a long process that I am doing in small steps.

The main difficulty is that now for each subsystem we
have a single header (e.g. channel.h) included by the subsystem
provider (usually one file, e.g. channel.c) and by its clients
(dozens of them, e.g. we have some 70+ apps and 30+ functions).

This requires the clients to include all the extra headers
required by the provider (eg. lock.h, linkedlists.h, definitions
of substructures...) even though many of the clients would be
just happy with opaque struct declarations and function prototypes.

The long term plan is to eventually rectify this structure
so that the compilation can become faster, and also APIs
are more stable.


................
r89523 | rizzo | 2007-11-21 21:19:04 -0700 (Wed, 21 Nov 2007) | 2 lines

formatting cleanup

................
r89524 | rizzo | 2007-11-21 21:37:08 -0700 (Wed, 21 Nov 2007) | 2 lines

more header removal

................
r89526 | rizzo | 2007-11-22 00:10:37 -0700 (Thu, 22 Nov 2007) | 3 lines

new info on the management of headers


................
r89529 | russell | 2007-11-22 19:37:38 -0700 (Thu, 22 Nov 2007) | 11 lines

Merged revisions 89527 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89527 | russell | 2007-11-22 12:29:41 -0500 (Thu, 22 Nov 2007) | 3 lines

mvanbaak pointed out a spelling error in this sample configuration file.  While
I was at it, I went ahead and tweaked it a little bit more.

........

................
r89530 | rizzo | 2007-11-23 02:03:33 -0700 (Fri, 23 Nov 2007) | 4 lines

formatting cleanup on the header,
normalization of the assignment of descriptor fields.


................
r89531 | oej | 2007-11-23 02:40:02 -0700 (Fri, 23 Nov 2007) | 7 lines

Let's start with implementing the base architecture for UTF8 caller ID's
so we can handle multiple formats properly. This is not carved in stone,
but a proposal to start with.

We need to add support for transliterations as well as UTF8 handling,
propably with libiconv. Murf is looking into that for the dialplan.

................
r89532 | rizzo | 2007-11-23 08:49:40 -0700 (Fri, 23 Nov 2007) | 8 lines

set rtpmap video info according to what is read from SDP;

make the format explicit in a debug message;

print the audio instead of aggregated peer capability in a debugging msg.



................
r89533 | rizzo | 2007-11-23 08:54:13 -0700 (Fri, 23 Nov 2007) | 8 lines

put in the necessary hooks for video support in the console.

This is a NOP as far as the current code is concerned,
but there is already support in ./configure and the
Makefiles for the various libraries used by console_video.c

[... 34919 lines stripped ...]



More information about the svn-commits mailing list