aboutsummaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2007-08-06Add additional DTMF log messages to help when debugging issues.file1-6/+16
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78275 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06Fix an issue with using UpdateConfig (manager action) where escaped semicolonsqwell1-3/+2
in a config would be converted to just semicolons (\; to ;) Issue 9938 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78180 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-06(closes issue #10355)file1-1/+1
Reported by: wdecarne Now that we pass through RTP timestamp information we need to make the allowed timestamp skew considerably less. There are situations where a source may change and due to the timestamp difference the receiver will experience an audio gap since we did not indicate by setting the marker bit that the source changed. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78172 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Changed the behavior of sip's realtime_peer function to match the ↵mmichelson1-0/+8
corresponding way of matching for non-realtime peers. Now matches are made on both the IP address and port number, or if the insecure setting is set to "port" then just match on the IP address. In order to accomplish this, I also added a new API call, ast_category_root, which returns the first variable of an ast_category struct git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78103 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-03Add some improvements to lock debugging. These changes take effectrussell2-7/+249
with DEBUG_THREADS enabled and provide the following: * This will keep track of which locks are held by which thread as well as which lock a thread is waiting for in a thread-local data structure. A reference to this structure is available on the stack in the dummy_start() function, which is the common entry point for all threads. This information can be easily retrieved using gdb if you switch to the dummy_start() stack frame of any thread and print the contents of the lock_info variable. * All of the thread-local structures for keeping track of this lock information are also stored in a list so that the information can be dumped to the CLI using the "core show locks" CLI command. This introduces a little bit of a performance hit as it requires additional underlying locking operations inside of every lock/unlock on an ast_mutex. However, the benefits of having this information available at the CLI is huge, especially considering this is only done in DEBUG_THREADS mode. It means that in most cases where we debug deadlocks, we no longer have to request access to the machine to analyze the contents of ast_mutex_t structures. We can now just ask them to get the output of "core show locks", which gives us all of the information we needed in most cases. I also had to make some additional changes to astmm.c to make this work when both MALLOC_DEBUG and DEBUG_THREADS are enabled. I disabled tracking of one of the locks in astmm.c because it gets used inside the replacement memory allocation routines, and the lock tracking code allocates memory. This caused infinite recursion. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78095 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-02Merged revisions 77942 via svnmerge from murf1-2/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r77942 | murf | 2007-08-02 11:56:37 -0600 (Thu, 02 Aug 2007) | 1 line This patch hopefully solves 10141; The user is running with it, and it doesn't appear to harm asterisk's operation, and may prevent a crash. I'll store it in 1.2, as we have shut down support on 1.2, but since I developed the patch before support finished, and it might affect 1.4 and trunk, I'm going ahead with it. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77945 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01(closes issue #10351)file1-1/+1
Reported by: ftarz Some platforms don't like it when you pass NULL to vsnprintf so pass "" instead. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77871 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Add some fixes for building on Solaris.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77869 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Whoops, I meant R_5 not R5.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77867 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-01Extend autoconf logic to determine which version of gethostbyname_r is on ↵file1-2/+2
the system. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77863 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Made VAST improvements in DTMF receiver in RADIO_RELAX mode (thanx Stevejdixon1-11/+17
W9SH), and oversight in logic in TONE_VERIFY/RELAX mode in chan_zap. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77845 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30Applications like SayAlpha() should not hang up the channel if youqwell1-15/+19
request an "unknown" character such as a comma. Instead, skip the character and move on. Issue 10083, initial patch by jsmith, modified by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77795 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30file and I both committed changes for issue #10301. Remove a duplicatedrussell1-1/+1
assignment to restore the original value of the previous channel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77785 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30(closes issue #10301)russell1-1/+3
Reported by: fnordian Patches: asterisk-1.4.9-channel.c.patch uploaded by fnordian (license 110) Additional changes by me Fix some problems in channel_find_locked() which can cause an infinite loop. The reference to the previous channel is set to NULL in some cases. These changes ensure that the reference to the previous channel gets restored before needing it again. I'm not convinced that the code that is setting it to NULL is really the right thing to do. However, I am making these changes to fix the obvious problem and just leaving an XXX comment that it needs a better explanation that what is there now. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77780 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-30(closes issue #10301)file1-0/+6
Reported by: fnordian Patches: asterisk-1.4.9-channel.c.patch uploaded by fnordian (license 110) Restore previous behavior where if we failed to lock the channel we wanted we would return to exactly the same point as if we had just reentered the function. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77771 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26(closes issue #10302)file1-3/+6
Reported by: litnialex If a DTMF end frame comes from a channel without a begin and it is going to a technology that only accepts end frames (aka INFO) then use the minimum DTMF duration if one is not in the frame already. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77460 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Fixes to get ast_backtrace working properly. The AST_DEVMODE macro was never ↵mmichelson1-0/+4
defined so the majority of ast_backtrace never attempted compilation. The makefile now defines AST_DEVMODE if configure was run with --enable-dev-mode. Also, changes were made to acccomodate 64 bit systems in ast_backtrace. Thanks to qwell, kpfleming, and Corydon76 for their roles in allowing me to get this committed git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77380 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Missed onetilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77350 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26Oops, that builtin define should be all-lowercase.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77348 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25chan->emulate_dtmf_duration is an unsigned int, not a signed int, so use %u ↵mmichelson1-1/+1
instead of %d in the format string git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77154 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-25set the sequence number in a frame for all frame typesrizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@77022 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-24Found another place where we should be using the umask (thanks jcmoore)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76891 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Eliminate a compiler warning with gcc 4.2 by constifying a char *qwell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76176 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-20Use the define that specifies the default length of an artificially createdrussell1-2/+2
DTMF digit in the ast_senddigit() function. The define is set to 100ms by default, which is the same thing that this function was using. But, using the define lets changes take effect in this case, as well as the others where it was already used. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76132 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17cast arguments to ast_log so that it builds without warnings for merussell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75447 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17Ensure that the pointer to STUN data does not go to unaccessible memory. ↵file1-2/+2
(ASA-2007-017) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75439 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-17(closes issue #10209)russell1-0/+2
Reported by: juggie Patches: 10209-trunk-2.patch uploaded by juggie Tested by: juggie, blitzrage In ast_pbx_run(), mark a channel as hung up after an application returned -1, or when it runs out of extensions to execute. This is so that code can detect that this channel has been hung up for things like making sure DeadAGI is used on actual dead channels, and is beneficial for other things, like making sure someone doesn't try to start spying on a channel that is about to go away. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75403 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Merged revisions 75304 via svnmerge from kpfleming1-0/+59
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r75304 | kpfleming | 2007-07-16 15:46:58 -0500 (Mon, 16 Jul 2007) | 3 lines provide proper copyright/license attribution for this structure that was copied from a BSD-licensed header file long, long ago... ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@75306 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12Whoops... didn't want this to be returned to 0 each iteration.file1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74922 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-12When waiting for a digit ensure that a begin frame was received with it, not ↵file1-2/+7
just an end frame. (issue #10084 reported by rushowr) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74888 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Don't use #if to check if something is defined - use #ifdef instead.qwell1-5/+5
Pointed out by kpfleming git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74388 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74373 via svnmerge from qwell1-0/+4
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74373 | qwell | 2007-07-10 13:37:23 -0500 (Tue, 10 Jul 2007) | 5 lines Use res_ndestroy on systems that have it. Otherwise, use res_nclose. This prevents a memleak on NetBSD - and possibly others. Issue 10133, patch by me, reported and tested by scw ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74374 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-10Merged revisions 74264 via svnmerge from file1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r74264 | file | 2007-07-10 11:48:00 -0300 (Tue, 10 Jul 2007) | 2 lines Ensure the group information category exists before trying to do a string comparison with it. (issue #10171 reported by mlegas) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74265 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Doxygen formatting fixes; fixes errors while 'make progdocs'. (Closes issue ↵tilghman1-71/+90
#10104) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73985 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-09Give Agent channel names priority when doing CDR merging. (issue #10011 ↵file1-1/+1
reported by krtorio) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73980 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-05Merged revisions 73349 via svnmerge from file1-8/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73349 | file | 2007-07-05 11:19:14 -0300 (Thu, 05 Jul 2007) | 2 lines Tweak spy locking. (issue #9951 reported by welles) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73355 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-03Removing expr floating patch from 1.4; too much of a behavior change. If you ↵murf6-544/+442
want this fix, try trunk instead. bug 9508. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73143 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02support for floating point numbers added to ast_expr2 $\[...\] exprs. Fixes ↵murf6-508/+596
bug 9508, where the expr code fails with fp numbers. The MATH function returns fp numbers by default, so this fix is considered necessary. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72933 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Remove a bogus comment and add proper locking to the handler function for therussell1-1/+2
CLI command to show information on manager actions. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72926 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-02Added additional DTMF debug messages for when emulation occurs.file1-2/+7
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72888 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Use !defined(HAVE_GETHOSTBYNAME_R) to check for absencerizzo1-1/+1
of the function. This was already done in trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72665 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Minor change for older GCC versions.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72599 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-29Issue 10055 - Change memory allocation to use the heap for a command, since ↵tilghman1-8/+17
the output has the potential to overflow the stack (as it did here) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72556 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-28Add -Wdeclaration-after-statement to AST_DEVMODE flags to catchrizzo1-2/+3
variable declarations in the middle of a block. Fix the few instances of the above spotted out by the compiler. All of this has been already done or is not applicable in trunk, so the merge of this change will be blocked. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72462 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72373 via svnmerge from bbryant1-0/+7
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72373 | bbryant | 2007-06-27 18:22:13 -0500 (Wed, 27 Jun 2007) | 3 lines Reinstating patch. This actually fixes the problem, however I was running a development branch without it and mistakenly thought it wasn't fixed. Fixes issue #10010, and #9654: 100% CPU usage caused by an asterisk console losing it's controlling terminal. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72383 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72333 via svnmerge from bbryant1-7/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72333 | bbryant | 2007-06-27 17:58:53 -0500 (Wed, 27 Jun 2007) | 2 lines Reverted changes for earlier revisions 72259 to 72261. Issue #9654, #10010 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72259 via svnmerge from bbryant1-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72259 | bbryant | 2007-06-27 15:43:53 -0500 (Wed, 27 Jun 2007) | 4 lines Fixes 100% load when controlling terminal disappears. Issue #9654, #10010 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72260 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Merged revisions 72256 via svnmerge from file1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r72256 | file | 2007-06-27 16:23:24 -0400 (Wed, 27 Jun 2007) | 2 lines I may possibly get shot for doing this... but... defer CDR processing until after the channel has been dealt with. This should eliminate all of the issues with channels going funky (SIP/PRI) when you are posting CDRs to a database that is either slow or unavailable and do not want to enable batching. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72257 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Make the ast_read_noaudio API call behave better under circumstances where ↵file1-29/+38
DTMF emulation was happening and a generator was setup. (issue #10065 reported by stevefeinstein) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72148 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-27Only output debug information related to RTCP timestamps when RTCP debugrussell1-1/+1
is turned on (issue #10066, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@72112 f38db490-d61c-443f-a65b-d21fe96a405b