asterisk/asterisk.git
12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years agofixed #10631, about one way audio. thanks IgorG again.
Christian Richter [Fri, 16 Nov 2007 10:06:55 +0000 (10:06 +0000)]
fixed #10631, about one way audio. thanks IgorG again.

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

12 years agomove the inner part of config file parsing to a separate function,
Luigi Rizzo [Fri, 16 Nov 2007 09:51:41 +0000 (09:51 +0000)]
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.

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

12 years agofixed compilation of chan_misdn, #11269, thanks IgorG.
Christian Richter [Fri, 16 Nov 2007 08:54:04 +0000 (08:54 +0000)]
fixed compilation of chan_misdn, #11269, thanks IgorG.

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

12 years agoIf we're going to be passing a negative value for the size of a stringfield,
Tilghman Lesher [Thu, 15 Nov 2007 23:50:15 +0000 (23:50 +0000)]
If we're going to be passing a negative value for the size of a stringfield,
in order to indicate something, then using an UNSIGNED parameter is bad,
mmmmmkay?

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

12 years agoMerged revisions 89302 via svnmerge from
Tilghman Lesher [Thu, 15 Nov 2007 18:49:31 +0000 (18:49 +0000)]
Merged revisions 89302 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89302 | tilghman | 2007-11-15 12:37:38 -0600 (Thu, 15 Nov 2007) | 2 lines

Start Asterisk in Debian at a more reasonable time (since zaptel is at level 20)

........

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

12 years agoMerged revisions 89301 via svnmerge from
Tilghman Lesher [Thu, 15 Nov 2007 18:39:46 +0000 (18:39 +0000)]
Merged revisions 89301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89301 | tilghman | 2007-11-15 12:23:14 -0600 (Thu, 15 Nov 2007) | 2 lines

Fix an uninitialized memory read found by valgrind

........

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

12 years agoFix trunk breakage due to chan->lock being renamed.
Tilghman Lesher [Thu, 15 Nov 2007 18:15:48 +0000 (18:15 +0000)]
Fix trunk breakage due to chan->lock being renamed.

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

12 years agoMerged revisions 89298 via svnmerge from
Tilghman Lesher [Thu, 15 Nov 2007 18:11:36 +0000 (18:11 +0000)]
Merged revisions 89298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89298 | tilghman | 2007-11-15 12:05:56 -0600 (Thu, 15 Nov 2007) | 5 lines

Yet another memory corruption issue.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

........

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

12 years agoMerged revisions 89296 via svnmerge from
Russell Bryant [Thu, 15 Nov 2007 17:27:27 +0000 (17:27 +0000)]
Merged revisions 89296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89296 | russell | 2007-11-15 11:19:28 -0600 (Thu, 15 Nov 2007) | 8 lines

Update the SLAStation application to account for the case where the SLA thread
has a call out to the station,  but the user has pressed a line button to answer
the call instead of picking up the handset.  If they do, the phone sends out a
new INVITE.  So, the SLAStation app must check to see if it is picking up a
ringing trunk, and ensure that the other stations stop ringing.

(reported internally, patched by me, tested by mogorman)

........

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

12 years agoGet rid of a previously missed ast_log call for debug, no longer nec.
Steve Murphy [Thu, 15 Nov 2007 16:50:16 +0000 (16:50 +0000)]
Get rid of a previously missed ast_log call for debug, no longer nec.

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

12 years agoPerhaps I went overboard on initializing things. I can remove unnecc. stuff later...
Steve Murphy [Thu, 15 Nov 2007 16:30:13 +0000 (16:30 +0000)]
Perhaps I went overboard on initializing things. I can remove unnecc. stuff later. A few bug fixes. Killing small bugs on the way to killing bigger ones. Removed locking on hashtabs; there's plenty of locks already being taken. A small bug in the root_tree hashtab compare func.

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

12 years agoaccess channel locks through ast_channel_lock/unlock/trylock and not
Luigi Rizzo [Thu, 15 Nov 2007 16:20:47 +0000 (16:20 +0000)]
access channel locks through ast_channel_lock/unlock/trylock and not
through ast_mutex primitives.

To detect all occurrences, I have renamed the lock field in struct ast_channel
so it is clear that it shouldn't be used directly.

There are some uses in res/res_features.c (see details of the diff)
that are error prone as they try and lock two channels without
caring about the order (or without explaining why it is safe).

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

