Commit Graph

1263 Commits (f2ecc4c80e90112eadc648d15ebeb67e56d61b52)

Author SHA1 Message Date
Joshua Colp fa640604de Replace current spy architecture with backport of audiohooks. This should take care of current known spy issues.
18 years ago
Joshua Colp a0c14dbda3 Add autoconf logic for speexdsp. Later versions use a separate library for some things so we need to use it if present in codec_speex.
18 years ago
Russell Bryant 7a007060bd Commit a fix for some memory access errors pointed out by the valgrind2.txt
18 years ago
Russell Bryant 45f3890926 Backport the ability to set the ToS bits on Linux when not running as root.
18 years ago
Jason Parker 00b8f86349 Fix a comment that is no longer true.
18 years ago
Russell Bryant 742fd8127c Remove pbx_kdeconsole from the tree. It hasn't worked in ages, and nobody has
18 years ago
Russell Bryant 67df6e008d Use the constant that I really meant to use here ...
18 years ago
Russell Bryant 5977f8d5be Convert the contexts lock to a read/write lock to resolve a deadlock. This
18 years ago
Russell Bryant 612d0b8f45 Check for the existence of the soxmix application on the target platform and have
18 years ago
Tilghman Lesher 8057fb41cb Today is tomorrow's yesterday, and yesterday's tomorrow is today, and
18 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
18 years ago
Mark Michelson c9f389a45d When compiling with DETECT_DEADLOCKS, don't spam the CLI with messages
19 years ago
Tilghman Lesher b4b34f080d Test directly for the API that fixed AST-2007-026, to ensure that older
19 years ago
Russell Bryant 7be75dbbc9 Fix another bug in the DEBUG_THREADS code. The ast_mutex_init() function had
19 years ago
Russell Bryant 168a6bed5a I love fixing lock related errors in the lock debugging code. That's about as
19 years ago
Russell Bryant 0522e3d872 Add a new module flag to indicate that a build sum is present. Modules built
19 years ago
Olle Johansson 95dce3bbba Make sure logger is reloaded at general reload in the cli.
19 years ago
Russell Bryant eccfefae2c Fix some crashes in chan_iax2 that were reported as happening on Mac systems.
19 years ago
Russell Bryant fc232a9a27 Modify file.h to maintain API compatibility with earlier versions. If a recent
19 years ago
Tilghman Lesher b8c8dee621 Solaris requires the inclusion of sys/loadavg.h for getloadavg().
19 years ago
Mark Michelson 7b052b78e1 A big one...
19 years ago
Joshua Colp b18d1bdd1a Preserve the indication currently playing on a channel when a masquerade operation happens. (issue #BE-88)
19 years ago
Russell Bryant 1f8caa100d Change the behavior of ao2_link(). Previously, in inherited a reference.
19 years ago
Russell Bryant 82757dfaa1 Add some notes on the behavior of ao2_unlink() after a discussion with Tilghman
19 years ago
Tilghman Lesher 2c11f7d18e Use of "private" as a field name in a header file messes with C++ projects
19 years ago
Russell Bryant 2fc83c3db1 This set of changes is to make some callerID handling thread-safe.
19 years ago
Russell Bryant 1380790b60 Merge a change from team/russell/chan_refcount ...
19 years ago
Russell Bryant d0cd120d47 - update documentation for some of the goto functions to note that they
19 years ago
Olle Johansson 0c3ec937ce If we get a codec offer using a well-known payload type, but using it for another
19 years ago
Steve Murphy 1975b6e753 closes issue #11379; OK, this is an attempt to make both sides happy. To the cdr.conf file, I added the option 'unanswered', which defaults to 'no'. In this mode, you will see a cdr for a call, whether it was answered or not. The disposition will be NO ANSWER or ANSWERED, as appropriate. The src is as you'd expect, the destination channel will be one of the channels from the Dial() call, usually the last in the list if more than one chan was specified. With unanswered set to 'yes', you will still see this cdr entry in both cases. But in the case where the dial timed out, you will also see a cdr for each line attempted, marked NO ANSWER, with no destination channel name. The new option defaults to 'no', so you don't see the pesky extra cdr's by default, and you will not see the irritating 'not posted' messages.
19 years ago
Tilghman Lesher 095108273b We previously attempted to use the ESCAPE clause to set the escape delimiter to
19 years ago
Kevin P. Fleming a90e90384c re-doxygen some comments
19 years ago
Kevin P. Fleming 337fb0c37f bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms
19 years ago
Russell Bryant 12d60508f3 Temporarily revert revision 89325, which added md5 magic for keeping track of
19 years ago
Kevin P. Fleming 22b119d188 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.
19 years ago
Tilghman Lesher f75916e7be We went to the trouble of creating a method of tracking failed trylocks, then never turned it on (oops).
19 years ago
Russell Bryant c60344fd8e Remove some checks to see if locks are initialized from the non-DEBUG_THREADS
19 years ago
Kevin P. Fleming 2c76da2828 update comment to match the state of the code
19 years ago
Russell Bryant 34002d567b After seeing crashes related to channel variables, I went looking around at the
19 years ago
Russell Bryant 5d140cb9c2 Merge changes from asterisk/team/kpfleming/SRV-priority-handling
19 years ago
Luigi Rizzo a0edff2477 Rename ast_string_field_free_pool to ast_string_field_free_memory,
19 years ago
Tilghman Lesher 014b83fad6 Fix build on Solaris
19 years ago
Tilghman Lesher 1d34377a9c Fix for uninitialized mutexes on *BSD
19 years ago
Russell Bryant b2382349dc Add some more details to the output of "core show locks". When a thread
19 years ago
Steve Murphy 4c7393a6a4 closes issue #11086 where a user complains that references to following contexts report a problem; The problem was REALLy that he was referring to empty contexts, which were being ignored. Reporter stated that empty contexts should be OK. I checked it out against extensions.conf, and sure enough, empty contexts ARE ok. So, I removed the restriction from AEL. This, though, highlighted a problem with multiple contexts of the same name. This should be OK, also. So, I added the extend keyword to AEL, and it can preceed the 'context' keyword (mixed with 'abstract', if nec.). This will turn off the warnings in AEL if the same context name is used 2 or more times. Also, I now call ast_context_find_or_create for contexts now, instead of just ast_context_create; I did this because pbx_config does this. The 'extend' keyword thus becomes a statement of intent. AEL can now duplicate the behavior of pbx_config,
19 years ago
Kevin P. Fleming 214a5ca25e appending one list to another should leave the first list empty, and not require the user to do that
19 years ago
Russell Bryant d18ac4dcca If lock tracking is not enabled, then we can not attempt to log any mutex
19 years ago
Russell Bryant 6f9f535896 Update the static mutex initializer to include the initialization of
19 years ago
Russell Bryant 9df6ebe9b9 The channel needs to stay locked while running timer callbacks, as they access
19 years ago
Russell Bryant 6f38c9d211 really picky formatting tweak ...
19 years ago
Russell Bryant 7cd8afd1ea Some locking errors exposed the fact that the lock debugging code itself was
19 years ago
Russell Bryant 6b9addb181 Make a few changes so that characters in the upper half of the ISO-8859-1
19 years ago
Russell Bryant bad30446a6 Fix an issue with console verbosity when running asterisk -rx to execute a command
19 years ago
Russell Bryant 6c18b111b9 Properly handle the case where read() may return the text for more than one
19 years ago
Russell Bryant 863ae211da I introduced a new member to the ast_filestream struct in 1.4.12, but put it
19 years ago
Kevin P. Fleming 9cdda4fc78 use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly
19 years ago
Tilghman Lesher 96d11d3e02 This commit fixes the following issues:
19 years ago
Russell Bryant 5fdc354155 Fulfull a feature request from Qwell on the "core show locks" output. It will
19 years ago
Russell Bryant 2cc21a3e83 Show rwlocks in the "core show locks" output. Before, it only showed mutexes.
19 years ago
Russell Bryant 2ef9410363 Fix the AST_MODULE_INFO macro for C++ modules. The load and reload parameters
19 years ago
Dwayne M. Hubbard 7c4e477fde if an Agent is redirected, the base channel should actually be redirected. This was causing multiple issues, especially issue 7706 and BE-160
19 years ago
Russell Bryant d6b8fb4dc0 gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
19 years ago
Russell Bryant 0f23b76a39 Add a new patch to handle interrupting the fgets() call when using FastAGI.
19 years ago
Russell Bryant 5213f548f5 Add checking for libusb here, so nobody has to deal with conflicts in the
19 years ago
Russell Bryant c8dd4e7430 Only compile in tracking astobj2 statistics if dev-mode is enabled. Also, when
19 years ago
Tilghman Lesher e28d1357de Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
19 years ago
Tilghman Lesher 2fc5a853d4 Fix inline compiles on really old compilers (who uses gcc 2.7 anymore, really?)
19 years ago
Jason Parker 82c701b0eb This should fix a build issue that people building against uClibc were seeing with the addition of astobj2
19 years ago
Philippe Sultan 8e10babcbd Various string length fixes. Removed an unused variable in aji_client structure (context)
19 years ago
Russell Bryant aa3b7e22f5 Fix an issue that can occur when you do an attended transfer to parking. If
19 years ago
Tilghman Lesher f0cf18cc75 Solaris x86 compatibility fix
19 years ago
Russell Bryant c95389856a Remove the typedefs on ao2_container and ao2_iterator. This is simply because
19 years ago
Mark Michelson e0b90d3b06 Making match_by_addr into ao2_match_by_addr and making it available
19 years ago
Russell Bryant abc5bbdc36 Remove references to a debugging parameter that does not exist
19 years ago
Russell Bryant ed6d4ec72c When executing a dynamic feature, don't look it up a second time by digit pattern
19 years ago
Russell Bryant b2c65cf51d This is a hack to maintain old behavior of chan_iax2. This ensures that if
19 years ago
Russell Bryant e8c2f715b5 Add some more documentation on iterating ao2 containers. The documentation
19 years ago
Russell Bryant 566371bd50 Merge changes from team/russell/iax_refcount.
19 years ago
Steve Murphy b84f9590a0 ugh. removing the diffs from ulaw.h and alaw.h for now; accidentally added them in 80166
19 years ago
Steve Murphy 4b5a9ae533 This patch solves problem 1 in 8126; it should not slow down the alaw codec, but should prevent signal degradation via multiple trips thru the codec. Fossil estimates the twice thru this codec will prevent fax from working. 4-6 times thru would result hearable, noticeable, voice degradation.
19 years ago
Jason Parker f1cb3f70b7 Don't send a semicolon over the wire in sip notify messages.
19 years ago
Joshua Colp 924c88d3d0 Instead of accepting a single DTMF character accept a full string.
19 years ago
Joshua Colp 4f8857d608 Add an API call to allow the engine to know that DTMF was received.
19 years ago
Steve Murphy 241769b53c From a user complaint on #asterisk, I have forced pbx_spool to explain what reason codes mean, when they are logged
19 years ago
Russell Bryant d21e1596f8 The last set of changes that I made to "core show locks" made it not able to
19 years ago
Russell Bryant ad13307328 Fix the return value of AST_LIST_REMOVE(). This shouldn't be causing any
19 years ago
Russell Bryant 38a51a53db Fix compilation failure when MALLOC_DEBUG is enabled, but DEBUG_THREADS is not
19 years ago
Mark Michelson 05ba4d90d4 Changed the behavior of sip's realtime_peer function to match the corresponding way of matching for non-realtime peers.
19 years ago
Russell Bryant 2f41cceb1f Add some improvements to lock debugging. These changes take effect
19 years ago
Joshua Colp 68c221f69a Add some fixes for building on Solaris.
19 years ago
Joshua Colp bc7150c380 Extend autoconf logic to determine which version of gethostbyname_r is on the system.
19 years ago
Joshua Colp 35ceaca691 Add a flag to the speech API that allows an engine to set whether it received results or not.
19 years ago
Tilghman Lesher e5c3ef3388 Merged revisions 76934 via svnmerge from
19 years ago
Joshua Colp 5f37fa26d2 Instead of figuring out kernel versions that have compiler.h and not... let's just use autoconf to check for it's presence. (issue #10174 reported by francesco_r)
19 years ago
Jason Parker d4a7eb584f Merged revisions 74373 via svnmerge from
19 years ago
Russell Bryant ef2ae2f856 regenerate the configure script for rizzo
19 years ago
Russell Bryant cbdc6b5b2d To prevent 92138749238754 more reports of "I have unixodbc installed, but
19 years ago
Kevin P. Fleming ae82d97c6d use ast_localtime() in every place localtime_r() was being used
19 years ago
Jason Parker 0f45225441 Solaris 10 sometimes (?) needs this include in order to have NULL defined.
19 years ago
Olle Johansson ff2943dd59 Issue #9738 - Make sure we can unload res_jabber. Patch by phsultan - thanks!
19 years ago
Russell Bryant e7dd69eea8 Merged revisions 67715 via svnmerge from
19 years ago
Russell Bryant fe9a3bef4e This bug has been hanging over my head ever since I wrote this SLA code.
19 years ago
Russell Bryant d5fd0cff73 When shutting down "gracefully", go through and run the unload() callbacks for
19 years ago
Russell Bryant 35e7f6e86e Fix some compiler warnings in C++ modules.
19 years ago
Russell Bryant 19a2be29f3 Change a couple of header files to not use "new", which is a reserved keyword
19 years ago
Russell Bryant c061b86966 Checking for the strip application needs to be done with AC_PATH_TOOL
19 years ago
Jason Parker b4ea07a7eb Fix handling of zero-length frames when a codec is capable of native PLC.
19 years ago
Steve Murphy dfee354cfa Merged revisions 65172 via svnmerge from
19 years ago
Tilghman Lesher 002214d84f Merged revisions 64819 via svnmerge from
19 years ago
Joshua Colp 99cdfb2542 Merged revisions 63285 via svnmerge from
19 years ago
Russell Bryant 63a37f4755 When serving dynamic content, include a Cache-Control header to instruct the
19 years ago
Joshua Colp 1d4adc0174 Merged revisions 61804 via svnmerge from
19 years ago
Russell Bryant 456cad8a47 Improve DTMF handling in ast_read() even more in response to a discussion on
19 years ago
Russell Bryant 70eb19121e Fix the UpdateConfig manager action to properly treat "variables" and "objects"
19 years ago
Steve Murphy 7d5a79a0b9 This is a big improvement over the current CDR fixes. It may still need refinement, but this won't have as many folks bothered.
19 years ago
Tilghman Lesher a5872f439b Merged revisions 60849 via svnmerge from
19 years ago
Russell Bryant 06ff84b549 To be able to achieve the things that we would like to achieve with the
19 years ago
Joshua Colp f996b1cbc8 Add support for returning different types of results (ie: NBest).
19 years ago
Steve Murphy 798039b4d8 several changes via kpflemings review
19 years ago
Steve Murphy 9c69e34f62 These mods fix CDR issues from 8221, 8593, 8680, 8743, and perhaps others. Mainly with CDRs generated from transfer situations.
19 years ago
Russell Bryant fa97f6c381 The AUDIORTPQOS and VIDEORTPQOS variables are not fully functional in some
19 years ago
Nadi Sarrar 980b0bc785 * mISDN >= 1.2 provides a dsp pipeline for i.e. echo cancellation modules, make chan_misdn use it.
19 years ago
Steve Murphy 6e869d135c The fix for the AEL <<security hole>> (bug 9316) is here...
19 years ago
Russell Bryant fed69df9cd Add configure script checking for GTK2 and some additional Makefile targets
19 years ago
Russell Bryant 31cf37519f Merge changes from svn/asterisk/team/russell/sla_updates
19 years ago
Russell Bryant 71275050ab Increase the maximum number of manager headers to 128, at the request of Pari.
19 years ago
Russell Bryant 137835c878 If the pg_config application is found, but there is probably executing it,
19 years ago
Russell Bryant 3ed86f887e Fix the documentation on the return values from device state provider
19 years ago
Russell Bryant 913948066e Change ast_set_state_callback() to ast_dial_set_state_callback()
19 years ago
Russell Bryant 5bc6ee1714 - Add the ability to register a callback to monitor state changes in an
19 years ago
Russell Bryant 7ee02f585d Merge team/russell/sla_rewrite
19 years ago
Russell Bryant ff1ca74145 When we are checking for a system installed version of libgsm, we need to check
19 years ago
Russell Bryant 824bed6260 Clean up a few things in the last commit to the adaptive jitterbuffer code.
19 years ago
Jim Dixon 2132e4f865 Fixed problem with jitterbuf, whereas it would not complain about, and
19 years ago
Russell Bryant 6abcb7ae23 Fix the formatting of doxygen comments to properly indicate that the comment
19 years ago
Joshua Colp 8acccb9254 Merge in dialing API and the app_page that uses it. (issue #BE-118)
19 years ago
Russell Bryant 33235b40d6 Merge the changes from the /team/group/vldtmf_fixup branch.
19 years ago
Kevin P. Fleming dd357a71a7 use the ACX_PTHREAD macro from the Autoconf macro archive for setting up compiler pthreads support... should improve portability to platforms with unusual pthreads requirements
19 years ago
Joshua Colp 240ca25bea Add support to see whether NAT was detected (yay symmetric RTP) and also add a check in chan_sip so that if NAT has been detected and the reinvite behind nat option has been turned off, then just do partial bridge. (issue #8655 reported by mnicholson)
19 years ago
Kevin P. Fleming 444adcb477 reduce stack consumption for AMI and AMI/HTTP requests by nearly 20K in most cases
19 years ago
Kevin P. Fleming 46d91e71c5 add support for tracking thread-local-storage objects that exist via 'threadstorage' CLI commands
19 years ago
Joshua Colp 345968e6fb Backport support for read/write locks.
19 years ago
Steve Murphy 4d6a91eef0 removed <err.h> as in trunk from the ael stuff. Also, threw in a minor fix to frame.c to avoid build-killing compiler warnings.
19 years ago
Kevin P. Fleming 3307ae060a move extern declaration for this option to a header file where it belongs
19 years ago
Kevin P. Fleming b2c8abbc6d allow 'show memory' and 'show memory summary' to distinguish memory allocations that were done for caching purposes, so they don't look like memory leaks
19 years ago
Joshua Colp 9cc04e026d Add an API call that initializes an RTP structure. We need this because chan_sip is cheeky and uses a temporary RTP structure for codec purposes, and the API calls that are used rely on the lock. (Pointed out on asterisk-dev by Andy Wang)
19 years ago
Luigi Rizzo f9e3c1ecb0 unbreak the macro used for incrementing the frame counters.
20 years ago
Kevin P. Fleming ee8ce744c3 use m4 quoting for AC_MSG_NOTICE calls, to keep these calls from thinking they have multiple arguments
20 years ago
Kevin P. Fleming be1b5dab06 since we really, really have to have autoconfig.h included before all other headers (especially system headers), the Makefile will now force it to happen (this will fix build problems with files like ast_expr2f.c, where we can't control the inclusion order in the file itself)
20 years ago
Joshua Colp 0995fb8aeb Payload values on the RTP structure can change AFTER a bridge has started. This comes from the packet handling of the SIP response when indication that it was answered has been sent. Therefore we need to protect this data with a lock when we read/write. (issue #8232 reported by tgrman)
20 years ago