Skip to content
Snippets Groups Projects
  1. May 30, 2017
    • Sean Bright's avatar
      format: Reintroduce smoother flags · 5c27fe21
      Sean Bright authored
      In review 4843 (ASTERISK-24858), we added a hack that forced a smoother
      creation when sending signed linear so that the byte order was adjusted
      during transmission. This was needed because smoother flags were lost
      during the new format work that was done in Asterisk 13.
      
      Rather than rolling that same hack into res_rtp_multicast, re-introduce
      smoother flags so that formats can dictate their own options.
      
      Change-Id: I77b835fba0e539c6ce50014a984766f63cab2c16
      5c27fe21
  2. Nov 06, 2016
  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. Nov 13, 2015
    • Alexander Traud's avatar
      format: Register format-attribute module with cached formats. · fd23d423
      Alexander Traud authored
      In Asterisk 13, cached formats are created before their corresponding format-
      attribute module is registered. Cached formats are involved when a local
      extension is called. Therefore, ast_format_generate_sdp_fmtp did not work
      on local extensions. This change affects the Opus Codec, H.263 (Plus), H.264,
      and format-attribute modules provided externally.
      
      ASTERISK-25160 #close
      
      Change-Id: I1ea1f0483e5261e2a050112e4ebdfc22057d1354
      fd23d423
  5. Aug 10, 2015
    • Matt Jordan's avatar
      main/format: Add an API call for retrieving format attributes · e188192a
      Matt Jordan authored
      Some codecs that may be a third party library to Asterisk need to have
      knowledge of the format attributes that were negotiated. Unfortunately,
      when the great format migration of Asterisk 13 occurred, that ability
      was lost.
      
      This patch adds an API call, ast_format_attribute_get, to the core
      format API, along with updates to the unit test to check the new API
      call. A new callback is also now available for format attribute modules,
      such that they can provide the format attribute values they manage.
      
      Note that the API returns a void *. This is done as the format attribute
      modules themselves may store format attributes in any particular manner
      they like. Care should be taken by consumers of the API to check the
      return value before casting and dereferencing. Consumers will obviously
      need to have a priori knowledge of the type of the format attribute as
      well.
      
      Change-Id: Ieec76883dfb46ecd7aff3dc81a52c81f4dc1b9e3
      e188192a
  6. May 04, 2015
  7. 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
  8. Apr 06, 2015
  9. Mar 26, 2015
  10. Dec 12, 2014
  11. Aug 05, 2014
  12. Jul 20, 2014
  13. Jul 15, 2014
  14. Jun 11, 2014
  15. May 09, 2014
  16. Mar 27, 2014
  17. Feb 14, 2014
  18. Aug 23, 2013
    • Matthew Jordan's avatar
      Add pass through support for Opus and VP8; Opus format attribute negotiation · 4d348e85
      Matthew Jordan authored
      This patch adds pass through support for Opus and VP8. That includes:
      
      * Format attribute negotiation for Opus. Note that unlike some other codecs,
        the draft RFC specifies having spaces delimiting the attributes in addition
        to ';', so you have "attra=X; attrb=Y". This broke the attribute parsing in
        chan_sip, so a small tweak was also included in this patch for that.
      
      * A format attribute negotiation module for Opus, res_format_attr_opus
      
      * Fast picture update for VP8. Since VP8 uses a different RTCP packet number
        than FIR, this really is specific to VP8 at this time.
      
      Note that the format attribute negotiation in res_pjsip_sdp_rtp was written
      by mjordan. The rest of this patch was written completely by Lorenzo Miniero.
      
      Review: https://reviewboard.asterisk.org/r/2723/
      
      (closes issue ASTERISK-21981)
      Reported by: Tzafrir Cohen
      patches:
        asterisk_opus+vp8_passthrough_20130718.patch uploaded by lminiero (License 6518)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4d348e85
  19. Aug 16, 2013
  20. Jun 12, 2013
  21. Dec 05, 2012
  22. Oct 02, 2012
  23. Jul 13, 2012
  24. 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
  25. Mar 13, 2012
  26. 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
  27. Jan 25, 2012
  28. Nov 07, 2011
  29. Oct 31, 2011
  30. Jul 07, 2011
  31. 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
  32. Feb 03, 2011
Loading