12 years agoFix typo in UPGRADE.txt. 'increase' should have been used, not 'increasing'.
Joshua Colp [Thu, 15 Nov 2007 15:39:03 +0000 (15:39 +0000)]
Fix typo in UPGRADE.txt. 'increase' should have been used, not 'increasing'.

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

12 years agoAnd file said... let trunk build again! Accomplished by some more constification...
Joshua Colp [Thu, 15 Nov 2007 15:21:04 +0000 (15:21 +0000)]
And file said... let trunk build again! Accomplished by some more constification, and marking a function in chan_sip as purposely unused until it is fixed up.

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

12 years agoMerged revisions 89288 via svnmerge from
Mark Michelson [Thu, 15 Nov 2007 14:58:30 +0000 (14:58 +0000)]
Merged revisions 89288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89288 | mmichelson | 2007-11-15 08:57:28 -0600 (Thu, 15 Nov 2007) | 3 lines

Undoing previous commit since I realize it was wrong

........

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

12 years agoMerged revisions 89286 via svnmerge from
Mark Michelson [Thu, 15 Nov 2007 14:55:35 +0000 (14:55 +0000)]
Merged revisions 89286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89286 | mmichelson | 2007-11-15 08:54:10 -0600 (Thu, 15 Nov 2007) | 4 lines

Adding a missing mutex unlock.

(closes issue 11256, reported and patched by ys)

........

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

12 years agoAlways relying on the responses when crossing NAT's are not a good
Olle Johansson [Thu, 15 Nov 2007 12:21:57 +0000 (12:21 +0000)]
Always relying on the responses when crossing NAT's are not a good
solution, it breaks communication.
Rizzo - you need to implement a configuration option for this
code. It's good, but maybe should be off by default.

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

12 years agoMerged revisions 89281 via svnmerge from
Olle Johansson [Thu, 15 Nov 2007 11:31:27 +0000 (11:31 +0000)]
Merged revisions 89281 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89281 | oej | 2007-11-15 12:26:22 +0100 (Tor, 15 Nov 2007) | 6 lines

Don't send re-invites during pending INVITE transactions.

Patch by one47 - thanks!

Closes issue #9305

........

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

12 years agoMerged revisions 89280 via svnmerge from
Olle Johansson [Thu, 15 Nov 2007 11:27:19 +0000 (11:27 +0000)]
Merged revisions 89280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89280 | oej | 2007-11-15 12:15:09 +0100 (Tor, 15 Nov 2007) | 5 lines

Improve support for multipart messages. Code by gasparz, changes
by me (mostly formatting). Thanks, gasparz!

Closes issue #10947

........

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

12 years agoExit early instead of deciding to exit after processing the message.
Olle Johansson [Thu, 15 Nov 2007 10:26:00 +0000 (10:26 +0000)]
Exit early instead of deciding to exit after processing the message.

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

12 years agoAdd support for application/dtmf SIP INFO dtmf handling. Yep, another
Olle Johansson [Thu, 15 Nov 2007 10:21:41 +0000 (10:21 +0000)]
Add support for application/dtmf SIP INFO dtmf handling. Yep, another
way of handling DTMF in SIP. Totally undocumented, but implemented
in enough devices so we have to support it.

Code by sergee, small changes by oej.

Closes issue #11049

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

12 years agoHad trouble playing with parking; spent a long time trying to reason out MATCHMORE...
Steve Murphy [Thu, 15 Nov 2007 01:42:12 +0000 (01:42 +0000)]
Had trouble playing with parking; spent a long time trying to reason out MATCHMORE mode. made these updates and xfers on zaptel lines seem to work ok now

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

12 years agoMerged revisions 89275 via svnmerge from
Tilghman Lesher [Thu, 15 Nov 2007 00:01:22 +0000 (00:01 +0000)]
Merged revisions 89275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89275 | tilghman | 2007-11-14 17:23:58 -0600 (Wed, 14 Nov 2007) | 5 lines

When a recording ends with '#', we are improperly trimming an extra 200ms from the recording.
Reported by: sim
Patch by: tilghman
Closes issue #11247

........

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

12 years agoTypo
Tilghman Lesher [Wed, 14 Nov 2007 23:08:54 +0000 (23:08 +0000)]
Typo

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

12 years agoAdd callerid to the Hangup manager event.
Tilghman Lesher [Wed, 14 Nov 2007 22:59:05 +0000 (22:59 +0000)]
Add callerid to the Hangup manager event.
Reported by: outtolunc
Patch by: outtolunc
Closes issue #11248

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

