Commit Graph

683 Commits (9eeca94298c0655778d9b0fa2a1a5d43ad73846c)

Author SHA1 Message Date
Steve Murphy 0f7198f227 This should get rid of a really, really irritating warning generated by some 64-bit platforms from libc, where free(0) is frowned upon
18 years ago
Tilghman Lesher 992f4d1aeb Minor FreeBSD build fix
18 years ago
Russell Bryant 20ce142d01 Don't leak a frame in the case that an END frame is received and the time since
18 years ago
Joshua Colp 0e9071a2e3 Move log message to before the frame it references is freed.
18 years ago
Joshua Colp fb53e2a7f5 Fixes for building under OpenSolaris.
18 years ago
Joshua Colp e2dcbeda0c When returning a DTMF digit from ast_control_streamfile cast it as a char so that 0 does not overlap with the success return code.
18 years ago
Russell Bryant 9df6ebe9b9 The channel needs to stay locked while running timer callbacks, as they access
18 years ago
Russell Bryant 9fcc010cce Revert a change that I made for issue #10979 which, as has been pointed out to
18 years ago
Tilghman Lesher d2c10c49fa When runuser/rungroup is specified, a remote console could only be attained by root
18 years ago
Tilghman Lesher 17ee21bf18 Also set up gmtoff (this is used in the %z gnu extension to strftime)
18 years ago
Joshua Colp 3a935a35a0 Fix memory allocation issue in threadstorage.
18 years ago
Russell Bryant d47ebb492f Add a small fix for the tw version of saying dates.
18 years ago
Russell Bryant 02bb2bcbaa Be pedantic about handling memory allocation failure.
18 years ago
Russell Bryant 9c47228dff The loop in the handler for the "core show locks" could potentially block for
18 years ago
Joshua Colp 0f3e461074 Bring both DTMF begin and end frames up through to the core for DTMF feature handling.
18 years ago
Joshua Colp 3cc997694d If Monitor or a spy was added to a P2P or native bridged channel bring the channel back to the generic bridging core so the monitor or spy operations work.
18 years ago
Russell Bryant b5addcd9a5 Suppress a LOG_DEBUG message if debug is not enabled.
18 years ago
Russell Bryant 39f5611898 Make sure remote consoles unmute themselves again after reconnecting.
18 years ago
Russell Bryant 9b382ca76f Make sure that the base64 decoder returns a terminated string.
18 years ago
Russell Bryant bad30446a6 Fix an issue with console verbosity when running asterisk -rx to execute a command
18 years ago
Russell Bryant 6c18b111b9 Properly handle the case where read() may return the text for more than one
18 years ago
Tilghman Lesher 18fa561af4 A dollar sign by itself, not indicating a start of a variable or expression prematurely ends substitution (closes issue #10939)
18 years ago
Mark Michelson 30b6db4bcf The thread ID should be unsigned.
18 years ago
Tilghman Lesher 96d11d3e02 This commit fixes the following issues:
18 years ago
Joshua Colp ba0bb743e6 Only update codec information if the channel has a technology private structure.
18 years ago
Joshua Colp 3dcf938f73 Update codec information as well as address when doing hold reinvites.
18 years ago
Joshua Colp 2baeb29ae4 Don't keep trying to native bridge if either of the channels are involved in a masquerade operation to be done.
18 years ago
Tilghman Lesher 9ae23cba31 Log exactly why we can't open the database, if we fail (closes issue #10887)
18 years ago
Joshua Colp 35ed1f7148 Update the remembered RTP peer information when putting an endpoint on hold or taking it off hold so that the RTP stack does not initiate a needless reinvite.
18 years ago
Russell Bryant 2c757f0747 Fix a copy/paste error in the description of UpdateConfig that was pointed
18 years ago
Tilghman Lesher 1e9edf1338 When an RFC 2833 event is sent that we don't recognize, ignore it, don't queue a NULL digit (closes issue #10877)
18 years ago
Dwayne M. Hubbard bae4135759 moved get_base_channel() code from action_redirect to ast_channel_masquerade() for issue 7706 and BE-160
18 years ago
Russell Bryant 5fdc354155 Fulfull a feature request from Qwell on the "core show locks" output. It will
18 years ago
Tilghman Lesher b1f26cfcdf Correct pronunciations of numbers for .nl (Closes issue #10837)
18 years ago
Tilghman Lesher 253a34b756 Avoid a deadlock with ALL of the locks in the masquerade function, not just the
18 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
18 years ago
Tilghman Lesher 20e50a731b jmls pointed out that unsetting the group and setting the group to the blank string aren't quite the same.
18 years ago
Tilghman Lesher 8c95942b7f Making change to group splitting, as discussed on the -dev list. The main
18 years ago
Russell Bryant d6b8fb4dc0 gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
18 years ago
Russell Bryant 578c1d0c8a When daemonizing, don't change working directory to "/". It makes it not be
18 years ago
Russell Bryant df5599d598 Fix up another potential race condition. Do the loop decrementing use count
18 years ago
Doug Bailey 8ac8d79a5d Corrected patch applied in revision r82887.
18 years ago
Doug Bailey 33a1011c51 Fixed a bug where http manager sessions prevented the eventq from being cleaned out because http manager sessions do not have a valid file descriptor.
18 years ago
Russell Bryant 4668601f9c Fix a memory leak that can occur on systems under higher load. The issue is
18 years ago
Russell Bryant 82a6309168 Put a memset in ast_localtime() instead of a couple places in app_voicemail
18 years ago
Joshua Colp 5bf3facef0 (closes issue #10734)
18 years ago
Steve Murphy 3dd879bb13 closes issue #10668; thanks to arkadia for his patch; had to leave out the bit about ending the previous cdr in the fork; it would destroy current implementations.
18 years ago
Russell Bryant 8138003de7 resolve a warning when not building under dev mode
18 years ago
Russell Bryant c8dd4e7430 Only compile in tracking astobj2 statistics if dev-mode is enabled. Also, when
18 years ago
Tilghman Lesher 4f1183bd27 Oops, wrong location for FreeBSD zone files
18 years ago
Tilghman Lesher e28d1357de Working on issue #10531 exposed a rather nasty 64-bit issue on ast_mktime, so we
18 years ago
Russell Bryant ef740deceb Clean up the output of "asterisk -h". This tweaks the wording and wraps lines
18 years ago
Steve Murphy e84f98ea4f this change should fix issue # 10659 -- what I worry about is how many other bug reports it may generate. Hopefully, we can please the/a majority. Hopefully. We shall see. Calls not marked ANSWERED and with only one channel name will not be posted. This should eliminate the double CDR's.
18 years ago
Russell Bryant b8261abd0b backport astobj2 race condition fix. This function is the exact same as trunk
18 years ago
Russell Bryant 827ca97872 Fix a small memory leak. ast_unregister_atexit() did not free the entry it removed.
18 years ago
Russell Bryant aa3b7e22f5 Fix an issue that can occur when you do an attended transfer to parking. If
18 years ago
Joshua Colp 0f82a9bbf1 (closes issue #10650)
18 years ago
Russell Bryant c95389856a Remove the typedefs on ao2_container and ao2_iterator. This is simply because
18 years ago
Joshua Colp 63669c4496 (closes issue #10476)
18 years ago
Joshua Colp 7e7eef085c (closes issue #10610)
18 years ago
Mark Michelson e0b90d3b06 Making match_by_addr into ao2_match_by_addr and making it available
18 years ago
Steve Murphy 07f7547e84 via issue 10599, where 'CDR already initialized' messages are being generated. Since all channels will have an init'd CDR attached at creation time, this message is now particularly useless. Removed.
18 years ago
Joshua Colp d080d7bfc4 (closes issue #10603)
18 years ago
Russell Bryant 8399112981 If chan_h323 is not being built, don't use g++ to do the final link of Asterisk.
18 years ago
Joshua Colp 968be2def2 (closes issue #10562)
18 years ago
Russell Bryant 1959929a2a Improve the debouncing logic in the DTMF detector to fix some reliability
18 years ago
Steve Murphy d96548ab3c From a complaint by jmls, I realize that the message in cdr_disposition is unnecessary. To get failure disposition, just return -1; no use having more than one case do that.
18 years ago
Tilghman Lesher 02d6a884bb Make the deprecation warning inline with the code, instead of only in documentation (closes issue #10549)
18 years ago
Russell Bryant b2c65cf51d This is a hack to maintain old behavior of chan_iax2. This ensures that if
18 years ago
Russell Bryant 851b4e474c When converting this code to use the list macros, I changed it so objects are
18 years ago
Russell Bryant 566371bd50 Merge changes from team/russell/iax_refcount.
18 years ago
Joshua Colp d13b192018 (closes issue #10526)
18 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.
18 years ago
Jason Parker f1cb3f70b7 Don't send a semicolon over the wire in sip notify messages.
18 years ago
Joshua Colp 6dbbfcdc25 (closes issue #10440)
18 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
18 years ago
Steve Murphy 0c21db3e79 Re bug behavior mentioned in #asterisk, made this tweak to code, to prevent hundreds of log messages from being generated
18 years ago
Steve Murphy 2544c0be73 This will help debug; from a question asked on #asterisk
18 years ago
Joshua Colp c3ba2c8fc6 Don't bother having the core pass through or emulate begin DTMF frames when in an ast_waitstream. It only cares about the end of DTMF.
18 years ago
Joshua Colp d76d2c5214 Add additional DTMF log messages to help when debugging issues.
18 years ago
Jason Parker e4f15628bb Fix an issue with using UpdateConfig (manager action) where escaped semicolons
18 years ago
Joshua Colp 88b982d7ff (closes issue #10355)
18 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
Steve Murphy a181678820 Merged revisions 77942 via svnmerge from
19 years ago
Joshua Colp 97885fed58 (closes issue #10351)
19 years ago
Joshua Colp 68c221f69a Add some fixes for building on Solaris.
19 years ago
Joshua Colp 8e5dfb3cf9 Whoops, I meant R_5 not R5.
19 years ago
Joshua Colp bc7150c380 Extend autoconf logic to determine which version of gethostbyname_r is on the system.
19 years ago
Jim Dixon cd1614fcd8 Made VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Steve
19 years ago
Jason Parker 25017ad181 Applications like SayAlpha() should not hang up the channel if you
19 years ago
Russell Bryant 0a2331cf26 file and I both committed changes for issue #10301. Remove a duplicated
19 years ago
Russell Bryant e533cabf1c (closes issue #10301)
19 years ago
Joshua Colp 33abae518a (closes issue #10301)
19 years ago
Joshua Colp 8fa7c1e9b0 (closes issue #10302)
19 years ago
Mark Michelson dbfdbbf4cc Fixes to get ast_backtrace working properly. The AST_DEVMODE macro was never defined so the majority of ast_backtrace never
19 years ago
Tilghman Lesher bf9ffe0d09 Missed one
19 years ago
Tilghman Lesher e9a1a42967 Oops, that builtin define should be all-lowercase.
19 years ago
Mark Michelson ccb0f924af chan->emulate_dtmf_duration is an unsigned int, not a signed int, so use %u instead of %d in the format string
19 years ago
Luigi Rizzo 19ec0f8fe1 set the sequence number in a frame for all frame types
19 years ago
Tilghman Lesher c7336cd3ff Found another place where we should be using the umask (thanks jcmoore)
19 years ago
Jason Parker 24f0e6a947 Eliminate a compiler warning with gcc 4.2 by constifying a char *
19 years ago
Russell Bryant 7f9bf7e970 Use the define that specifies the default length of an artificially created
19 years ago
Russell Bryant c83a0b2a3c cast arguments to ast_log so that it builds without warnings for me
19 years ago
Joshua Colp 396e723f17 Ensure that the pointer to STUN data does not go to unaccessible memory. (ASA-2007-017)
19 years ago
Russell Bryant 0a1a04137e (closes issue #10209)
19 years ago
Kevin P. Fleming d0cb9b141d Merged revisions 75304 via svnmerge from
19 years ago
Joshua Colp 7152afccd5 Whoops... didn't want this to be returned to 0 each iteration.
19 years ago
Joshua Colp 26acd893d3 When waiting for a digit ensure that a begin frame was received with it, not just an end frame. (issue #10084 reported by rushowr)
19 years ago
Jason Parker 7e0ab0fa62 Don't use #if to check if something is defined - use #ifdef instead.
19 years ago
Jason Parker d4a7eb584f Merged revisions 74373 via svnmerge from
19 years ago
Joshua Colp 49584ec434 Merged revisions 74264 via svnmerge from
19 years ago
Tilghman Lesher befa215f7b Doxygen formatting fixes; fixes errors while 'make progdocs'. (Closes issue #10104)
19 years ago
Joshua Colp a979d44c9c Give Agent channel names priority when doing CDR merging. (issue #10011 reported by krtorio)
19 years ago
Joshua Colp 0e80607e17 Merged revisions 73349 via svnmerge from
19 years ago
Steve Murphy ad36e954a7 Removing expr floating patch from 1.4; too much of a behavior change. If you want this fix, try trunk instead. bug 9508.
19 years ago
Steve Murphy adc13be87b support for floating point numbers added to ast_expr2 $\[...\] exprs. Fixes bug 9508, where the expr code fails with fp numbers. The MATH function returns fp numbers by default, so this fix is considered necessary.
19 years ago
Russell Bryant 76164559c9 Remove a bogus comment and add proper locking to the handler function for the
19 years ago
Joshua Colp a3716070d1 Added additional DTMF debug messages for when emulation occurs.
19 years ago
Luigi Rizzo f870ccffff Use !defined(HAVE_GETHOSTBYNAME_R) to check for absence
19 years ago
Joshua Colp fe753c0846 Minor change for older GCC versions.
19 years ago
Tilghman Lesher 6ffbaa32f3 Issue 10055 - Change memory allocation to use the heap for a command, since the output has the potential to overflow the stack (as it did here)
19 years ago
Luigi Rizzo 475e73e27d Add -Wdeclaration-after-statement to AST_DEVMODE flags to catch
19 years ago
Brett Bryant 7c5fef5e74 Merged revisions 72373 via svnmerge from
19 years ago
Brett Bryant a241f406da Merged revisions 72333 via svnmerge from
19 years ago
Brett Bryant b2cc514f08 Merged revisions 72259 via svnmerge from
19 years ago
Joshua Colp a61fb24363 Merged revisions 72256 via svnmerge from
19 years ago
Joshua Colp 60990f0c73 Make the ast_read_noaudio API call behave better under circumstances where DTMF emulation was happening and a generator was setup. (issue #10065 reported by stevefeinstein)
19 years ago
Russell Bryant d528f7791d Only output debug information related to RTCP timestamps when RTCP debug
19 years ago
Jason Parker 8a7cb1ec48 Don't dereference a pointer that may be NULL here.
19 years ago
Joshua Colp 879bad257f Fix it so 1.4 actually compiles on my box.
19 years ago
Russell Bryant b52d259c91 Merged revisions 71358 via svnmerge from
19 years ago
Tilghman Lesher 2e702c85eb Merged revisions 71288 via svnmerge from
19 years ago
Steve Murphy 6f6ffbb5c5 This patch is meant to fix 8433; where clid and src are lost via bridging.
19 years ago
Jason Parker e107da04b4 Merged revisions 71065 via svnmerge from
19 years ago
Brett Bryant a835f994ec Merged revisions 71064 via svnmerge from
19 years ago
Steve Murphy 533dbc02ff My conditions for merging amaflags info was naive; DOCUMENTATION is the default, although null is possible; theft of user-settable fields is not good. Just copy them, leave them alone.
19 years ago
Steve Murphy b13f79ad5b Merged revisions 70948 via svnmerge from
19 years ago
Joshua Colp 164b3bca49 Do not Packet2Packet bridge if packetization settings do not allow it. (issue #9117 reported by phsultan)
19 years ago
Steve Murphy e7c040283e Via complaints aired in asterisk-users, I submit these changes, which allow cdr updates to see macro context/exten, whether hung up or not
19 years ago
Joshua Colp 00a80bcb7d Put the speex packetization values back in but disable it when setting up the smoother.
19 years ago
Joshua Colp 9c76e929c9 Don't do packetization/smoother stuff with speex, it doesn't work.
19 years ago
Steve Murphy c05bb13de9 Merged revisions 70053 via svnmerge from
19 years ago
Joshua Colp 8b71bbd6ed Merged revisions 69992 via svnmerge from
19 years ago
Joshua Colp b6bd3b483e Merged revisions 69986 via svnmerge from
19 years ago
Joshua Colp c77b8b9467 Fix for building on PowerPC under Linux.
19 years ago
Joshua Colp 2cce26c0ce Remember the DNS lookup done when dnsmgr is called for the first time so that it does not needlessly spit out changed messages when the host really didn't change.
19 years ago
Jason Parker dbfc0c7daa Merged revisions 69469 via svnmerge from
19 years ago
Kevin P. Fleming ae82d97c6d use ast_localtime() in every place localtime_r() was being used
19 years ago
Russell Bryant 45ad7fcec8 Fix some problems with saying dates and times for the "tw" langauge
19 years ago