Skip to content
Snippets Groups Projects
  1. Jan 22, 2017
    • Richard Mudgett's avatar
      LISTFILTER: Remove outdated ERROR message. · cfe72c39
      Richard Mudgett authored
      Feeding LISTFILTER an empty variable results in an invalid ERROR message.
      Earlier changes made the message useless because we can no longer tell if
      the variable is empty or does not exist.  It is valid to try to remove a
      value from an empty list just as it is valid to try to remove a value that
      is not in a non-empty list.
      
      * Removed the outdated ERROR message.
      
      * Added more test cases to the LISTFILTER unit test.
      
      Change-Id: Ided9040e6359c44a335ef54e02ef5950a1863134
      cfe72c39
  2. 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
  3. 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
  4. Jun 17, 2014
  5. May 21, 2014
  6. Mar 27, 2014
  7. Jan 02, 2014
  8. Dec 18, 2013
  9. Aug 06, 2013
  10. Jul 14, 2013
  11. Oct 29, 2012
  12. Jul 31, 2012
  13. Apr 06, 2012
  14. Feb 29, 2012
  15. Feb 08, 2012
  16. Sep 20, 2011
    • Richard Mudgett's avatar
      Merged revisions 337119 via svnmerge from · 1313c128
      Richard Mudgett authored
      https://origsvn.digium.com/svn/asterisk/branches/10
      
      ........
        r337119 | rmudgett | 2011-09-20 17:47:45 -0500 (Tue, 20 Sep 2011) | 16 lines
        
        Fix crash with STRREPLACE function.
        
        The ast_func_read() function calls the .read2 callback with the len
        parameter set to zero indicating no size restrictions on the supplied
        ast_str buffer.  The value was used to dimension a local starts[] array
        with the array subsequently used.
        
        * Reworked the strreplace() function to perform the string replacement in
        a straight forward manner.  Eliminated the need for the starts[] array.
        
        (closes issue ASTERISK-18545)
        Reported by: Federico Alves
        Patches:
              jira_asterisk_18545_v10.patch (license #5621) patch uploaded by rmudgett
        Tested by: rmudgett, Federico Alves
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@337123 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      1313c128
  17. Sep 19, 2011
  18. Jul 14, 2011
  19. May 20, 2011
  20. Oct 28, 2010
  21. Sep 24, 2010
  22. Aug 03, 2010
  23. Jul 09, 2010
  24. Mar 20, 2010
  25. Mar 10, 2010
  26. Feb 24, 2010
  27. Feb 10, 2010
  28. Jan 18, 2010
  29. Nov 24, 2009
    • Tilghman Lesher's avatar
      Add REPLACE & PASSTHRU functions, overhaul of func_strings, fix API docs for... · 0bccc4fb
      Tilghman Lesher authored
      Add REPLACE & PASSTHRU functions, overhaul of func_strings, fix API docs for the ast_get_encoded_* functions.
       * Add REPLACE function, which searches a given variable for a set of
         characters and replaces each with a given character.
       * Add PASSTHRU function, which passes a literal string back, like a NoOp for
         functions.  Intent is to be able to specify a literal string to another
         function that takes a variable name as an argument.
       * Let the array manipulation functions work with dialplan functions, in
         addition to variables.  This allows the array manipulation functions to
         modify ASTDB and ODBC backends, assuming the func_odbc configuration has
         both read and write functions.
      (closes issue #15223)
       Reported by: ajohnson
      Patches: 
             20091112__issue15223.diff.txt uploaded by tilghman (license 14)
       Tested by: lmadsen, tilghman
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@230994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      0bccc4fb
  30. Sep 30, 2009
  31. Jul 21, 2009
  32. May 31, 2009
  33. May 21, 2009
    • Kevin P. Fleming's avatar
      Const-ify the world (or at least a good part of it) · e6b2e9a7
      Kevin P. Fleming authored
      This patch adds 'const' tags to a number of Asterisk APIs where they are appropriate (where the API already demanded that the function argument not be modified, but the compiler was not informed of that fact). The list includes:
      
      - CLI command handlers
      - CLI command handler arguments
      - AGI command handlers
      - AGI command handler arguments
      - Dialplan application handler arguments
      - Speech engine API function arguments
      
      In addition, various file-scope and function-scope constant arrays got 'const' and/or 'static' qualifiers where they were missing.
      
      Review: https://reviewboard.asterisk.org/r/251/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e6b2e9a7
  34. Apr 29, 2009
    • Tilghman Lesher's avatar
      Merge str_substitution branch. · a866a759
      Tilghman Lesher authored
      This branch adds additional methods to dialplan functions, whereby the result
      buffers are now dynamic buffers, which can be expanded to the size of any
      result.  No longer are variable substitutions limited to 4095 bytes of data.
      In addition, the common case of needing buffers much smaller than that will
      enable substitution to only take up the amount of memory actually needed.
      The existing variable substitution routines are still available, but users
      of those API calls should transition to using the dynamic-buffer APIs.
      Reviewboard: http://reviewboard.digium.com/r/174/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a866a759
  35. Apr 23, 2009
Loading