12 years agoRescaled the weights of the patterns to give something more independent of pattern...
Steve Murphy [Wed, 14 Nov 2007 18:05:50 +0000 (18:05 +0000)]
Rescaled the weights of the patterns to give something more independent of pattern length; and make . less likely to win. Question: which should win for 14102241145-- _1xxxxxxx.   or  _XXXXXXXXXXX  -- right now, the pure X pattern will win.

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

12 years agoA further problem highlighted by 11233 has been resolved; a certain combination of...
Steve Murphy [Wed, 14 Nov 2007 15:43:30 +0000 (15:43 +0000)]
A further problem highlighted by 11233 has been resolved; a certain combination of patterns in a certain order, led to a malformed trie, due to a ptr not being initialized in the loop. Also, some tree printing prettifications.

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

12 years agoOne more typo in config.c; and missed conversions due to the constifying of ast_varia...
Tilghman Lesher [Wed, 14 Nov 2007 15:13:22 +0000 (15:13 +0000)]
One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters

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

12 years agoTypo
Tilghman Lesher [Wed, 14 Nov 2007 14:46:45 +0000 (14:46 +0000)]
Typo

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

12 years agomake the 'name' and 'value' fields in ast_variable const char *
Luigi Rizzo [Wed, 14 Nov 2007 13:18:40 +0000 (13:18 +0000)]
make the 'name' and 'value' fields in ast_variable const char *

This prevents modifying the strings in the stored variables,
and catched a few instances where this was actually done.

Given the differences between trunk and 1.4 (and the fact that this
is effectively an API change) it is better to fix 1.4 independently.
These are

chan_sip.c::sip_register()
chan_skinny.c:: near line 2847
config.c:: near line 1774
logger.c::make_components()
res_adsi.c:: near line 1049

I may have missed some instances for modules that do not build here.

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

12 years agoFix up various coding guidelines issues ...
Russell Bryant [Wed, 14 Nov 2007 03:22:09 +0000 (03:22 +0000)]
Fix up various coding guidelines issues ...
 - handle memory allocation failures
 - add an ast_ prefix to a publicly exported function
 - put curly braces in the right places
 - add a bunch of spaces where they should be be used

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

12 years ago- Use the ARRAY_LEN macro in a couple places
Russell Bryant [Wed, 14 Nov 2007 02:57:13 +0000 (02:57 +0000)]
- Use the ARRAY_LEN macro in a couple places
- return errors from load_module / unload_module

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

12 years agoUse BEGIN_OPTIONS / END_OPTIONS to make the syntax highlighting in my editor happy
Russell Bryant [Wed, 14 Nov 2007 01:40:47 +0000 (01:40 +0000)]
Use BEGIN_OPTIONS / END_OPTIONS to make the syntax highlighting in my editor happy

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

12 years agoInstead of reserving 800 bytes for periodic announcements, use an array of
Russell Bryant [Wed, 14 Nov 2007 01:35:28 +0000 (01:35 +0000)]
Instead of reserving 800 bytes for periodic announcements, use an array of
ast_str pointers and only alloate space for the strings as needed.

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

12 years agoMerged revisions 89260 via svnmerge from
Joshua Colp [Wed, 14 Nov 2007 01:16:50 +0000 (01:16 +0000)]
Merged revisions 89260 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89260 | file | 2007-11-13 21:15:12 -0400 (Tue, 13 Nov 2007) | 4 lines

