aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_zap.c
AgeCommit message (Collapse)AuthorFilesLines
2008-06-12Adds DAHDI support alongside Zaptel. DAHDI usage favored, but all Zap stuff ↵jpeeler1-512/+0
should continue working. Release announcement to follow. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@122314 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-15Commit a fix for some memory access errors pointed out by the valgrind2.txtrussell1-17/+18
output on issue #11698. The issue here is that it is possible for an instance of a translator to get destroyed while the frame allocated as a part of the translator is still being processed. Specifically, this is possible anywhere between a call to ast_read() and ast_frame_free(), which is _a lot_ of places in the code. The reason this happens is that the channel might get masqueraded during this time. During a masquerade, existing translation paths get destroyed. So, this patch fixes the issue in an API and ABI compatible way. (This one is for you, paravoid!) It changes an int in ast_frame to be used as flag bits. The 1 bit is still used to indicate that the frame contains timing information. Also, a second flag has been added to indicate that the frame came from a translator. When a frame with this flag gets released and has this flag, a function is called in translate.c to let it know that this frame is doing being processed. At this point, the flag gets cleared. Also, if the translator was requested to be destroyed while its internal frame still had this flag set, its destruction has been deffered until it finds out that the frame is no longer being processed. Admittedly, this feels like a hack. But, it does fix the issue, and I was not able to think of a better solution ... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98943 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09report the same message whether Zaptel does not have transcoder support ↵kpfleming1-2/+4
loaded or no transcoders were found git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@97491 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-12emit a warning message when we drop a G.729B CNG frame destined for the ↵kpfleming1-0/+5
transcoder git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@92656 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-07even though Asterisk explicitly requests that endpoints using G.729 do *not* ↵kpfleming1-0/+9
use Annex B (silence detection and comfort noise generation) some do anyway; the transcoder card interface does not currently work properly with CNG frames, so trim off the CNG before sending the data git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@91870 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06Correctly set the total number of channels from a zaptel transcoder board.qwell1-2/+1
SPD-49, patch by Matthew Nicholson. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-18Execute the RELEASE operation on transcoder channels in the destroy callback.russell1-0/+5
(patch from jsloan) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@86296 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-31add missing "transcoder show" (and deprecated "show transcoder") CLI ↵kpfleming1-0/+70
commands that were in 1.2 but never added to 1.4 git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81405 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-27Merged revisions 62173 via svnmerge from qwell1-1/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r62173 | qwell | 2007-04-27 11:16:16 -0500 (Fri, 27 Apr 2007) | 3 lines This transcoder message needn't be a NOTICE. I've seen it cause confusion more than a few times. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62174 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06Merged revisions 60398 via svnmerge from kpfleming1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r60398 | kpfleming | 2007-04-06 09:41:37 -0500 (Fri, 06 Apr 2007) | 2 lines remove undocumented 'cardsmode' parameter and stop searching for transcoders during reload() ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60399 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-24update to match zaptel 1.4 API change that was committed a few minutes agokpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@56548 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05Make codec_zap and chan_zap also depend on zaptel.qwell1-0/+1
This fixes an issue (8727) with zaptel being in a different directory, using --with-zaptel. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49705 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01check specifically for VLDTMF and transcoding support in the system's Zaptel ↵kpfleming1-1/+1
installation, and make only the modules that need those features dependent on them (this will allow building the other Zaptel-using parts of Asterisk against older versions of Zaptel or those on other platforms that haven't caught up yet to the Linux version) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49102 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Fix transcoding performance issuemarkster1-17/+38
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41318 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-22/+16
- 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
2006-07-05prepare Asterisk for new zaptel.h/tonezone.h installation locationskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37027 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24The Eurostar Commit! (it's amazing how much work you can get done on a 150 ↵kpfleming1-8/+8
minute train ride from Paris to London <G>) support the new location for zaptel.h and tonezone.h use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries combine the common rules into a top-level Makefile.rules file remove all (now) unnecessary stuff from subdir Makefiles change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory) alphabetize --with-<foo> options in configure script enhance Net-SNMP support in configure script to provide a --with-netsnmp option fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated add 'optional package' usage to modules now that menuselect can output it allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23add support for Zaptel transcoderskpfleming1-0/+406
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35745 f38db490-d61c-443f-a65b-d21fe96a405b