Commit Graph

1333 Commits (38e98f42bc656c514b321a55bdfd5bb1c0a0fb55)

Author SHA1 Message Date
Tilghman Lesher 64bbce9b9b Make the ast_assert call within ast_sched_del report something useful.
18 years ago
Kevin P. Fleming ced50934cb remove the dlfcn compatibility stuff, because no platforms that Asterisk currently runs on it use it, and it doesn't build anyway
18 years ago
Kevin P. Fleming 75c6f9ab0f a whole pile of Zaptel/DAHDI compatibility work, with lots more to come... this tree is not yet ready for users to be easily upgrading or switching, but it needs to be :-)
18 years ago
Kevin P. Fleming 92ef406265 new installations should be using DAHDI instead of Zaptel, so the sample config file is now chan_dahdi.conf instead of zapata.conf
18 years ago
Kevin P. Fleming 2ea77b3508 add support for a configuration parameter for 'inband audio during RELEASE', which is currently mandatory in libpri-1.4.4 but will become configurable in libpri-1.4.5 later today
18 years ago
Russell Bryant 37f91908e6 add a simple ASTOBJ_TRYWRLOCK macro ...
18 years ago
Tilghman Lesher e46bb5f5bc Cause SIP to return a 480 instead of a 404 when a sip peer exists, but is not
18 years ago
Tilghman Lesher e9d086a277 Fix the 'dialplan remove extension' logic, so that it a) works with cidmatch,
18 years ago
Steve Murphy e9f5152eba The CDRfix4/5/6 omnibus cdr fixes.
18 years ago
Russell Bryant 791f9b12d3 Fix a typo in the non-DEBUG_THREADS version of the recently added DEADLOCK_AVOIDANCE()
18 years ago
Tilghman Lesher c20daa7d8c Since HAVE_DAHDI is defined to HAVE_ZAPTEL in dahdi_compat.h, we must first
18 years ago
Tilghman Lesher db4ae54745 In this debugging function, copy to a buffer instead of using potentially unsafe pointers.
18 years ago
Kevin P. Fleming 994998a9da allow tonezone to live in a different place than DAHDI/Zaptel, since dahdi-tools and dahdi-linux are now separate packages and can be installed in different places
18 years ago
Jeff Peeler a2266547c6 fixed dahdi compatability header from assuming either dahdi or zaptel is installed (may not have either)
18 years ago
Jeff Peeler f9818af8dd Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff should continue working. Release announcement to follow.
18 years ago
Steve Murphy 5c2cf0f3c0 (closes issue #10668)
18 years ago
Terry Wilson c340004d76 Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.
18 years ago
Russell Bryant 3d461c7cb6 Oddly enough, all of the contents of audiohook.h were in there twice. I have
18 years ago
Tilghman Lesher ba9f012573 Define also when not DEBUG_THREADS
18 years ago
Tilghman Lesher 65808210e9 Add some debugging code that ensures that when we do deadlock avoidance, we
18 years ago
Tilghman Lesher 3fcdfbf20f Add format type checking for recently de-inlined function
18 years ago
Russell Bryant a3d59980ea Don't declare a function that takes variable arguments as inline, because it's
18 years ago
Tilghman Lesher c10b6550ea The addition of usleep(2) within ast_assert requires the inclusion of the unistd.h header
18 years ago
Russell Bryant 4b2a679f9e Add ast_assert(), which can be used to handle fatal errors. It is only compiled
18 years ago
Mark Michelson 1167869a80 A change to the way channel locks are handled when DEBUG_CHANNEL_LOCKS is defined.
18 years ago
Joshua Colp f0efe0d2b5 Improve res_ninit and res_ndestroy autoconf logic on the Darwin platform.
18 years ago
Russell Bryant e1c4c9e7b6 Merged revisions 115511 via svnmerge from
18 years ago
Joshua Colp 6e6849f1a0 Make sure that either the main speex library contains preprocess functions or that speexdsp does. If both fail then speex stuff can not be built.
18 years ago
Tilghman Lesher 6142d1648c Err, the documentation on the return value of ast_odbc_backslash_is_escape is exactly backwards.
18 years ago
Joshua Colp a8c56a51d6 For my next trick I will make these work with what our autoconf header file gives us.
18 years ago
Brett Bryant 61bee5aa54 Add new "pri show version" command to show the libpri version for support reasons.
18 years ago
Mark Michelson 89453ef4c1 Clarify a comment that was, well, just wrong. It turns out that
18 years ago
Tilghman Lesher 291dd88595 Change the comment of deprecated to an actual compiler deprecation
18 years ago
Russell Bryant 5f1f3ed473 Merge changes from team/russell/iax2_find_callno and iax2_find_callno_1.4
18 years ago
Russell Bryant f8848a7fe8 Store the manager session ID explicitly as 4 byte ID instead of a ulong. The
18 years ago
Russell Bryant 39d1303e14 Merge changes from team/russell/issue_9520
18 years ago
Mark Michelson 171a6a24bb Add prototype for ast_dsp_frame_freed. I'm not sure how this was
18 years ago
Mark Michelson 71b704ef78 It was possible for a reference to a frame which was part of a freed DSP to still be
18 years ago
Mark Michelson 1a9b7dc5c5 Fix 1.4 build when LOW_MEMORY is enabled.
18 years ago
Joshua Colp 8c03119ce5 If audio suddenly gets fed into one side of a channel after a lapse of frames flush the other factory so that old audio does not remain in the factory causing the sync code to not execute.
18 years ago
Joshua Colp 214973a574 Ensure that we do not exceed the hold's maximum size with a single frame.
19 years ago
Steve Murphy 0ce3eb0e2a (closes issue #12302)
19 years ago
Joshua Colp be84adc952 Add an option (transmit_silence) which transmits silence during both Record() and DTMF generation. The reason this is an option is that in order to transmit silence we have to setup a translation path. This may not be needed/wanted in all cases.
19 years ago
Terry Wilson c7e067ecde Fix character string being treated ad format string
19 years ago
Russell Bryant efa3b46cdf Fix another issue that was causing crashes in chanspy. This introduces a new
19 years ago
Mark Michelson f69043c1f0 Added a large comment before the AST_SCHED_DEL macro to explain its purpose as well as when
19 years ago
Joshua Colp 4a8d87fe98 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).
19 years ago
Kevin P. Fleming 9569d74df5 stop checking for mktime() in the configure script... we don't use it, and the test is buggy under gcc 4.3
19 years ago
Joshua Colp 2bf8f9fca3 Move where unanswered CDRs are dropped to the CDR core, not everything uses app_dial.
19 years ago
Russell Bryant bfed30d5dd Change a warning message to a debug message. This is happening quite frequently,
19 years ago
Joshua Colp cd703523db Add a control frame to indicate the source of media has changed. Depending on the underlying technology it may need to change some things.
19 years ago
Tilghman Lesher b350a97937 Correctly initialize retransid in SIP, and ensure that the warning when failing to delete a schedule entry can actually hit the log.
19 years ago
Russell Bryant d564404d73 Fix a bug that I just noticed in the RTP code. The calculation for setting the
19 years ago
Joshua Colp 36bb1f9d46 When a new source of audio comes in (such as music on hold) make sure the marker bit gets set.
19 years ago
Russell Bryant 547ac9f501 Merge in some changes from team/russell/autoservice-nochans-1.4
19 years ago
Russell Bryant 12e5fb358a Fix a bug in the lock tracking code that was discovered by mmichelson. The issue
19 years ago
Russell Bryant bc56a84c58 Merge changes from team/russell/smdi-1.4
19 years ago
Mark Michelson 638ef8c5d2 Change to the configure logic regarding IMAP. Prior to this commit, if you wished to configure
19 years ago
Tilghman Lesher 0dafcac660 Cross-platform fix: OS X now deprecates the use of the daemon(3) API.
19 years ago
Tilghman Lesher 1191559147 Change detection of getifaddrs to use AST_C_COMPILE_CHECK, backported from trunk (as suggested by kpfleming)
19 years ago
Tilghman Lesher df1dc7741d Compatibility fix for OpenWRT (reported by Brian Capouch via the mailing list)
19 years ago
Russell Bryant ef78f25e8a Make some deadlock related fixes. These bugs were discovered and reported
19 years ago
Tilghman Lesher 7060a6888d When deleting a task from the scheduler, ignoring the return value could
19 years ago
Kevin P. Fleming cc750dc9ce make these macros not assume that the only other field in the structure is 'argc'... this is true when someone uses AST_DECLARE_APP_ARGS, but it's perfectly reasonable to define your own structure as long as it has the right fields
19 years ago
Tilghman Lesher cae4280341 Permit the user to specify number of seconds that a connection may remain idle,
19 years ago
Joshua Colp d0d93be4f4 Remove the __ in front of the unused variable. This causes some compilers to freak out.
19 years ago
Russell Bryant 06d3c61a2e Revert adding the packed attribute, as it really doesn't make sense why that
19 years ago
Russell Bryant f0001ecf66 Since we're relying on the offset between the frame and the beginning of the translator
19 years ago
Russell Bryant 6d0ee62540 Have IAX2 optimize the codec translation path just like chan_sip does it. If
19 years ago
Russell Bryant 904f38a40a Add an unused pointer to the ast_channel struct. This makes the ast_channel structure
19 years ago
Joshua Colp fa640604de Replace current spy architecture with backport of audiohooks. This should take care of current known spy issues.
19 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.
19 years ago
Russell Bryant 7a007060bd Commit a fix for some memory access errors pointed out by the valgrind2.txt
19 years ago
Russell Bryant 45f3890926 Backport the ability to set the ToS bits on Linux when not running as root.
19 years ago
Jason Parker 00b8f86349 Fix a comment that is no longer true.
19 years ago
Russell Bryant 742fd8127c Remove pbx_kdeconsole from the tree. It hasn't worked in ages, and nobody has
19 years ago
Russell Bryant 67df6e008d Use the constant that I really meant to use here ...
19 years ago
Russell Bryant 5977f8d5be Convert the contexts lock to a read/write lock to resolve a deadlock. This
19 years ago
Russell Bryant 612d0b8f45 Check for the existence of the soxmix application on the target platform and have
19 years ago
Tilghman Lesher 8057fb41cb Today is tomorrow's yesterday, and yesterday's tomorrow is today, and
19 years ago
Kevin P. Fleming 627f595c58 In http://lists.digium.com/pipermail/asterisk-dev/2007-December/031145.html,
19 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