Kevin P. Fleming [Wed, 19 Mar 2008 15:41:54 +0000 (15:41 +0000)]
clean up code to conform to coding guidelines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109909
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 15:22:13 +0000 (15:22 +0000)]
Remove an unneeded variable. This compiled, but I missed the uninitialized warning
because I always compile without optimizations turned on. Sorry!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109907
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 04:32:13 +0000 (04:32 +0000)]
Convert handling of extension state callbacks to the list macros.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109883
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 04:14:12 +0000 (04:14 +0000)]
Minor coding style changes, including adding handling for memory allocation failure
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109842
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 04:09:55 +0000 (04:09 +0000)]
Minor change to use Asterisk macros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109841
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 04:06:31 +0000 (04:06 +0000)]
Merged revisions 109838 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109838 | russell | 2008-03-18 23:06:05 -0500 (Tue, 18 Mar 2008) | 2 lines
Tweak spacing in a recent change because I'm very picky.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109839
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 19 Mar 2008 03:51:06 +0000 (03:51 +0000)]
Set req->data to NULL after free'ing to ensure that it never gets accidentally
double free'd. (reported by dhubbard directly to me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109833
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 23:32:58 +0000 (23:32 +0000)]
Fix a typo which caused a double free in chan_zap. This was discovered
by Juggie while attempting to load chan_zap. Apparently this would happen
if an error were encountered while trying to process zapata.conf.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109802
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 18 Mar 2008 23:22:25 +0000 (23:22 +0000)]
Change back to using ldap_initialize() and let the user specify a URL directly,
instead of trying to piece it together, badly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109775
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 18 Mar 2008 22:36:02 +0000 (22:36 +0000)]
Merged revisions 109763 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109763 | russell | 2008-03-18 17:34:42 -0500 (Tue, 18 Mar 2008) | 3 lines
Fix one place where the chanspy datastore isn't removed from a channel.
(issue #12243, reported by atis, patch by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109764
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 18 Mar 2008 22:32:26 +0000 (22:32 +0000)]
start the process of changing HTTP request dispatching to do it based on *both* URI and method, so that POST support can move into a module; move http.c's private function prototypes into _private.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109762
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 20:59:02 +0000 (20:59 +0000)]
Merged revisions 109713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109713 | mmichelson | 2008-03-18 15:52:15 -0500 (Tue, 18 Mar 2008) | 12 lines
This patch makes it so that all queue member status changes are handled through device state
code. This removes several problems people were seeing where their queue members would get into
an "unknown" state. Huge props go to atis on this one since he was the one who found the code
section that was causing the problem and proposed the solution. I just wrote what he suggested :)
(closes issue #12127)
Reported by: atis
Patches:
12127v3.patch uploaded by putnopvut (license 60)
Tested by: atis, jvandal
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109714
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 18 Mar 2008 20:13:40 +0000 (20:13 +0000)]
Set protocol version, port number correctly.
(closes issue #12211, closes issue #12209)
Reported by: sylvain
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109683
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 20:02:26 +0000 (20:02 +0000)]
Since a sip request's data field is now a stringfield, we not only have to check
if the string is zero-length, but also if the data field is non-null.
(closes issue #12250)
Reported by: caio1982
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109681
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 18 Mar 2008 19:53:02 +0000 (19:53 +0000)]
Comment debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109680
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 18 Mar 2008 19:24:15 +0000 (19:24 +0000)]
Merged revisions 109648 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109648 | qwell | 2008-03-18 14:23:44 -0500 (Tue, 18 Mar 2008) | 7 lines
Allow codecs that use log2comp (g726) to compile correctly on x86 with gcc4 optimizations.
(closes issue #12253)
Reported by: fossil
Patches:
log2comp.patch uploaded by fossil (license 140)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109651
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 18:58:42 +0000 (18:58 +0000)]
Add option 'randomperiodicannounce' to queues.conf. Setting this will
allow the list of periodic announcments specified to be played in a random
order instead of being played sequentially.
(closes issue #6681)
Reported by: alt_phil
Tested by: putnopvut
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109621
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 17:59:18 +0000 (17:59 +0000)]
Merged revisions 109575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109575 | mmichelson | 2008-03-18 12:58:11 -0500 (Tue, 18 Mar 2008) | 6 lines
Make sure an agent doesn't try to send dtmf to a NULL channel
closes issue #12242
Reported by Yourname
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109576
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 18 Mar 2008 17:00:53 +0000 (17:00 +0000)]
Add format attribute to printf-style functions in astmm.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109545
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 18 Mar 2008 16:23:05 +0000 (16:23 +0000)]
fix up various warnings found via the addition of format string checking... some of these were really, really bad code
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109475
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 18 Mar 2008 15:50:29 +0000 (15:50 +0000)]
ensure that dependencies on AST_C_DEFINE_CHECK symbols work properly
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109451
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Tue, 18 Mar 2008 15:43:34 +0000 (15:43 +0000)]
Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
actual problems, per se. I also added format attributes to any printf wrapper functions I found that didn't have them. -Wsecurity and -Wmissing-format-attribute added to --enable-dev-mode.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109447
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 18 Mar 2008 15:13:07 +0000 (15:13 +0000)]
Make sure values are interpreted as character strings and not format strings.
(AST-2008-004)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109396
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 18 Mar 2008 15:10:45 +0000 (15:10 +0000)]
Block this here. Already committed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109394
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 18 Mar 2008 15:08:09 +0000 (15:08 +0000)]
Merged revisions 109386 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109386 | file | 2008-03-18 11:58:39 -0300 (Tue, 18 Mar 2008) | 3 lines
Put a maximum limit on the number of payloads accepted, and also make sure a given payload does not exceed our maximum value.
(AST-2008-002)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109390
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 18 Mar 2008 15:07:04 +0000 (15:07 +0000)]
Do not return with a successful authentication if the From header ends up empty.
(AST-2008-003)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109389
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Tue, 18 Mar 2008 14:09:50 +0000 (14:09 +0000)]
Merged revisions 109309 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109309 | murf | 2008-03-18 00:37:15 -0600 (Tue, 18 Mar 2008) | 17 lines
(closes issue #11903)
Reported by: atis
Many thanks to atis for spotting this problem and reporting it.
The fix was to straighten out how items are placed on and removed
from the file stack. Regressions as well as the provided test case
helped to straighten out all code paths. valgrind was used to make
sure all memory allocated was freed.
Sorry for not solving this earlier. I got distracted.
Added the ntest23 regression test, which is mainly a copy of ntest22,
but with a few juicy errors thrown in, to replicate the kind of
error that atis spotted.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109357
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Olle Johansson [Tue, 18 Mar 2008 07:23:45 +0000 (07:23 +0000)]
Add manager peerstatus events when peer can't authenticate.
(closes issue #11959)
Reported by: mostyn
Patches:
peerstatus3.patch uploaded by mostyn (license 398)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109316
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Sean Bright [Tue, 18 Mar 2008 00:28:39 +0000 (00:28 +0000)]
Fix a typo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109282
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Terry Wilson [Mon, 17 Mar 2008 22:10:06 +0000 (22:10 +0000)]
Replace minimime with superior GMime library so that the entire contents of an http post are not read into memory.
This does introduce a dependency on the GMime library for handling HTTP POSTs, but it is available in most distros.
If the library is present, then the compile flag for ENABLE_UPLOADS is enabled by default in menuselect.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109229
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 17 Mar 2008 22:06:44 +0000 (22:06 +0000)]
Merged revisions 109226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109226 | mmichelson | 2008-03-17 17:05:49 -0500 (Mon, 17 Mar 2008) | 12 lines
Fix a logic flaw in the code that stores lock info which is displayed
via the "core show locks" command. The idea behind this section of code was
to remove the previous lock from the list if it was a trylock that had failed.
Unfortunately, instead of checking the status of the previous lock, we were referencing
the index immediately following the previous lock in the lock_info->locks array.
The result of this problem, under the right circumstances, was that the lock which
we currently in the process of attempting to acquire could "overwrite" the previous lock
which was acquired. While this does not in any way affect typical operation, it *could*
lead to misleading "core show locks" output.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109227
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Mon, 17 Mar 2008 17:58:34 +0000 (17:58 +0000)]
block rev 109171 that is already here
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109172
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Steve Murphy [Mon, 17 Mar 2008 17:47:36 +0000 (17:47 +0000)]
(closes issue #12238)
Reported by: mvanbaak
Tested by: murf, mvanbaak
Due to a bug that occurred when merge_contexts_and_delete scanned the "old" or existing contexts, and found a context
that doesn't exist in the new set, yet owned by a different registrar. The context is created in the new set, with the
old registrar, and and all the priorities and extens that have a different registrar are copied into it. But, not the
includes, ignorepats, and switches. I added code to do this immediately after the context is created.
This still leaves a logical hole in the code. If you define a context in two places, (eg. in extensions.conf and also
in extensions.ael), and they both have includes, but different in composition, no new context will be generated, and
therefore the 'old' includes, switches, and ignorepats will not be copied. I'd have added code to simply add any non-duplicates
into the 'new' context that had a different registrar, but there is one big complication: includes, and switches are definitely
order dependent. (ignorepats I'm not sure about). And we'll have to develop some sort of policy about how we
merge order dependent lists, especially if the intersection of the two sets is empty. (in other words, they do not have any
elements in common). Do the new go first, or the old? I've elected to punt this issue until a user complains. Hopefully,
this is pretty rare thing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109169
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Mon, 17 Mar 2008 17:43:46 +0000 (17:43 +0000)]
Update the directory of placed calls on skinny phones
when dialing a channel that does not provide progress (analog ZAP lines)
The phone does handle the double update on calls to channels that do
provide progress and wont insert duplicate items
(closes issue #12239)
Reported by: DEA
Patches:
chan_skinny-call-log.txt uploaded by DEA (license 3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109168
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Mon, 17 Mar 2008 17:31:46 +0000 (17:31 +0000)]
don't define Zaptel features as libraries, they aren't, and we don't want '--with-zaptel-<foo>' configure options for them
also some minor cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109166
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 17 Mar 2008 16:47:02 +0000 (16:47 +0000)]
Remove something that is never ever used.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109113
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Mon, 17 Mar 2008 16:37:31 +0000 (16:37 +0000)]
Add sample events for aastra phones.
aastra-check-cfg is the same as the other check-cfg entries,
and aastra-xml is to load a pre-configured xml script.
(closes issue #12229)
Reported by: gowen72
Patches:
aastra.patch uploaded by gowen72 (license 432)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109111
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 17 Mar 2008 16:26:36 +0000 (16:26 +0000)]
Merged revisions 109107 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109107 | file | 2008-03-17 13:24:29 -0300 (Mon, 17 Mar 2008) | 4 lines
200 OKs in response to a reinvite need to be sent reliably. If the remote side does not receive one the dialog will be torn down.
(closes issue #12208)
Reported by: atrash
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109108
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Mon, 17 Mar 2008 15:16:41 +0000 (15:16 +0000)]
Blocked revisions 109057 via svnmerge
........
r109057 | qwell | 2008-03-17 10:15:56 -0500 (Mon, 17 Mar 2008) | 4 lines
Backport revision 106439 from trunk. I didn't realize this was broken in 1.4 as well.
Closes issue #12222.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109058
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Mon, 17 Mar 2008 14:37:40 +0000 (14:37 +0000)]
Make sure that the temporary sip_request structure is empty so that copy_request doesn't think it already has an ast_str.
(closes issue #12231)
Reported by: IgorG
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109054
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Mon, 17 Mar 2008 14:21:14 +0000 (14:21 +0000)]
Merged revisions 109012 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r109012 | mmichelson | 2008-03-17 09:18:26 -0500 (Mon, 17 Mar 2008) | 6 lines
Make sure that we release the lock on the spyee channel if the spyee or spy has hung up
(closes issue #12232)
Reported by: atis
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109024
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Michiel van Baak [Sun, 16 Mar 2008 21:50:58 +0000 (21:50 +0000)]
Merged revisions 108961 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108961 | mvanbaak | 2008-03-16 22:47:10 +0100 (Sun, 16 Mar 2008) | 7 lines
add missing break to case AST_CONTROL_SRCUPDATE
(closes issue #12228)
Reported by: andrew
Patches:
SRC.patch uploaded by andrew (license 240)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108962
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 16 Mar 2008 17:55:53 +0000 (17:55 +0000)]
Remove an unnecessary thread attribute instance
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108929
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sun, 16 Mar 2008 17:53:46 +0000 (17:53 +0000)]
Fix polling for mailbox changes in mailboxes that are not in the default vm context.
(closes issue #12223)
Reported by: DEA
Patches:
vm-polled-imap.txt uploaded by DEA (license 3)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108927
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Sat, 15 Mar 2008 16:21:04 +0000 (16:21 +0000)]
Remove a double write lock of the contexts lock in ast_wrlock_contexts().
How did this ever work?
(closes issue #12219)
Reported by: ys
Patches:
pbx.c.diff uploaded by ys (license 281)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108894
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 14 Mar 2008 21:20:36 +0000 (21:20 +0000)]
Doxygenify dnsmgr.h
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108857
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 14 Mar 2008 20:14:06 +0000 (20:14 +0000)]
Make sure configure is run before menuselect on a clean checkout
(closes issue #12197)
Reported by: juggie
Patches:
12197.diff uploaded by juggie (license 24)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108799
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 14 Mar 2008 20:09:37 +0000 (20:09 +0000)]
Merged revisions 108796 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108796 | russell | 2008-03-14 15:09:22 -0500 (Fri, 14 Mar 2008) | 5 lines
Fix a channel name issue. chan_oss registers the "Console" channel type,
but it created channels with an "OSS" prefix.
(closes issue #12194, reported by davidw, patched by me)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108797
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 14 Mar 2008 20:04:56 +0000 (20:04 +0000)]
Merged revisions 108792 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108792 | russell | 2008-03-14 15:04:35 -0500 (Fri, 14 Mar 2008) | 4 lines
Update the SuSE init script to start networking before asterisk, as well.
(closes issue #12200, reported by and change suggested by reinerotto)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108793
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Fri, 14 Mar 2008 17:05:11 +0000 (17:05 +0000)]
Do a link test in AST_EXT_TOOL_CHECK() to ensure we have all the required libs
reported by the tool.
(closes issue #12067, reported by Juggie, patched by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108740
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Fri, 14 Mar 2008 16:52:51 +0000 (16:52 +0000)]
Merged revisions 108737 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108737 | mmichelson | 2008-03-14 11:44:08 -0500 (Fri, 14 Mar 2008) | 33 lines
Fix a race condition in the SIP packet scheduler which could cause a crash.
chan_sip uses the scheduler API in order to schedule retransmission of reliable
packets (such as INVITES). If a retransmission of a packet is occurring, then the
packet is removed from the scheduler and retrans_pkt is called. Meanwhile, if
a response is received from the packet as previously transmitted, then when we
ACK the response, we will remove the packet from the scheduler and free the packet.
The problem is that both the ACK function and retrans_pkt attempt to acquire the
same lock at the beginning of the function call. This means that if the ACK function
acquires the lock first, then it will free the packet which retrans_pkt is about to
read from and write to. The result is a crash.
The solution:
1. If the ACK function fails to remove the packet from the scheduler and the retransmit
id of the packet is not -1 (meaning that we have not reached the maximum number of
retransmissions) then release the lock and yield so that retrans_pkt may acquire the
lock and operate.
2. Make absolutely certain that the ACK function does not recursively lock the lock in
question. If it does, then releasing the lock will do no good, since retrans_pkt will
still be unable to acquire the lock.
(closes issue #12098)
Reported by: wegbert
(closes issue #12089)
Reported by: PTorres
Patches:
12098-putnopvutv3.patch uploaded by putnopvut (license 60)
Tested by: jvandal
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108738
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Fri, 14 Mar 2008 14:32:55 +0000 (14:32 +0000)]
Merged revisions 108682 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108682 | qwell | 2008-03-14 09:29:05 -0500 (Fri, 14 Mar 2008) | 4 lines
Fix a potential segfault if chan (or chan->music_state) is NULL.
Closes issue #12210, credit to edantie for pointing this out.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108683
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 13 Mar 2008 23:12:59 +0000 (23:12 +0000)]
documenting changes as a result of adding TCP functionality to ExternalIVR
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108639
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 13 Mar 2008 21:47:55 +0000 (21:47 +0000)]
Make this compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108586
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 13 Mar 2008 21:40:43 +0000 (21:40 +0000)]
Merged revisions 108583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108583 | russell | 2008-03-13 16:38:16 -0500 (Thu, 13 Mar 2008) | 11 lines
Fix another issue that was causing crashes in chanspy. This introduces a new
datastore callback, called chan_fixup(). The concept is exactly like the
fixup callback that is used in the channel technology interface. This callback
gets called when the owning channel changes due to a masquerade. Before this
was introduced, if a masquerade happened on a channel being spyed on, the
channel pointer in the datastore became invalid.
(closes issue #12187)
(reported by, and lots of testing from atis)
(props to file for the help with ideas)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108584
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 13 Mar 2008 21:06:52 +0000 (21:06 +0000)]
Merged revisions 108530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108530 | russell | 2008-03-13 16:06:33 -0500 (Thu, 13 Mar 2008) | 10 lines
Make a tweak that gets the LEDs on polycom phones to blink when an extension that
has been subscribed to goes on hold. Otherwise, they just stay on like it does
when an extension is in use.
(closes issue #11263)
Reported by: russell
Patches:
notify_hold.rev1.txt uploaded by russell (license 2)
Tested by: russell
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108531
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Thu, 13 Mar 2008 20:59:00 +0000 (20:59 +0000)]
Fixing a potential buffer overflow in the manager command ModuleCheck.
Though this overflow is exploitable remotely, we are NOT issuing a security
advisory for this since in order to exploit the overflow, the attacker would
have to establish an authenticated manager session AND have the system privilege.
By gaining this privilege, the attacker already has more powerful weapons at his
disposal than overflowing a buffer with a malformed manager header, so the vulnerability
in this case really lies with the authentication method that allowed the attacker to
gain the system privilege in the first place.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108529
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 13 Mar 2008 20:38:56 +0000 (20:38 +0000)]
set variable to NULL to prevent uninitialized warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108523
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 13 Mar 2008 20:35:28 +0000 (20:35 +0000)]
Fix a place where configuration values could cause an overflow of a buffer.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108508
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 13 Mar 2008 20:26:59 +0000 (20:26 +0000)]
Merged revisions 108469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108469 | russell | 2008-03-13 15:26:28 -0500 (Thu, 13 Mar 2008) | 4 lines
Fix a couple uses of sprintf. The second one could actually cause an overflow
of a stack buffer. It's not a security issue though, it only depends on your
configuration.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108472
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Thu, 13 Mar 2008 19:54:44 +0000 (19:54 +0000)]
Merge changes from team/jamesgolovich/chan_sip-ast_str
This set of changes removes the hard coded maximum packet size of 4kB from chan_sip.
It now starts by allocating 1kB, and growing the buffer as needed to accommodate large
packets.
(closes issue #8556, reported by mikma, patch by jamesgolovich)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108439
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jeff Peeler [Thu, 13 Mar 2008 18:59:04 +0000 (18:59 +0000)]
(closes issue #11827)
Reported by: ctooley
Patches:
eivr_tcp_generic.patch uploaded by jpeeler (license 325)
This change adds the ability to communicate over a TCP socket instead of forking a child process.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108404
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 12 Mar 2008 22:49:26 +0000 (22:49 +0000)]
Make the default prefix empty, like it was in Asterisk 1.4.
(closes issue #12198, reported by bkruse, patched by me)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108346
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 12 Mar 2008 22:13:18 +0000 (22:13 +0000)]
Rename ast_tcptls_server_instance to session_instance, since this pertains to
server and client usage.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108295
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 12 Mar 2008 22:09:52 +0000 (22:09 +0000)]
Let's get this to compile
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108293
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 12 Mar 2008 21:57:41 +0000 (21:57 +0000)]
Merged revisions 108288 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108288 | mmichelson | 2008-03-12 16:53:46 -0500 (Wed, 12 Mar 2008) | 14 lines
Change AST_SCHED_DEL use to ast_sched_del for autocongestion in chan_sip.
The scheduler callback will always return 0. This means that this id
is never rescheduled, so it makes no sense to loop trying to delete
the id from the scheduler queue. If we fail to remove the item from the
queue once, it will fail every single time.
(Yes I realize that in this case, the macro would exit early because the
id is set to -1 in the callback, but it still makes no sense to use
that macro in favor of calling ast_sched_del once and being done with it)
This is the first of potentially several such fixes.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108289
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 12 Mar 2008 21:37:40 +0000 (21:37 +0000)]
add support for named sections in zapata.conf, and fix a few bugs in config file parsing
(closes issue #9503)
Reported by: tzafrir
Patches:
fix_cleanups uploaded by tzafrir (license 46)
zapata_sections uploaded by tzafrir (license 46)
skipchannel_options uploaded by tzafrir (license 46)
conf_sample uploaded by tzafrir (license 46)
patches updated by me to better conform to coding guidelines and fix some problems
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108286
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Wed, 12 Mar 2008 21:19:30 +0000 (21:19 +0000)]
Merged revisions 108227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108227 | mmichelson | 2008-03-12 16:16:28 -0500 (Wed, 12 Mar 2008) | 12 lines
Added a large comment before the AST_SCHED_DEL macro to explain its purpose as well as when
it is appropriate and when it is not appropriate to use it.
I also removed the part of the debug message that mentions that this is probably a bug because
there are some perfectly legitimate places where ast_sched_del may fail to delete an entry (e.g.
when the scheduler callback manually reschedules with a new id instead of returning non-zero to
tell the scheduler to reschedule with the same idea). I also raised the debug level of the debug
message in AST_SCHED_DEL since it seems like it could come up quite frequently since the macro
is probably being used in several places where it shouldn't be. Also removed the redundant line,
file, and function information since that is provided by ast_log.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108238
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 12 Mar 2008 21:06:50 +0000 (21:06 +0000)]
Doxygenify slinfactory a bit.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108226
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Wed, 12 Mar 2008 20:27:01 +0000 (20:27 +0000)]
Merged revisions 108086 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108086 | kpfleming | 2008-03-12 14:16:07 -0500 (Wed, 12 Mar 2008) | 6 lines
if we receive an INVITE with a Content-Length that is not a valid number, or is zero, then don't process the rest of the message body looking for an SDP
closes issue #11475
Reported by: andrebarbosa
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108191
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 12 Mar 2008 19:59:05 +0000 (19:59 +0000)]
Merged revisions 108135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108135 | russell | 2008-03-12 14:57:42 -0500 (Wed, 12 Mar 2008) | 40 lines
(closes issue #12187, reported by atis, fixed by me after some brainstorming
on the issue with mmichelson)
- Update copyright info on app_chanspy.
- Fix a race condition that caused app_chanspy to crash. The issue was that
the chanspy datastore magic that was used to ensure that spyee channels did
not disappear out from under the code did not completely solve the problem.
It was actually possible for chanspy to acquire a channel reference out of
its datastore to a channel that was in the middle of being destroyed. That
was because datastore destruction in ast_channel_free() was done near the
end. So, this left the code in app_chanspy accessing a channel that was
partially, or completely invalid because it was in the process of being free'd
by another thread. The following sort of shows the code path where the race
occurred:
=============================================================================
Thread 1 (PBX thread for spyee chan) || Thread 2 (chanspy)
--------------------------------------||-------------------------------------
ast_channel_free() ||
- remove channel from channel list ||
- lock/unlock the channel to ensure ||
that no references retrieved from ||
the channel list exist. ||
--------------------------------------||-------------------------------------
|| channel_spy()
- destroy some channel data || - Lock chanspy datastore
|| - Retrieve reference to channel
|| - lock channel
|| - Unlock chanspy datastore
--------------------------------------||-------------------------------------
- destroy channel datastores ||
- call chanspy datastore d'tor ||
which NULL's out the ds' || - Operate on the channel ...
reference to the channel ||
||
- free the channel ||
||
|| - unlock the channel
--------------------------------------||-------------------------------------
=============================================================================
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108137
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Wed, 12 Mar 2008 18:29:33 +0000 (18:29 +0000)]
Merged revisions 108083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108083 | file | 2008-03-12 15:26:37 -0300 (Wed, 12 Mar 2008) | 4 lines
Add a trigger mode that triggers on both read and write. The actual function that returns the combined audio frame though will wait until both sides have fed in audio, or until one side stops (such as the case when you call Wait).
(closes issue #11945)
Reported by: xheliox
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108084
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 12 Mar 2008 17:06:37 +0000 (17:06 +0000)]
- Add Tilghman to the copyright info ... he wrote the hard part :)
- Remove some magic in unload_module that isn't needed. Module use counts
already ensure that the function isn't going to be in use at this point.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108034
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Wed, 12 Mar 2008 17:02:57 +0000 (17:02 +0000)]
Merged revisions 108031 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r108031 | russell | 2008-03-12 11:59:07 -0500 (Wed, 12 Mar 2008) | 4 lines
Destroy the channel lock after the channel datastores.
(inspired by issue #12187)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@108032
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 12 Mar 2008 07:43:03 +0000 (07:43 +0000)]
Deadlock fixes
(closes issue #12143)
Reported by: kactus
Patches:
20080312__bug12143__2.diff.txt uploaded by Corydon76 (license 14)
Tested by: kactus
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107998
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 12 Mar 2008 05:46:39 +0000 (05:46 +0000)]
Revert several changes from revision 102525, as the changes were not
compatible, and, in fact, introduced regressions.
(Closes issue #12190)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107960
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 12 Mar 2008 02:53:21 +0000 (02:53 +0000)]
Cache config files, when possible, for speed
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107928
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Wed, 12 Mar 2008 01:54:00 +0000 (01:54 +0000)]
Merged revisions 107877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107877 | tilghman | 2008-03-11 20:52:40 -0500 (Tue, 11 Mar 2008) | 2 lines
Document all of the possible realtime fields
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107878
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 11 Mar 2008 23:38:00 +0000 (23:38 +0000)]
Merged revisions 107826 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107826 | qwell | 2008-03-11 18:37:05 -0500 (Tue, 11 Mar 2008) | 7 lines
Update documentation for pgsql ODBC voicemail.
(closes issue #12186)
Reported by: jsmith
Patches:
vm_pgsql_doc_update.patch uploaded by jsmith (license 15)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107827
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 11 Mar 2008 22:55:16 +0000 (22:55 +0000)]
An offhand comment from Russell made me realize that the configuration file
caching would not work properly for users.conf and any other file read from
more than one place. I needed to add the filename which requested the config
file to get it to work properly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107791
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 11 Mar 2008 22:54:25 +0000 (22:54 +0000)]
remove documentation of an argument that i did not implement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107790
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 11 Mar 2008 22:21:19 +0000 (22:21 +0000)]
Add a trivial new dialplan function, AST_CONFIG(), which allows you to access
a variable from an Asterisk configuration file in the dialplan, or anywhere
else where dialplan functions can be used.
(Inspired by a discussion with Tilghman and Pari)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107787
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 11 Mar 2008 21:10:45 +0000 (21:10 +0000)]
Convert prepare_and_execute to direct_execute for speed
(closes issue #11935)
Reported by: falves11
Patches:
20080208__bug11935.diff.txt uploaded by Corydon76 (license 14)
Tested by: falves11, Corydon76
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107722
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 11 Mar 2008 20:58:42 +0000 (20:58 +0000)]
Add contributed script for separation of database access from Asterisk
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107721
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Russell Bryant [Tue, 11 Mar 2008 20:54:32 +0000 (20:54 +0000)]
This patch adds support for extended help prompts in voicemail. These prompts
are in the 1.4.9 sounds release.
(closes issue #11705)
Reported by: jaroth
Patches:
helpprompts.patch uploaded by jaroth (license 50)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107719
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Jason Parker [Tue, 11 Mar 2008 20:53:48 +0000 (20:53 +0000)]
Merged revisions 107714 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107714 | qwell | 2008-03-11 15:49:56 -0500 (Tue, 11 Mar 2008) | 5 lines
Copy voicemail dependency logic for res_adsi to chan_gtalk and chan_jingle (for jabber).
(closes issue #12014)
Reported by: junky
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107718
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 20:50:57 +0000 (20:50 +0000)]
Merged revisions 107713 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107713 | kpfleming | 2008-03-11 15:48:58 -0500 (Tue, 11 Mar 2008) | 2 lines
get chan_vpb to build properly in dev mode
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107715
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 11 Mar 2008 20:36:14 +0000 (20:36 +0000)]
Dial a device even if it's state is unknown.
(closes issue #12184)
Reported by: bluecrow76
Patches:
asterisk-svn-app_page.c.devicestate_unknown.diff uploaded by bluecrow76 (license 270)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107710
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 11 Mar 2008 19:23:28 +0000 (19:23 +0000)]
Merged revisions 107646 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107646 | file | 2008-03-11 16:20:01 -0300 (Tue, 11 Mar 2008) | 4 lines
Make sure the visible indication is on the right channel so when the masquerade happens the proper indication is enacted.
(closes issue #11707)
Reported by: iam
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107659
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 11 Mar 2008 18:48:59 +0000 (18:48 +0000)]
Merged revisions 107637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107637 | file | 2008-03-11 15:47:33 -0300 (Tue, 11 Mar 2008) | 4 lines
Add an additional check for setting conference parameter when using the marked user options. It was possible for it to return to a no listen/no talk state if a masquerade happened.
(closes issue #12136)
Reported by: aragon
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107638
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 11 Mar 2008 17:34:46 +0000 (17:34 +0000)]
Blocked revisions 107582 via svnmerge
........
r107582 | file | 2008-03-11 14:32:17 -0300 (Tue, 11 Mar 2008) | 4 lines
Fix a minor spelling error.
(closes issue #12183)
Reported by: darrylc
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107583
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Tilghman Lesher [Tue, 11 Mar 2008 16:28:03 +0000 (16:28 +0000)]
Whitespace changes only
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107551
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Mark Michelson [Tue, 11 Mar 2008 15:59:32 +0000 (15:59 +0000)]
Remove some redundant logic from wait_for_answer. This also let's us get rid of one of
those XXX comments from the code.
The redundancy occurs because the 'single' flag implies that the 'r' and 'm' flags are
not set, so there's no need to explicitly check them again.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107530
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 15:39:37 +0000 (15:39 +0000)]
fix another potential bug found by gcc 4.3
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107525
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 15:19:05 +0000 (15:19 +0000)]
block fix that is already here
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107475
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 15:13:38 +0000 (15:13 +0000)]
Merged revisions 107464 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107464 | kpfleming | 2008-03-11 09:53:03 -0500 (Tue, 11 Mar 2008) | 2 lines
fix various other problems found by gcc 4.3
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107466
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Joshua Colp [Tue, 11 Mar 2008 15:05:17 +0000 (15:05 +0000)]
Clarify comment about masquerading and playback of the parking slot.
(closes issue #12180)
Reported by: davidw
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107465
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 14:37:03 +0000 (14:37 +0000)]
Merged revisions 107461 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107461 | kpfleming | 2008-03-11 09:33:45 -0500 (Tue, 11 Mar 2008) | 2 lines
stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107462
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 14:09:49 +0000 (14:09 +0000)]
Merged revisions 107408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107408 | kpfleming | 2008-03-11 09:07:59 -0500 (Tue, 11 Mar 2008) | 5 lines
check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4)
(closes issue #12179)
Reported by: Netview
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107409
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
Kevin P. Fleming [Tue, 11 Mar 2008 13:58:37 +0000 (13:58 +0000)]
Merged revisions 107405 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r107405 | kpfleming | 2008-03-11 08:57:08 -0500 (Tue, 11 Mar 2008) | 2 lines
fix small bug in IMAP toolkit testing
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@107406
65c4cc65-6c06-0410-ace0-
fbb531ad65f3