Return the proper value when the srv_callback function executes properly.
(closes issue #11240)
Reported by: jtodd

........

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

12 years agoConvert most of the strings in the call_queue struct to use stringfields.
Russell Bryant [Wed, 14 Nov 2007 01:15:26 +0000 (01:15 +0000)]
Convert most of the strings in the call_queue struct to use stringfields.

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

12 years agouse simpler technique for removing known entries from lists
Kevin P. Fleming [Wed, 14 Nov 2007 00:54:38 +0000 (00:54 +0000)]
use simpler technique for removing known entries from lists

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

12 years ago- Simplify removing an item from a list
Russell Bryant [Wed, 14 Nov 2007 00:33:52 +0000 (00:33 +0000)]
- Simplify removing an item from a list
- move a verbose message to after the item is added to the list
- make use of the ARRAY_LEN macro in one spot

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

12 years agoThis hopefully will fix the re-opened 11233. Hadn't covered the case of a context...
Steve Murphy [Tue, 13 Nov 2007 23:43:41 +0000 (23:43 +0000)]
This hopefully will fix the re-opened 11233. Hadn't covered the case of a context with no patterns. (blush)

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

12 years agocloses issue #11233 -- where some fine points in the algorithm to build the tree...
Steve Murphy [Tue, 13 Nov 2007 21:19:11 +0000 (21:19 +0000)]
closes issue #11233 -- where some fine points in the algorithm to build the tree needed to be corrected. Many thanks for the test case, jtodd

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

12 years agoBlocked revisions 89254 via svnmerge
Jason Parker [Tue, 13 Nov 2007 21:08:23 +0000 (21:08 +0000)]
Blocked revisions 89254 via svnmerge

(closes issue #11238)
........
r89254 | qwell | 2007-11-13 15:07:08 -0600 (Tue, 13 Nov 2007) | 4 lines

Fix building on newer systems which require a third arg to open() when using O_CREAT.

Issue 11238, reported by puzzled.

........

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

12 years agoThis fixes a build error on my mac. It also works on my linux box. Let me
Russell Bryant [Tue, 13 Nov 2007 21:01:14 +0000 (21:01 +0000)]
This fixes a build error on my mac.  It also works on my linux box.  Let me
know if it breaks any other platform ...

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

12 years agoFix a typo pointed out by outtolunc, thanks :)
Russell Bryant [Tue, 13 Nov 2007 20:56:32 +0000 (20:56 +0000)]
Fix a typo pointed out by outtolunc, thanks :)

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

12 years ago- Convert initialization of a struct to C99 style instead of GNU style
Russell Bryant [Tue, 13 Nov 2007 20:53:49 +0000 (20:53 +0000)]
- Convert initialization of a struct to C99 style instead of GNU style
- Fix a minor spelling error in a comment

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

12 years agoUpdate the ParkedCall application to grab the first available parked call if no
Russell Bryant [Tue, 13 Nov 2007 20:30:13 +0000 (20:30 +0000)]
Update the ParkedCall application to grab the first available parked call if no
parked extension is provided as an argument.

(closes issue #10803)
Reported by: outtolunc
Patches:
      res_features-parkedcall-any.diff4 uploaded by outtolunc (license 237)
  - modified by me to work a bit differently ...

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

12 years agoMerged revisions 89248 via svnmerge from
Jason Parker [Tue, 13 Nov 2007 19:48:41 +0000 (19:48 +0000)]
Merged revisions 89248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11237)
........
r89248 | qwell | 2007-11-13 13:47:45 -0600 (Tue, 13 Nov 2007) | 7 lines

Revert change from revision 67064.
It is documented behavior that if a parking extension already exists while using PARKINGEXTEN,
 dialplan execution will continue.  If blind transferring to a Park with PARKINGEXTEN, you
 must keep this in mind, and handle the failure yourself.

Issue 11237, reported by jon.

........

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

12 years agoMerged revisions 89246 via svnmerge from
Tilghman Lesher [Tue, 13 Nov 2007 17:41:02 +0000 (17:41 +0000)]
Merged revisions 89246 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89246 | tilghman | 2007-11-13 11:34:11 -0600 (Tue, 13 Nov 2007) | 2 lines

If we set a value for qualify, we should actually pay attention to it, instead of overriding the value

........

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

12 years agoMerged revisions 89241 via svnmerge from
Mark Michelson [Tue, 13 Nov 2007 16:03:10 +0000 (16:03 +0000)]
Merged revisions 89241 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89241 | mmichelson | 2007-11-13 10:02:02 -0600 (Tue, 13 Nov 2007) | 5 lines

Reverting commit made in revision 89205 since it is unnecessary.

Thanks to Kevin for pointing this out

........

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

12 years agoMerged revisions 89239 via svnmerge from
Tilghman Lesher [Tue, 13 Nov 2007 14:03:34 +0000 (14:03 +0000)]
Merged revisions 89239 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89239 | tilghman | 2007-11-13 07:51:53 -0600 (Tue, 13 Nov 2007) | 4 lines

Debugging is running into the 16-lock limit.  Increase to avoid.
(This define is only effective when debugging is turned on, so there's
no effect for most installations.)

........

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

12 years agoThere is the potential to copy uninitialized memory into the mixmonitor->post_process
Mark Michelson [Tue, 13 Nov 2007 01:19:53 +0000 (01:19 +0000)]
There is the potential to copy uninitialized memory into the mixmonitor->post_process
string. This fix prevents that.

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

