aboutsummaryrefslogtreecommitdiffstats
path: root/translate.c
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-706/+0
- 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-08-16Fix formatting of "show codecs" CLI command.qwell1-9/+25
Make "show translations" CLI command have dynamic widths. Also display g726 codec in both commands. There are probably other places where "11" is hardcoded... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39965 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-10Whitespace changes onlytilghman1-26/+27
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37345 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24The Eurostar Commit! (it's amazing how much work you can get done on a 150 ↵kpfleming1-1/+1
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-13use a compiler builtin (which uses processor instructions) for this operationkpfleming1-6/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-07simplify autoconfig include mechanism (make tholo happy he can use lint ↵kpfleming1-5/+5
again :-) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@32846 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-04Doxygen formatting fixesoej1-8/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31977 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-31Add support for using a jitterbuffer for RTP on bridged calls. This includesrussell1-0/+21
a new implementation of a fixed size jitterbuffer, as well as support for the existing adaptive jitterbuffer implementation. (issue #3854, Slav Klenov) Thank you very much to Slav Klenov of Securax and all of the people involved in the testing of this feature for all of your hard work! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@31052 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-18correct array index calculation (thanks mtaht3!)kpfleming1-0/+5
update header file comments to reflect new usage of structure field git-svn-id: http://svn.digium.com/svn/asterisk/trunk@21207 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17actually return the number steps... not the number of steps minus 1kpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20964 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-17add an API so that the number of steps required for a translation path can ↵kpfleming1-0/+10
be acquired don't transcode via SLINEAR when the option is enabled but there is a direct path from the source to the destination git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20962 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-14This rather large commit changes the way modules are loaded. rizzo1-13/+11
As partly documented in loader.c and include/asterisk/module.h, modules are now expected to return all of their methods and flags into a structure 'mod_data', and are normally loaded with RTLD_NOW | RTLD_LOCAL, so symbols are resolved immediately and conflicts should be less likely. Only in a small number of cases (res_*, typically) modules are loaded RTLD_GLOBAL, so they can export symbols. The core of the change is only the two files loader.c and include/asterisk/module.h, all the rest is simply adaptation of the existing modules to the new API, a rather mechanical (but believe me, time and finger-consuming!) process whose detail you can figure out by svn diff'ing any single module. Expect some minor compilation issue after this change, please report it on mantis http://bugs.digium.com/view.php?id=6968 so we collect all the feedback in one place. I am just sorry that this change missed SVN version number 20000! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@20003 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-11use proper typekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@19222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-04-08merge rizzo's codec module rework (very similar to the format module rework)kpfleming1-221/+369
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@18541 f38db490-d61c-443f-a65b-d21fe96a405b
2006-03-29conversion from malloc to ast_mallocrussell1-4/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16006 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-25Bug fix for translation updates. Thanks Josh!mattf1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11119 f38db490-d61c-443f-a65b-d21fe96a405b
2006-02-25Merged revisions 11062,11089 via svnmerge from kpfleming1-44/+66
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r11062 | kpfleming | 2006-02-24 22:59:50 -0600 (Fri, 24 Feb 2006) | 3 lines reformat code to fit guidelines remember which translation paths are multi-step paths ........ r11089 | kpfleming | 2006-02-24 23:08:46 -0600 (Fri, 24 Feb 2006) | 2 lines factor the number of translation steps required into translation path decisions, so that equal cost paths that require fewer translations are preferred ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@11090 f38db490-d61c-443f-a65b-d21fe96a405b
2006-01-11lock list of translators *before* recalculating translation matrix.russell1-25/+21
Also, store translators using linked list macros. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7967 f38db490-d61c-443f-a65b-d21fe96a405b
2005-12-30update doxygen docs to specify authorsrussell1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7682 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-14finish merging doxygen updates from issue #5605russell1-14/+19
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7096 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-14update MANY more files with proper copyright/license info (thanks Ian!)kpfleming1-4/+15
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6596 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25ensure translators don't generate old timestamps when silent periods end ↵kpfleming1-4/+13
(bug #4707 with formatting fixes) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6203 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-25get rid of potential memory leakrussell1-32/+35
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6199 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-15add a library of timeval manipulation functions, and change a large number ↵kpfleming1-50/+18
of usses to use the new functions (bug #4504) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6146 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-05print out which format was bigger than MAX_FORMATrussell1-3/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6019 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06more file version tagskpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5866 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-06remove experimental module version tagskpfleming1-0/+4
add per-file revision tags and 'show version files' CLI command git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5864 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-29fix *BSD breakage from include-order changes (bug #4067)kpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5534 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-22phase 1 of header include cleanup (bug #4067)kpfleming1-6/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5498 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-21use double-quotes instead of angle-brackets for non-system include files ↵kpfleming1-9/+9
(bug #4058) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5490 f38db490-d61c-443f-a65b-d21fe96a405b
2005-04-04optimize codec selection and format changing codekpfleming1-17/+18
force all transcode paths to use AST_FORMAT_SLINEAR as the frames pass through the bridge (can be disabled using the 'transcode_via_sln' setting in th 'options' setting in asteris.conf) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5376 f38db490-d61c-443f-a65b-d21fe96a405b
2005-03-04Rework channel structure to eliminate "pvt" portion of channel (bug #3573)markster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5137 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-06Minor translation performance improvement (bug #2987, not that patch though)markster1-23/+30
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4393 f38db490-d61c-443f-a65b-d21fe96a405b
2004-08-01Rename newp to newpvt (bug #2190), change hold music.markster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3560 f38db490-d61c-443f-a65b-d21fe96a405b
2004-07-14Remaining rgagnon source audit improvements (bug #2011)markster1-1/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3430 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Misc formatting cleanupscitats1-14/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3279 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Remove pthread.h from source. We should be using asterisk/lock.h everywhere ↵citats1-1/+0
instead (except in asterisk/lock.h). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3276 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-09Merge FreeBSD locking fixes (bug #1411)markster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-17Allow translation table to be recalculated, including with higher resolutionmarkster1-51/+84
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2996 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-21Log when we unload a translator (bug 1460)citats1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2730 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-20Don't dereference consumed frame delivery.markster1-1/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2719 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-05Don't translate time for packets with no deliverymarkster1-44/+51
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2631 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-05Fix timestamps for codec translations with different sized framesmarkster1-5/+55
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2629 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-20Fix ast_translator_free_path (bug 1254)citats1-4/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2494 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-19It helps to use the local copy yo ucreatedmarkster1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2477 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-19First pass at populating delivery times through translation. Not sure how ↵markster1-1/+7
this will affect translations with different packet sizes, but it *ought* to resolve itself in the end. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2474 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-01Remove comment about EXPERIMENTAL_TRANSLATION since its not usedcitats1-7/+0
anywhere anymore git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2279 f38db490-d61c-443f-a65b-d21fe96a405b