aboutsummaryrefslogtreecommitdiffstats
path: root/main/file.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-22I thought I was going to be able to leave 1.4 alone, but that was not the case.russell1-5/+16
I ran into some problems with G.722 in 1.4, so I have merged in all of the fixes in this area that I have made in trunk/1.6.0, and things are happy again. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114550 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-10Only try to prefix language if we are not using an absolute path (suffix it ↵qwell1-6/+1
otherwise). en/var/lib/asterisk/sounds/blah.gsm is a very silly path. (closes issue #12379) Reported by: kuj Patches: 12379-absolutepath.diff uploaded by qwell (license 4) Tested by: kuj, qwell git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114035 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-17Backport revision 106439 from trunk. I didn't realize this was broken in ↵qwell1-41/+71
1.4 as well. Closes issue #12222. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@109057 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-05Add a control frame to indicate the source of media has changed. Depending ↵file1-0/+1
on the underlying technology it may need to change some things. (closes issue #12148) Reported by: jcomellas git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@106235 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Bump a couple of more buffers up by 2 so that annoying warnings aren't generatedmmichelson1-2/+2
like crazy on every fileexists_core call. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104783 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27Bump up the buffer by 2.file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@104665 f38db490-d61c-443f-a65b-d21fe96a405b
2008-02-27fallback to standard English prompts properly when using new prompt ↵kpfleming1-14/+22
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/branches/1.4@104593 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-31Fix a couple of places where ast_frfree() was not called on a frame that camerussell1-0/+1
from a translator. This showed itself by g729 decoders not getting released. Since the flag inside the translator frame never got unset by freeing the frame to indicate it was no longer in use, the translators never got destroyed, and thus the g729 licenses were not released. (closes issue #11892) Reported by: xrg Patches: 11892.diff uploaded by russell (license 2) Tested by: xrg, russell git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@101601 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-27When deleting a task from the scheduler, ignoring the return value couldtilghman1-6/+2
possibly cause memory to be accessed after it is freed, which causes all sorts of random memory corruption. Instead, if a deletion fails, wait a bit and try again (noting that another thread could change our taskid value). (closes issue #11386) Reported by: flujan Patches: 20080124__bug11386.diff.txt uploaded by Corydon76 (license 14) Tested by: Corydon76, flujan, stuarth` git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@100465 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29Use of "private" as a field name in a header file messes with C++ projectstilghman1-1/+1
Reported by: chewbacca Patch by: casper (Closes issue #11401) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90155 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-29Merge a change from team/russell/chan_refcount ...russell1-0/+5
This makes ast_stopstream() thread-safe. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@90142 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-21gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set ofrussell1-6/+6
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-05Fix an issue that can occur when you do an attended transfer to parking. Ifrussell1-29/+97
you complete the transfer before the announcement of the parking spot finishes, then the channel being parked will hear the remainder of the announcement. These changes make it so that will not happen anymore. Basically, res_features sets a flag on the channel is playing the announcement to so that the file streaming core knows that it needs to watch out for a channel masquerade, and if it occurs, to abort the announcement. (closes BE-182) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81599 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-10Don't bother having the core pass through or emulate begin DTMF frames when ↵file1-1/+15
in an ast_waitstream. It only cares about the end of DTMF. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@78955 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-22Merged revisions 71065 via svnmerge from qwell1-4/+3
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r71065 | qwell | 2007-06-22 09:52:18 -0500 (Fri, 22 Jun 2007) | 4 lines Fix a few silly usages of ast_playstream() - it only ever returns 0... Issue 10035 ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@71068 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06Properly handle cases where a stream can't be written to. (issue #9757 ↵file1-0/+2
reported by junky) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67924 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-06Stop the video stream when you stop playback of all streams for a calloej1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@63152 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-08Merged revisions 60660 via svnmerge from tilghman1-4/+9
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r60660 | tilghman | 2007-04-07 20:39:25 -0500 (Sat, 07 Apr 2007) | 2 lines Bug 9486 - memory leak when opening a filestream ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60661 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-02Return the correct digit that interrupted the stream. This fixes exiting therussell1-0/+1
Background application when using the m option. (issue #9176, mjagdis) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@57396 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-26Fix core show file formats CLI command.file1-2/+29
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@52335 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-16Display more useful output when streaming files.qwell1-3/+2
Include the channel name to which the file is being played. Issue 8828, patch by junky. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51146 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27since these variables all have static duration, none of them need ↵kpfleming1-1/+1
initializers (they default to zero anyway) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49006 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27move extern declaration for this option to a header file where it belongskpfleming1-1/+1
provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48998 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-15don't try to call fclose() if fopen() failedkpfleming1-3/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47701 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02Reverse change of "show" to "list" and make several other commands more ↵tilghman1-2/+2
consistent with "category verb arguments" git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47051 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06Merged revisions 44580 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44580 | file | 2006-10-06 12:52:14 -0400 (Fri, 06 Oct 2006) | 2 lines Even more frames to treat as though the remote side disappeared (issue #8097 reported by eldadran) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44581 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-05Merged revisions 44501 via svnmerge from file1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44501 | file | 2006-10-05 15:55:41 -0400 (Thu, 05 Oct 2006) | 2 lines Treat busy control frames as hangup in the file streaming core (issue #8097 reported by eldadran) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44502 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Don't warn on HOLD/UNHOLD control framespcadach1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43844 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Don't treat unknown control frames as voicepcadach1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43843 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-7/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-01You see nothing...file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41696 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-010 is indeed considered a valid file descriptor (issue #7861 reported by PCadach)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41694 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Ignore DTMF begin frames in the waitstream core so that we don't get ↵file1-1/+0
duplicate digits in our extension match git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41611 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla ↵file1-2/+5
Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41507 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-23Free the filename so we don't have a memory leak. (reported by PCadach in ↵file1-0/+1
#asterisk-bugs) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40953 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-0/+1161
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b