12 years agoMerged revisions 89205 via svnmerge from
Mark Michelson [Tue, 13 Nov 2007 00:57:34 +0000 (00:57 +0000)]
Merged revisions 89205 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89205 | mmichelson | 2007-11-12 18:56:46 -0600 (Mon, 12 Nov 2007) | 5 lines

Some sanity checking for MixMonitor. If only 1 argument is given, then the args.options
and args.post_process strings are uninitialized and could contain garbage. This change
handles this situation properly by only using arguments that we have parsed.

........

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

12 years agooops, somebody left out the directory here...
Jason Parker [Tue, 13 Nov 2007 00:19:50 +0000 (00:19 +0000)]
oops, somebody left out the directory here...

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

12 years agoDoxygen fixes.
Jason Parker [Mon, 12 Nov 2007 23:44:20 +0000 (23:44 +0000)]
Doxygen fixes.
Also fix a common typo I kept seeing (arguement) in various files.

Closes issue #11222, patch by snuffy (with arguement > argument by me).

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

12 years agoDon't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.
Steve Murphy [Mon, 12 Nov 2007 23:33:55 +0000 (23:33 +0000)]
Don't forget the ASTERISK_VERSION for the sake of the mtx_prof stuff.

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

12 years agoThanks to snuffy for this doxygen update to hashtab.h; closes issue #11223
Steve Murphy [Mon, 12 Nov 2007 21:50:02 +0000 (21:50 +0000)]
Thanks to snuffy for this doxygen update to hashtab.h; closes issue #11223

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

12 years agoThanks to snuff-work, who brought up that these fixes might need to be made.
Steve Murphy [Mon, 12 Nov 2007 20:49:27 +0000 (20:49 +0000)]
Thanks to snuff-work, who brought up that these fixes might need to be made.

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

12 years agoMerged revisions 89194 via svnmerge from
Jason Parker [Mon, 12 Nov 2007 20:48:57 +0000 (20:48 +0000)]
Merged revisions 89194 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89194 | qwell | 2007-11-12 14:46:52 -0600 (Mon, 12 Nov 2007) | 1 line

Fix a typo pointed out by De_Mon on #asterisk-dev
........

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

12 years agoBlocked revisions 89191 via svnmerge
Tilghman Lesher [Mon, 12 Nov 2007 20:29:38 +0000 (20:29 +0000)]
Blocked revisions 89191 via svnmerge

........
r89191 | tilghman | 2007-11-12 14:16:18 -0600 (Mon, 12 Nov 2007) | 5 lines

If two config writes collide, file corruption could result.  Use a mkstemp() file, instead.
Reported by: paravoid
Patch by: tilghman
Closes issue #10781

........

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

12 years ago(closes issue #11221)
Kevin P. Fleming [Mon, 12 Nov 2007 20:16:13 +0000 (20:16 +0000)]
(closes issue #11221)
Reported by: eliel
Patches:
      utils.Makefile.patch uploaded by eliel (modified by me) (license 64)

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

12 years agoBased on a note in asterisk-dev by Brian Capouch, I determined I too agressive in...
Steve Murphy [Mon, 12 Nov 2007 18:44:36 +0000 (18:44 +0000)]
Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.

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

12 years agoMerged revisions 89184 via svnmerge from
Tilghman Lesher [Mon, 12 Nov 2007 17:44:04 +0000 (17:44 +0000)]
Merged revisions 89184 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89184 | tilghman | 2007-11-12 11:29:17 -0600 (Mon, 12 Nov 2007) | 5 lines

Fix two cases of memory corruption caused by background threads.
Reported by: atis
Patch by: tilghman
Fixes issue #10923

........

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

12 years agoMerged revisions 89173 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:36:45 +0000 (13:36 +0000)]
Merged revisions 89173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89173 | crichter | 2007-11-12 12:26:48 +0100 (Mo, 12 Nov 2007) | 1 line

if we're NT and no number was dialed and overlapdial is set, we wait for the ISDN timeout instead of starting our own timer. added a comment for the misdn.conf.sample for the overlapdial config option.
........

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

12 years agoMerged revisions 89172 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:33:13 +0000 (13:33 +0000)]
Merged revisions 89172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89172 | crichter | 2007-11-12 12:23:57 +0100 (Mo, 12 Nov 2007) | 1 line

added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
........

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

12 years agoFix building on FreeBSD by including/not including some headers.
Joshua Colp [Mon, 12 Nov 2007 13:26:45 +0000 (13:26 +0000)]
Fix building on FreeBSD by including/not including some headers.
(closes issue #11218)
Reported by: ys
Patches:
      trunk89169.diff uploaded by ys (license 281)

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

12 years agoMerged revisions 89171 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:22:17 +0000 (13:22 +0000)]
Merged revisions 89171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89171 | crichter | 2007-11-12 12:13:13 +0100 (Mo, 12 Nov 2007) | 1 line

