Skip to content
Snippets Groups Projects
  1. Nov 06, 2017
  2. Feb 13, 2017
  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. Oct 24, 2016
  5. Sep 02, 2016
  6. Apr 14, 2016
  7. Jan 07, 2016
  8. Nov 12, 2015
    • Joshua Colp's avatar
      format_cap: Don't append the 'none' format when appending all. · a1597476
      Joshua Colp authored
      When appending all formats of a type all the codecs are iterated
      and added. This operation was incorrectly adding the ast_format_none
      format which is special in that it is supposed to be used when no
      format is present. It shouldn't be appended.
      
      ASTERISK-25535
      
      Change-Id: I7b00f3bdf4a5f3022e483d6ece602b1e8b12827c
      a1597476
  9. Nov 09, 2015
  10. Oct 22, 2015
    • Mark Michelson's avatar
      format_cap: Detect vector allocation failures. · 5dd9e193
      Mark Michelson authored
      A crash was seen on a system that ran out of memory due to Asterisk not
      checking for vector allocation failures in format_cap.c. With this
      change, if either of the AST_VECTOR_INIT calls fail, we will return a
      value indicating failure.
      
      Change-Id: Ieb9c59f39dfde6d11797a92b45e0cf8ac5722bc8
      5dd9e193
  11. Jul 11, 2015
    • Matt Jordan's avatar
      main/format_cap: Parse capabilities generated by ast_format_cap_get_names · 6ed58014
      Matt Jordan authored
      We have a strange relationship between the parsing of format
      capabilities from a string and their representation as a string. We
      expect the format capabilities to be expressed as a string in the
      following format:
      
      allow = !all,ulaw,alaw
      disallow = g722
      
      While we would generate the string representation of those formats as:
      
      allow = (ulaw|alaw)
      disallow = (ulaw|alaw|g729...)
      
      When the configuration framework needs to store values as a string, it
      generates the format capabilities using the second representation; this
      representation however cannot be parsed when the entry is rehydrated.
      This patch fixes that by updating
      ast_format_cap_update_by_allow_disallow to parse an entry as if it were
      in the generated format if it has a leading '(' and a trailing ')'.
      
      ASTERISK-25238
      
      Change-Id: I904d43caf4cf45af06f6aee0c9e58556eb91d6ca
      6ed58014
  12. May 05, 2015
    • George Joseph's avatar
      vector: Traversal, retrieval, insert and locking enhancements · 6d594129
      George Joseph authored
      Renamed AST_VECTOR_INSERT to AST_VECTOR_REPLACE because it really
      does replace not insert.  The few users of AST_VECTOR_INSERT were
      refactored.  Because these are macros, there should be no ABI
      compatibility issues.
      
      Added AST_VECTOR_INSERT_AT that actually inserts an element into the
      vector at a specific index pushing existing elements to the right.
      
      Added AST_VECTOR_GET_CMP that can retrieve from the vector based
      on a user-provided compare function.
      
      Added AST_VECTOR_CALLBACK function that will execute a function
      for each element in the vector.  Similar to ao2_callback and
      ao2_callback_data functions although the vector callback can take
      a variable number of arguments.  This should allow easy migration
      to a vector where a container might be too heavy.
      
      Added read/write locked vector and lock manipulation macros.
      
      Added unit tests.
      
      ASTERISK-25045 #close
      
      Change-Id: I2e07ecc709d2f5f91bcab8904e5e9340609b00e0
      6d594129
  13. Apr 27, 2015
    • Corey Farrell's avatar
      Astobj2: Allow reference debugging to be enabled/disabled by config. · 5c1d07ba
      Corey Farrell authored
      * The REF_DEBUG compiler flag no longer has any effect on code that uses
        Astobj2.  It is used to determine if reference debugging is enabled by
        default.  Reference debugging can be enabled or disabled in asterisk.conf.
      * Caller information is provided in logger errors for ao2 bad magic numbers.
      * Optimizes AO2 by merging internal functions with the public counterpart.
        This was possible now that we no longer require a dual ABI.
      
      ASTERISK-24974 #close
      Reported by: Corey Farrell
      
      Change-Id: Icf3552721fe999365ba8a8cf00a965aa6b897cc1
      5c1d07ba
  14. 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
  15. Mar 14, 2015
  16. Sep 18, 2014
  17. Jul 20, 2014
  18. Oct 03, 2013
  19. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  20. Feb 28, 2012
    • Richard Mudgett's avatar
      Astobj2 locking enhancement. · 2e834f7d
      Richard Mudgett authored
      Add the ability to specify what kind of locking an ao2 object has when it
      is allocated.  The locking could be one of: MUTEX, RWLOCK, or none.
      
      New API:
      
      ao2_t_alloc_options()
      ao2_alloc_options()
      ao2_t_container_alloc_options()
      ao2_container_alloc_options()
      
      ao2_rdlock()
      ao2_wrlock()
      ao2_tryrdlock()
      ao2_trywrlock()
      
      The OBJ_NOLOCK and AO2_ITERATOR_DONTLOCK flags have a slight meaning
      change.  They no longer mean that the object is protected by an external
      mechanism.  They mean the lock associated with the object has already been
      manually obtained by one of the ao2_lock calls.  This change is necessary
      for RWLOCK support since they are not reentrant.  Also an operation on an
      ao2 container may require promoting a read lock to a write lock by
      releasing the already held read lock to re-acquire as a write lock.
      
      
      Replaced API calls:
      
      ao2_t_link_nolock()
      ao2_link_nolock()
      ao2_t_unlink_nolock()
      ao2_unlink_nolock()
      
      with the respective
      
      ao2_t_link_flags()
      ao2_link_flags()
      ao2_t_unlink_flags()
      ao2_unlink_flags()
      
      API calls to be more flexible and to allow an anticipated enhancement to
      control linking duplicate objects into a container.
      
      
      The changes to format.c and format_cap.c are taking advantange of the new
      ao2 locking options to simplify the use of the format capabilities
      containers.
      
      Review: https://reviewboard.asterisk.org/r/1554/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357272 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      2e834f7d
  21. Jan 25, 2012
  22. Oct 31, 2011
  23. Sep 15, 2011
  24. May 25, 2011
  25. Feb 22, 2011
    • David Vossel's avatar
      Media Project Phase2: SILK 8khz-24khz, SLINEAR 8khz-192khz, SPEEX 32khz, hd... · d760e81f
      David Vossel authored
      Media Project Phase2: SILK 8khz-24khz, SLINEAR 8khz-192khz, SPEEX 32khz, hd audio ConfBridge, and other stuff
      
      -Functional changes
      1. Dynamic global format list build by codecs defined in codecs.conf
      2. SILK 8khz, 12khz, 16khz, and 24khz with custom attributes defined in codecs.conf
      3. Negotiation of SILK attributes in chan_sip.
      4. SPEEX 32khz with translation
      5. SLINEAR 8khz, 12khz, 24khz, 32khz, 44.1khz, 48khz, 96khz, 192khz with translation
         using codec_resample.c
      6. Various changes to RTP code required to properly handle the dynamic format list
         and formats with attributes.
      7. ConfBridge now dynamically jumps to the best possible sample rate.  This allows
         for conferences to take advantage of HD audio (Which sounds awesome)
      8. Audiohooks are no longer limited to 8khz audio, and most effects have been
         updated to take advantage of this such as Volume, DENOISE, PITCH_SHIFT.
      9. codec_resample now uses its own code rather than depending on libresample.
      
      -Organizational changes
      Global format list is moved from frame.c to format.c
      Various format specific functions moved from frame.c to format.c
      
      Review: https://reviewboard.asterisk.org/r/1104/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@308582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      d760e81f
  26. Feb 10, 2011
  27. Feb 03, 2011
Loading