aboutsummaryrefslogtreecommitdiffstats
path: root/main
AgeCommit message (Collapse)AuthorFilesLines
2008-03-04Make it so you don't have to cast away const in a couple placesrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04remove unnecessary castsrussell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105593 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 - Add curly braces around the while looprussell1-6/+10
- Properly break out of the loop on error when an included context is not found git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105590 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04Use ast_copy_string() instead of strncpy(), and use sizeof() instead ofrussell1-1/+4
a magic number git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105589 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105565 via svnmerge from russell1-1/+3
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105565 | russell | 2008-03-03 10:01:50 -0600 (Mon, 03 Mar 2008) | 3 lines Update the copyright information for autoservice. Most of the code in this file now is stuff that I have written recently ... ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105566 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-033) In addition to merging the changes below, change trunk back to a regularrussell3-26/+43
LIST instead of an RWLIST. The way this list works makes it such that a RWLIST provides no additional benefit. Also, a mutex is needed for use with the thread condition. Merged revisions 105563 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105563 | russell | 2008-03-03 09:50:43 -0600 (Mon, 03 Mar 2008) | 24 lines Merge in some changes from team/russell/autoservice-nochans-1.4 These changes fix up some dubious code that I came across while auditing what happens in the autoservice thread when there are no channels currently in autoservice. 1) Change it so that autoservice thread doesn't keep looping around calling ast_waitfor_n() on 0 channels twice a second. Instead, use a thread condition so that the thread properly goes to sleep and does not wake up until a channel is put into autoservice. This actually fixes an interesting bug, as well. If the autoservice thread is already running (almost always is the case), then when the thread goes from having 0 channels to have 1 channel to autoservice, that channel would have to wait for up to 1/2 of a second to have the first frame read from it. 2) Fix up the code in ast_waitfor_nandfds() for when it gets called with no channels and no fds to poll() on, such as was the case with the previous code for the autoservice thread. In this case, the code would call alloca(0), and pass the result as the first argument to poll(). In this case, the 2nd argument to poll() specified that there were no fds, so this invalid pointer shouldn't actually get dereferenced, but, this code makes it explicit and ensures the pointers are NULL unless we have valid data to put there. (related to issue #12116) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105564 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-03Merged revisions 105560 via svnmerge from file1-1/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105560 | file | 2008-03-03 11:28:59 -0400 (Mon, 03 Mar 2008) | 7 lines It is possible for no audio to pass between the current digit and next digit so expand logic that clears emulation to AST_FRAME_NULL. (closes issue #11911) Reported by: edgreenberg Patches: v1-11911.patch uploaded by dimas (license 88) Tested by: tbsky ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105561 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Add support for 16KHz signed linear.file1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105509 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-01Asterisk, when parking can drop rights a caller when a parking timeout ↵twilson3-6/+62
occurs. Also, when doing built-in attended transfers, sometimes incorrectly passes rights from the transferrer to the transferee. This patch tries to fixes the parking issue and lays some groundwork for later fixing the transfer issue. (closes issue #11520) Reported by: pliew Tested by: otherwiseguy git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105477 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-29Merged revisions 105409 via svnmerge from russell1-0/+18
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105409 | russell | 2008-02-29 17:34:32 -0600 (Fri, 29 Feb 2008) | 23 lines Fix a major bug in autoservice. There was a race condition in the handling of the list of channels in autoservice. The problem was that it was possible for a channel to get removed from autoservice and destroyed, while the autoservice thread was still messing with the channel. This led to memory corruption, and caused crashes. This explains multiple backtraces I have seen that have references to autoservice, but do to the nature of the issue (memory corruption), could cause crashes in a number of areas. (fixes the crash in BE-386) (closes issue #11694) (closes issue #11940) The following issues could be related. If you are the reporter of one of these, please update to include this fix and try again. (potentially fixes issue #11189) (potentially fixes issue #12107) (potentially fixes issue #11573) (potentially fixes issue #12008) (potentially fixes issue #11189) (potentially fixes issue #11993) (potentially fixes issue #11791) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105410 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 105116 via svnmerge from russell1-5/+9
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105116 | russell | 2008-02-28 16:23:05 -0600 (Thu, 28 Feb 2008) | 8 lines Fix a bug in the lock tracking code that was discovered by mmichelson. The issue is that if the lock history array was full, then the functions to mark a lock as acquired or not would adjust the stats for whatever lock is at the end of the array, which may not be itself. So, do a sanity check to make sure that we're updating lock info for the proper lock. (This explains the bizarre stats on lock #63 in BE-396, thanks Mark!) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105144 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 104841 via svnmerge from mmichelson1-5/+29
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104841 | mmichelson | 2008-02-27 15:49:20 -0600 (Wed, 27 Feb 2008) | 17 lines Two fixes: 1. Make the list of ast_dial_channels a lockable list. This is because in some cases, the ast_dial may exist in multiple threads due to asynchronous execution of its application, and I found some cases where race conditions could exist. 2. Check in ast_dial_join to be sure that the channel still exists before attempting to lock it, since it could have gotten hung up but the is_running_app flag on the ast_dial_channel may not have been cleared yet. (closes issue #12038) Reported by: jvandal Patches: 12038v2.patch uploaded by putnopvut (license 60) Tested by: jvandal ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105060 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 105005 via svnmerge from qwell2-8/+4
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r105005 | qwell | 2008-02-28 13:20:10 -0600 (Thu, 28 Feb 2008) | 9 lines Make pbx_exec pass an empty string into applications, if we get NULL. This protects against possible segfaults in applications that may try to use data before checking length (ast_strdupa'ing it, for example) (closes issue #12100) Reported by: foxfire Patches: 12100-nullappargs.diff uploaded by qwell (license 4) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105006 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-28Merged revisions 104868 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104868 | tilghman | 2008-02-27 18:05:06 -0600 (Wed, 27 Feb 2008) | 7 lines Compatibility fix for PPC64 (closes issue #12081) Reported by: jcollie Patches: asterisk-1.4.18-funcdesc.patch uploaded by jcollie (license 412) Tested by: jcollie, Corydon76 ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104869 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104783 via svnmerge from mmichelson1-2/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104783 | mmichelson | 2008-02-27 14:36:26 -0600 (Wed, 27 Feb 2008) | 4 lines Bump a couple of more buffers up by 2 so that annoying warnings aren't generated like crazy on every fileexists_core call. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104784 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104704 via svnmerge from tilghman1-1/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104704 | tilghman | 2008-02-27 12:15:10 -0600 (Wed, 27 Feb 2008) | 2 lines Ensure the session ID can't be 0. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104705 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104665 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104665 | file | 2008-02-27 13:41:40 -0400 (Wed, 27 Feb 2008) | 2 lines Bump up the buffer by 2. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104687 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104598 via svnmerge from qwell1-7/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104598 | qwell | 2008-02-27 11:26:55 -0600 (Wed, 27 Feb 2008) | 8 lines Inherit language from the transfering channel on a blind transfer. (closes issue #11682) Reported by: caio1982 Patches: local_atxfer_lang3-1.4.diff uploaded by caio1982 (license 22) Tested by: caio1982, victoryure ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104617 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104596 via svnmerge from file1-6/+6
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104596 | file | 2008-02-27 13:07:33 -0400 (Wed, 27 Feb 2008) | 4 lines Use the lock (which already existed, it just wasn't used) on the updaters list to protect the contents instead of the overall module list lock. (closes issue #12080) Reported by: ChaseVenters ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104597 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Merged revisions 104593 via svnmerge from kpfleming1-14/+22
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104593 | kpfleming | 2008-02-27 10:53:06 -0600 (Wed, 27 Feb 2008) | 8 lines fallback to standard English prompts properly when using new prompt directory layout (closes issue #11831) Reported by: IgorG Patches: fallbacken.v1.diff uploaded by IgorG (license 20) (modified by me to improve code and conform rest of function to coding guidelines) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104594 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Fix T38 passthrough regression introduced by state changes.file1-2/+4
(closes issue #12078) Reported by: dimas Patches: v1-12078.patch uploaded by dimas (license 88) (closes issue #12074) Reported by: Ivan git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104533 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26I swear I compiled this ... *cough*russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104270 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26Rename version.h to ast_version.h. Next, I will be re-adding version.h as anrussell2-2/+2
automatically generated file like it used to be. This still needs to be there for modules that have to check it to compile against multiple asterisk versions. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104244 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26Add an 'e' option to ResetCDR which re-enables a CDR that has been disabled.file2-0/+8
(closes issue #11170) Reported by: kratzers Patches: ResetCDR.1.diff uploaded by kratzers (license 307) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104215 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-26Remove more hardcoded pipe symbols and replace with commas.mmichelson1-2/+2
(closes issue #12072) Reported by: SimonSharman Patches: features.patch uploaded by SimonSharman (license 410) Tested by: SimonSharman git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104127 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25Merged revisions 104102 via svnmerge from russell1-1/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104102 | russell | 2008-02-25 17:19:05 -0600 (Mon, 25 Feb 2008) | 7 lines Improve the lock tracking code a bit so that a bunch of old locks that threads failed to lock don't sit around in the history. When a lock is first locked, this checks to see if the last lock in the list was one that was failed to be locked. If it is, then that was a lock that we're no longer sitting in a trylock loop trying to lock, so just remove it. (inspired by issue #11712) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104103 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-25Merged revisions 104092 via svnmerge from qwell1-1/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104092 | qwell | 2008-02-25 14:49:42 -0600 (Mon, 25 Feb 2008) | 11 lines Allow the use of #include and #exec in situations where the max include depth was only 1. Specifically, this fixes using #include and #exec in extconfig.conf. This was basically caused because the config file itself raises the include level to 1. I opted not to raise the include limit, because recursion here could cause very bizarre behavior. Pointed out, and tested by jmls (closes issue #12064) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104093 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-22Move Originate to a separate privilege and require the additional System ↵tilghman1-2/+18
privilege to call out to a subshell. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104039 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-21Merged revisions 104015 via svnmerge from kpfleming1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r104015 | kpfleming | 2008-02-21 08:33:51 -0600 (Thu, 21 Feb 2008) | 2 lines reduce the likelihood that HTTP Manager session ids will consist of primarily '1' bits ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@104016 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20Largely refactor DSP tone detection routines.qwell1-215/+384
Separate fax detection from digit detected. Added CED (called) tone detection for fax (previously, only CNG (calling) was supported). Separate DTMF/MF code paths where appropriate. Allow detection of arbitary tones. (closes issue #11796) Reported by: dimas Patches: v6-dsp-faxtones.patch uploaded by dimas (license 88) Tested by: dimas, IgorG, Cache git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103903 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20Merged revisions 103845 via svnmerge from tilghman1-0/+2
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103845 | tilghman | 2008-02-20 11:53:00 -0600 (Wed, 20 Feb 2008) | 7 lines Compat fix for Solaris (closes issue #12022) Reported by: asgaroth Patches: 20080219__bug12022.diff.txt uploaded by Corydon76 (license 14) Tested by: asgaroth ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103846 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20*mumble*file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103842 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20file not found.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103840 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-20Minor test...file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103838 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19Make sure to mask out non-audio first as wellqwell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103832 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19Maybe we should set the value before we test it? Fixes an issue people have ↵qwell1-1/+2
been seeing (unreported?) with file playback not working. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103831 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19Add a log message that appears when you try to unload a module that isn't ↵file1-0/+1
loaded. (closes issue #12033) Reported by: jamesgolovich Patches: asterisk-loader.diff.txt uploaded by jamesgolovich (license 176) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103828 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19Only output a log message saying the format does not exist if it actually ↵file1-4/+7
does not exist, not if the file itself could not be opened. (closes issue #11828) Reported by: IgorG Patches: readfile.v1.diff uploaded by IgorG (license 20) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103827 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-19Change verbosity into debug for Hebrew (and various whitespace fixes)tilghman1-381/+382
(Closes issue #12011) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103805 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Merged revisions 103801 via svnmerge from file1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103801 | file | 2008-02-18 19:56:48 -0400 (Mon, 18 Feb 2008) | 10 lines Ensure that emulated DTMFs do not get interrupted by another begin frame. (closes issue #11740) Reported by: gserra Patches: v1-11740.patch uploaded by dimas (license 88) (closes issue #11955) Reported by: tsearle (closes issue #10530) Reported by: xmarksthespot ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103802 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Add a non-invasive API for application level manipulation of T38 on a ↵file2-11/+35
channel. This uses control frames (so they can even pass across IAX2) to negotiate T38 and provided a way of getting the current status of T38 using queryoption. This should by no means cause any issues and if it does I will take responsibility for it. (closes issue #11873) Reported by: dimas Patches: v4-t38-api.patch uploaded by dimas (license 88) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103799 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Add some missing control frames.file1-0/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103798 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Merged revisions 103786 via svnmerge from mmichelson1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103786 | mmichelson | 2008-02-18 14:52:09 -0600 (Mon, 18 Feb 2008) | 10 lines There was an invalid assumption when calculating the duration of a file that the filestream in question was created properly. Unfortunately this led to a segfault in the situation where an unknown format was specified in voicemail.conf and a voicemail was recorded. Now, we first check to be sure that the stream was written correctly or else assume a zero duration. (closes issue #12021) Reported by: jakep Tested by: putnopvut ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103787 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18make the output of 'core show settings' a bit nicer.mvanbaak1-6/+6
(closes issue #12020) Reported by: seanbright Patches: asterisk.c.patch uploaded by seanbright (license 71) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103783 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Merged revisions 103780 via svnmerge from tilghman1-0/+8
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103780 | tilghman | 2008-02-18 11:31:52 -0600 (Mon, 18 Feb 2008) | 9 lines When a SIP channel is being auto-destroyed, it's possible for it to still be in bridge code. When that happens, we crash. Delay the RTP destruction until the bridge is ended. (closes issue #11960) Reported by: norman Patches: 20080215__bug11960__2.diff.txt uploaded by Corydon76 (license 14) Tested by: norman ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103781 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Make sure we can set up calls without audio (text+video).oej1-6/+19
And ... it works! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103772 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Add an API call (ast_async_parseable_goto) which parses a goto string and ↵file1-2/+16
does an async goto instead of an explicit goto. (closes issue #11753) Reported by: johan git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103765 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-18Context tracing for channelstilghman3-1/+155
(closes issue #11268) Reported by: moy Patches: chantrace-datastored-encapsulated-rev94934.patch uploaded by moy (license 222) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103754 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15Add proper "false" case behavior to GotoIfTimemmichelson1-10/+23
(closes issue #11719) Reported by: kshumard Patches: gotoiftime.twobranches.patch uploaded by kshumard (license 92) Tested by: kshumard git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103738 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-15Merged revisions 103728 via svnmerge from russell1-2/+10
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r103728 | russell | 2008-02-15 13:50:11 -0600 (Fri, 15 Feb 2008) | 4 lines In the case that you try to directly reload a module has returned AST_MODULE_LOAD_DECLINE, log a message indicating that the module is not fully initialized and must be initialized using "module load". ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103729 f38db490-d61c-443f-a65b-d21fe96a405b