Skip to content
Snippets Groups Projects
  1. Aug 12, 2010
    • David Vossel's avatar
      Merged revisions 282047 via svnmerge from · bbb32fe3
      David Vossel authored
      https://origsvn.digium.com/svn/asterisk/branches/1.8
      
      ........
        r282047 | dvossel | 2010-08-12 15:15:41 -0500 (Thu, 12 Aug 2010) | 35 lines
        
        improved translation paths for wideband codecs
        
        The problem I'm addressing is that Asterisk's current
        method of building the least cost translation paths
        between codecs does not take into account sample rate.
        For instance, it was possible for siren14 (a 32khz codec),
        to contain the a translation path to siren7 (a 16khz
        audio codec) that goes through slin at 8khz.  In this
        case Asterisk takes a 32khz codec, down samples it to
        8khz and then up samples it to 16khz which is terrible
        regardless if it is computationally less expensive.  This
        patch now builds translation paths that give priority to
        maintaining the best possible sample rate before taking
        into consideration computational cost.  This patch also
        adds cli commands to expose what translation paths are
        actually being used.
        
        Changes:
        1. Translation paths will never contain a step that changes
        the sample rate unless absolutely necessary.
        2. When choosing the best codec to make two channels compatible.
        Shared codecs with the highest sample rate are given priority.
        3. A new cli command to show all translation paths available
        for a specific codec 'core show translation paths [codec name]'
        has been added.
        4. 'core show translation' which displays the translation
        matrix now includes the new higher bit audio codecs in the table.
        5. 'core show channel [channel name]'  now displays the
        translation paths if translation is used.
        
        (closes issue #16841)
        Reported by: dvossel
        
        Review: https://reviewboard.asterisk.org/r/842/
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@282048 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      bbb32fe3
  2. Jul 16, 2010
  3. Jun 03, 2010
  4. Dec 04, 2009
  5. Dec 01, 2009
  6. Nov 04, 2009
  7. Oct 21, 2009
  8. Jul 27, 2009
  9. Jul 25, 2009
  10. Mar 12, 2009
  11. Dec 13, 2008
  12. Dec 05, 2008
  13. Oct 14, 2008
  14. Oct 09, 2008
    • Steve Murphy's avatar
      (closes issue #13557) · e235a073
      Steve Murphy authored
      Reported by: nickpeirson
      Patches:
            pbx.c.patch uploaded by nickpeirson (license 579)
            replace_bzero+bcopy.patch uploaded by nickpeirson (license 579)
      Tested by: nickpeirson, murf
      
      1. replaced all refs to bzero and bcopy to memset and memmove instead.
      2. added a note to the CODING-GUIDELINES
      3. add two macros to asterisk.h to prevent bzero, bcopy from creeping
         back into the source
      4. removed bzero from configure, configure.ac, autoconfig.h.in
      
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e235a073
  15. Aug 06, 2008
  16. Jun 26, 2008
  17. May 22, 2008
    • Michiel van Baak's avatar
      - revert change to ast_queue_hangup and create ast_queue_hangup_with_cause · f1e9371d
      Michiel van Baak authored
      - make data member of the ast_frame struct a named union instead of a void
      
      Recently the ast_queue_hangup function got a new parameter, the hangupcause
      Feedback came in that this is no good and that instead a new function should be created.
      This I did.
      
      The hangupcause was stored in the seqno member of the ast_frame struct. This is not very
      elegant, and since there's already a data member that one should be used.
      Problem is, this member was a void *.
      Now it's a named union so it can hold a pointer, an uint32 and there's a padding in case someone
      wants to store another type in there in the future.
      
      This commit is so massive, because all ast_frame.data uses have to be
      altered to ast_frame.data.data
      
      Thanks russellb and kpfleming for the feedback.
      
      (closes issue #12674)
      Reported by: mvanbaak
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@117802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f1e9371d
  18. Mar 18, 2008
  19. Mar 05, 2008
  20. Mar 04, 2008
  21. Feb 11, 2008
  22. Jan 31, 2008
    • Russell Bryant's avatar
      Merged revisions 101601 via svnmerge from · 1ce78933
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r101601 | russell | 2008-01-31 17:10:06 -0600 (Thu, 31 Jan 2008) | 12 lines
      
      Fix a couple of places where ast_frfree() was not called on a frame that came
      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: https://origsvn.digium.com/svn/asterisk/trunk@101611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      1ce78933
  23. Jan 15, 2008
    • Russell Bryant's avatar
      Clean up something I did for ABI compatability in 1.4 · 25e1c74b
      Russell Bryant authored
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      25e1c74b
    • Russell Bryant's avatar
      Merged revisions 98943 via svnmerge from · 4fb04cb5
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r98943 | russell | 2008-01-15 17:26:52 -0600 (Tue, 15 Jan 2008) | 25 lines
      
      Commit a fix for some memory access errors pointed out by the valgrind2.txt
      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: https://origsvn.digium.com/svn/asterisk/trunk@98944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4fb04cb5
  24. Jan 14, 2008
  25. Jan 11, 2008
  26. Jan 10, 2008
  27. Jan 02, 2008
  28. Dec 27, 2007
  29. Dec 17, 2007
  30. Nov 21, 2007
  31. Nov 20, 2007
  32. Nov 19, 2007
Loading