fixed a state/event issue with overlapdial=yes when no extension matched. removed the general sending of a RELEASE_COMPLETE when we receive a RELEASE, this is done by mISDNuser/mISDN. This makes it possible to use asterisk-1.4 with mISDN trunk, but requires users of mISDN/mISDNuser-1.1.X to upgrade to at least mISDNuser-1.1.6 (when using the NT mode at all)
........

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

12 years agoMerged revisions 89170 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 13:03:00 +0000 (13:03 +0000)]
Merged revisions 89170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89170 | crichter | 2007-11-12 10:57:23 +0100 (Mo, 12 Nov 2007) | 1 line

fixed the support for CW and therefore for the reject_cause option.
........

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

12 years agoMerged revisions 89169 via svnmerge from
Christian Richter [Mon, 12 Nov 2007 12:49:19 +0000 (12:49 +0000)]
Merged revisions 89169 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89169 | crichter | 2007-11-12 10:45:36 +0100 (Mo, 12 Nov 2007) | 1 line

aded ntkeepcalls option, to avoid droƃpping calls when the L2 goes down on a PTP link. There are some pbx which do turn off the L1 for a very short while and restart it immediately. normally T310 should be started and after 10 seconds or so the calls should be dropped, this is a simple fix wihtout this timer.
........

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

12 years agoAdd usbradio.conf.sample from branches/1.4/configs - r84162.
Jason Parker [Fri, 9 Nov 2007 18:57:21 +0000 (18:57 +0000)]
Add usbradio.conf.sample from branches/1.4/configs - r84162.
It was mistakenly deleted in 1.4 without ever being merged to trunk.

Reported by eliel on #asterisk-dev.

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

12 years agoFix a few potential deadlocks in cdr_sqlite3_custom.
Jason Parker [Fri, 9 Nov 2007 16:32:01 +0000 (16:32 +0000)]
Fix a few potential deadlocks in cdr_sqlite3_custom.
(also rename sample config to .sample)

Closes issue #11208, patch by Laureano.

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

12 years agoThis is the perhaps the biggest, boldest, most daring change I've ever committed...
Steve Murphy [Fri, 9 Nov 2007 16:00:22 +0000 (16:00 +0000)]
This is the perhaps the biggest, boldest, most daring change I've ever committed to trunk. Forgive me in advance any disruption this may cause, and please, report any problems via the bugtracker. The upside is that this can speed up large dialplans by 20 times (or more). Context, extension, and priority matching are all fairly constant-time searches.  I introduce here my hashtables (hashtabs), and a regression for them. I would have used the ast_obj2 tables, but mine are resizeable, and don't need the object destruction capability. The hashtab stuff is well tested and stable. I introduce a data structure, a trie, for extension pattern matching, in which knowledge of all patterns is accumulated, and all matches can be found via a single traversal of the tree. This is per-context. The trie is formed on the first lookup attempt, and stored in the context for future lookups. Destruction routines are in place for hashtabs and the pattern match trie. You can see the contents of the pattern match trie by using the 'dialplan show' cli command when 'core set debug' has been done to put it in debug mode. The pattern tree traversal only traverses those parts of the tree that are interesting. It uses a scoreboard sort of approach to find the best match. The speed of the traversal is more a function of the length of the pattern than the number of patterns in the tree. The tree also contains the CID matching patterns. See the source code comments for details on how everything works. I believe the approach general enough that any issues that might come up involving fine points in the pattern matching algorithm, can be solved by just tweaking things. We shall see. The current pattern matcher is fairly involved, and replicating every nuance of it is difficult. If you find and report problems, I will try to resolve than as quickly as I can. The trie and hashtabs are added to the existing context and exten structs, and none of the old machinery has been removed for the sake of the multitude of functions that use them. In the future, we can (maybe) weed out the linked lists and save some space.

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

12 years agoMerged revisions 89125 via svnmerge from
Jason Parker [Thu, 8 Nov 2007 23:53:00 +0000 (23:53 +0000)]
Merged revisions 89125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

(closes issue #11203)
........
r89125 | qwell | 2007-11-08 17:52:35 -0600 (Thu, 08 Nov 2007) | 4 lines

Properly say the seconds here..

Issue 11203, fix described by vma.

........

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