Skip to content
Snippets Groups Projects
  1. Dec 22, 2017
  2. Apr 25, 2017
    • Sean Bright's avatar
      cleanup: Fix fread() and fwrite() error handling · f5b67871
      Sean Bright authored
      Cleaned up some of the incorrect uses of fread() and fwrite(), mostly in
      the format modules. Neither of these functions will ever return a value
      less than 0, which we were checking for in some cases.
      
      I've introduced a fair amount of duplication in the format modules, but
      I plan to change how format modules work internally in a subsequent
      patch set, so this is simply a stop-gap.
      
      Change-Id: I8ca1cd47c20b2c0b72088bd13b9046f6977aa872
      f5b67871
  3. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  4. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  5. Jul 25, 2014
  6. Jul 20, 2014
  7. May 12, 2012
  8. Jul 14, 2011
  9. Feb 03, 2011
  10. Jan 06, 2010
  11. Nov 04, 2009
  12. Sep 08, 2009
    • Russell Bryant's avatar
      Fix audio problems with format_mp3. · cea6ee41
      Russell Bryant authored
      This problem was introduced when the AST_FRIENDLY_OFFSET patch was merged.
      I'm surprised that nobody noticed any trouble when testing that patch, but this
      fixes the code that fills in the buffer to start filling in after the offset
      portion of the buffer.
      
      (closes issue #15850)
      Reported by: 99gixxer
      Patches:
            issue15850.diff1.txt uploaded by russell (license 2)
      Tested by: 99gixxer
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      cea6ee41
  13. Sep 01, 2009
    • Russell Bryant's avatar
      Fix memory corruption caused by format_mp3. · 078b0b0e
      Russell Bryant authored
      format_mp3 claimed that it provided AST_FRIENDLY_OFFSET in frames returned by
      read().  However, it lied.  This means that other parts of the code that
      attempted to make use of the offset buffer would end up corrupting the fields
      in the ast_filestream structure.  This resulted in quite a few crashes due to
      unexpected values for fields in ast_filestream.
      
      This patch closes out quite a few bugs.  However, some of these bugs have been
      open for a while and have been an area where more than one bug has been
      discussed.  So with that said, anyone that is following one of the issues
      closed here, if you still have a problem, please open a new bug report for the
      specific problem you are still having.  If you do, please ensure that the bug
      report is based on the newest version of Asterisk, and that this patch is
      applied if format_mp3 is in use.  Thanks!
      
      (closes issue #15109)
      Reported by: jvandal
      Tested by: aragon, russell, zerohalo, marhbere, rgj
      
      (closes issue #14958)
      Reported by: aragon
      
      (closes issue #15123)
      Reported by: axisinternet
      
      (closes issue #15041)
      Reported by: maxnuv
      
      (closes issue #15396)
      Reported by: aragon
      
      (closes issue #15195)
      Reported by: amorsen
      Tested by: amorsen
      
      (closes issue #15781)
      Reported by: jensvb
      
      (closes issue #15735)
      Reported by: thom4fun
      
      (closes issue #15460)
      Reported by: marhbere
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@215212 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      078b0b0e
  14. Jun 30, 2009
    • Russell Bryant's avatar
      Move Asterisk-addons modules into the main Asterisk source tree. · c511a267
      Russell Bryant authored
      Someone asked yesterday, "is there a good reason why we can't just put these
      modules in Asterisk?".  After a brief discussion, as long as the modules are
      clearly set aside in their own directory and not enabled by default, it is
      perfectly fine.
      
      For more information about why a module goes in addons, see README-addons.txt.
      
      chan_ooh323 does not currently compile as it is behind some trunk API updates.
      However, it will not build by default, so it should be okay for now.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      c511a267
Loading