aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2007-11-16Fix broken parking dial-backtwilson1-9/+9
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89347 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16My goodness, haven't handled an extension deletion. Add code to ↵murf1-10/+62
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: http://svn.digium.com/svn/asterisk/trunk@89346 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16paths are already in include/asterisk/paths.h so don't duplicaterizzo2-23/+2
them in include/asterisk.h git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89345 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16whitespace only change - adjust indentation and add somerizzo2-91/+106
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: http://svn.digium.com/svn/asterisk/trunk@89341 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Blocked revisions 89339 via svnmergerussell0-0/+0
........ 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: http://svn.digium.com/svn/asterisk/trunk@89340 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16logger.h does not need options.hrizzo1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89338 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16remove redundant #include "asterisk/compat.h",rizzo10-21/+3
but make sure that asterisk/compiler.h is included everywhere git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89336 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16remove duplicate headers.rizzo2-5/+2
Properly check for netdb.h (there is actually tens of places to fix) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16put back default optimization to -O6 (previously changed by mistake)rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89334 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo265-1146/+56
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: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Fixing a problem pointed out by Qwellmmichelson1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89332 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Added some locks that should have been around astman_send_error,mmichelson1-0/+4
at least according to the comments. (closes issue #11258, reported and patched by eliel) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89331 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16This corrects a hashtab removal, given a bad argumentmurf1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89330 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16This fixes a problem with pattern ranges; and corrects a situation in ↵murf2-3/+14
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: http://svn.digium.com/svn/asterisk/trunk@89329 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16both md5sum and variable substitutions such as ${BUILDSUM:0:8}rizzo1-2/+11
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: http://svn.digium.com/svn/asterisk/trunk@89328 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Adding confirmation playback when forwarding voicemail messages. This will ↵mmichelson1-0/+18
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: http://svn.digium.com/svn/asterisk/trunk@89327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Merged revisions 89325 via svnmerge from kpfleming3-1/+18
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: http://svn.digium.com/svn/asterisk/trunk@89326 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Merged revisions 89323 via svnmerge from mmichelson1-9/+4
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: http://svn.digium.com/svn/asterisk/trunk@89324 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16add a small new function to retrieve variables from a configrizzo2-0/+13
once we have a pointer to the category. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89322 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16fixed #10631, about one way audio. thanks IgorG again.crichter1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89321 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16move the inner part of config file parsing to a separate function,rizzo1-22/+27
so it can be reused in the implementation of cli commands when they have a similar syntax. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89320 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16fixed compilation of chan_misdn, #11269, thanks IgorG.crichter1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89319 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15If we're going to be passing a negative value for the size of a stringfield,tilghman2-2/+2
in order to indicate something, then using an UNSIGNED parameter is bad, mmmmmkay? git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89312 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89302 via svnmerge from tilghman1-2/+2
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: http://svn.digium.com/svn/asterisk/trunk@89304 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89301 via svnmerge from tilghman1-1/+1
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: http://svn.digium.com/svn/asterisk/trunk@89303 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Fix trunk breakage due to chan->lock being renamed.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89300 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89298 via svnmerge from tilghman1-0/+12
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: http://svn.digium.com/svn/asterisk/trunk@89299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89296 via svnmerge from russell1-0/+23
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: http://svn.digium.com/svn/asterisk/trunk@89297 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Get rid of a previously missed ast_log call for debug, no longer nec.murf1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89295 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Perhaps I went overboard on initializing things. I can remove unnecc. stuff ↵murf1-14/+21
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: http://svn.digium.com/svn/asterisk/trunk@89294 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15access channel locks through ast_channel_lock/unlock/trylock and notrizzo8-30/+30
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: http://svn.digium.com/svn/asterisk/trunk@89293 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Fix typo in UPGRADE.txt. 'increase' should have been used, not 'increasing'.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89291 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15And file said... let trunk build again! Accomplished by some more ↵file3-8/+9
constification, and marking a function in chan_sip as purposely unused until it is fixed up. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89290 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89288 via svnmerge from mmichelson1-1/+0
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: http://svn.digium.com/svn/asterisk/trunk@89289 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89286 via svnmerge from mmichelson1-0/+1
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: http://svn.digium.com/svn/asterisk/trunk@89287 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Always relying on the responses when crossing NAT's are not a goodoej1-1/+7
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: http://svn.digium.com/svn/asterisk/trunk@89285 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89281 via svnmerge from oej1-5/+17
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: http://svn.digium.com/svn/asterisk/trunk@89283 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89280 via svnmerge from oej1-18/+25
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: http://svn.digium.com/svn/asterisk/trunk@89282 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Exit early instead of deciding to exit after processing the message.oej1-9/+12
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Add support for application/dtmf SIP INFO dtmf handling. Yep, anotheroej2-12/+84
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: http://svn.digium.com/svn/asterisk/trunk@89278 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Had trouble playing with parking; spent a long time trying to reason out ↵murf1-1/+4
MATCHMORE mode. made these updates and xfers on zaptel lines seem to work ok now git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89277 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-15Merged revisions 89275 via svnmerge from tilghman1-3/+10
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: http://svn.digium.com/svn/asterisk/trunk@89276 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14Typotilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89274 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14Add callerid to the Hangup manager event.tilghman1-0/+4
Reported by: outtolunc Patch by: outtolunc Closes issue #11248 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89273 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14Rescaled the weights of the patterns to give something more independent of ↵murf1-14/+33
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: http://svn.digium.com/svn/asterisk/trunk@89272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14A further problem highlighted by 11233 has been resolved; a certain ↵murf1-5/+5
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: http://svn.digium.com/svn/asterisk/trunk@89271 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14One more typo in config.c; and missed conversions due to the constifying of ↵tilghman6-11/+13
ast_variable_new parameters git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89270 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14Typotilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89269 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14make the 'name' and 'value' fields in ast_variable const char *rizzo23-61/+76
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: http://svn.digium.com/svn/asterisk/trunk@89268 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-14Fix up various coding guidelines issues ...russell2-140/+189
- 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: http://svn.digium.com/svn/asterisk/trunk@89266 f38db490-d61c-443f-a65b-d21fe96a405b