Skip to content
Snippets Groups Projects
  1. Oct 18, 2018
    • Richard Mudgett's avatar
      Fix 'statement' typo throughout code. · 467f7c67
      Richard Mudgett authored
      Most were in comments.  A couple were in warning messages.
      
      Pointed out by Jonathan H on the Asterisk users mailing list.
      
      Change-Id: I6286939dff5d0a27a2758140570106f1cb351855
      467f7c67
  2. May 11, 2018
    • Corey Farrell's avatar
      Fix GCC 8 build issues. · b5914d90
      Corey Farrell authored
      This fixes build warnings found by GCC 8.  In some cases format
      truncation is intentional so the warning is just suppressed.
      
      ASTERISK-27824 #close
      
      Change-Id: I724f146cbddba8b86619d4c4a9931ee877995c84
      b5914d90
  3. Mar 14, 2018
    • Corey Farrell's avatar
      loader: Convert reload_classes to built-in modules. · 572a508e
      Corey Farrell authored
      * acl (named_acl.c)
      * cdr
      * cel
      * ccss
      * dnsmgr
      * dsp
      * enum
      * extconfig (config.c)
      * features
      * http
      * indications
      * logger
      * manager
      * plc
      * sounds
      * udptl
      
      These modules are now loaded at appropriate time by the module loader.
      Unlike loadable modules these use AST_MODULE_LOAD_FAILURE on error so
      the module loader will abort startup on failure of these modules.
      
      Some of these modules are still initialized or shutdown from outside the
      module loader.  logger.c is initialized very early and shutdown very
      late, manager.c is initialized by the module loader but is shutdown by
      the Asterisk core (too much uses it without holding references).
      
      Change-Id: I371a9a45064f20026c492623ea8062d02a1ab97f
      572a508e
  4. Mar 07, 2018
  5. Dec 22, 2017
  6. Dec 19, 2017
    • Corey Farrell's avatar
      Remove constant conditionals (dead-code). · b3e839de
      Corey Farrell authored
      Some variables are set and never changed, making them constant.  This
      means that code in the 'false' block of the conditional is unreachable.
      
      In chan_skinny and res_config_ldap I used preprocessor directive `#if 0`
      as I'm unsure if the unreachable code could be enabled in the future.
      
      Change-Id: I62e2aac353d739fb3c983cf768933120f5fba059
      b3e839de
  7. Feb 22, 2017
    • Sean Bright's avatar
      res_config_ldap: Various code improvements · e57961db
      Sean Bright authored
      The initial motivation for this patch was to properly handle memory
      allocation failures - we weren't checking the return values from the
      various LDAP library allocation functions.
      
      In the process, because update_ldap() and update2_ldap() were
      substantially the same code, they've been consolidated.
      
      Change-Id: Iebcfe404177cc6860ee5087976fe97812221b822
      e57961db
  8. Feb 21, 2017
    • Sean Bright's avatar
      realtime: Centralize some common realtime backend code · 6e6c96d7
      Sean Bright authored
      All of the realtime backends create artificial ast_categorys to pass
      back into the core as query results. These categories have no filename
      or line number information associated with them and the backends differ
      slightly on how they create them. So create a couple helper macros to
      help make things more consistent.
      
      Also updated the call sites to remove redundant error messages about
      memory allocation failure.
      
      Note that res_config_ldap sets the category filename to the 'table name'
      but that is not read by anything in the core, so I've dropped it.
      
      Change-Id: I3a1fd91e0c807dea1ce3b643b0a6fe5be9002897
      6e6c96d7
  9. Feb 20, 2017
    • Sean Bright's avatar
      res_config_ldap: Don't try to delete non-existent attributes · e84353b8
      Sean Bright authored
      OpenLDAP will raise an error when we try to delete an LDAP attribute
      that doesn't exist. We need to filter out LDAP_MOD_DELETE requests
      based on which attributes the current LDAP entry actually has. There
      is of course a small window of opportunity for this to still fail,
      but it is much less likely now.
      
      Change-Id: I3fe1b04472733e43151563aaf9f8b49980273e6b
      e84353b8
    • Sean Bright's avatar
      res_config_ldap: Remove extraneous line numbers from log messages · 9f392574
      Sean Bright authored
      Extraneous line numbers were being output in many log messages. These
      have been removed.
      
      Change-Id: Ice9efa3d252ee87f37fa8f5ea852fda482675431
      9f392574
    • Sean Bright's avatar
      res_config_ldap: Make memory allocation more consistent · ef094439
      Sean Bright authored
      The code in update_ldap() and update2_ldap() was using both Asterisk's
      memory allocation routines as well as OpenLDAP's. I've changed it so
      that everything that is passed to OpenLDAP's functions are allocated
      with their routines.
      
      Change-Id: Iafec9c1fd8ea49ccc496d6316769a6a426daa804
      ef094439
    • Sean Bright's avatar
      res_config_ldap: Fix configuration inheritance from _general · dd3efdf5
      Sean Bright authored
      The "_general" configuration section allows administrators to provide
      both general configuration options (host, port, url, etc.) as well as a
      global realtime-to-LDAP-attribute mapping that is a fallback if one of
      the later sections do not override it. This neglected to exclude the
      general configuration options from the mapping. As an example, during
      my testing, chan_sip requested 'port' from realtime, and because I did
      not have it defined, it pulled in the 'port' configuration option from
      "_general." We now filter those out explicitly.
      
      Change-Id: I1fc61560bf96b8ba623063cfb7e0a49c4690d778
      dd3efdf5
    • Sean Bright's avatar
      res_config_ldap: Fix erroneous LDAP_MOD_REPLACE in LDAP modify · d6d86f1c
      Sean Bright authored
      We always treat the first change of our modification batch as a
      replacement when it sometimes is actually a delete. So we have to pass
      the correct arguments to the OpenLDAP library.
      
      ASTERISK-26580 #close
      Reported by: Nicholas John Koch
      Patches:
      	res_config_ldap.c-11.24.1.patch (license #6833) patch uploaded
      	by Nicholas John Koch
      
      Change-Id: I0741d25de07c9539f1edc6eff3696165dfb64fbe
      d6d86f1c
  10. 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
  11. Mar 07, 2016
    • Rodrigo Ramírez Norambuena's avatar
      main/cli.c: Refactor function to print seconds formatted · 0ec9fe54
      Rodrigo Ramírez Norambuena authored
      Refactor and created function ast_cli_print_timestr_fromseconds to print
      seconds formatted:  year(s) week(s) day(s) hour(s) second(s)
      
      This function now is used in addons/cdr_mysql.c,cdr_pgsql.c, main/cli.c,
      res_config_ldap.c, res_config_pgsql.c.
      
      Change-Id: Ibeb8634102cd11d3f8623398b279cb731bcde36c
      0ec9fe54
  12. 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
  13. Sep 26, 2014
  14. Jul 25, 2014
  15. Apr 27, 2013
  16. Apr 10, 2013
  17. Mar 12, 2013
  18. Jan 04, 2013
  19. Oct 14, 2012
  20. Oct 01, 2012
  21. Sep 21, 2012
    • Andrew Latham's avatar
      Doxygen Updates - janitor work · 6f61cb50
      Andrew Latham authored
      Doxygen updates including mistakes, misspellings, missing parameters, updates for Doxygen style.  Some missing txt file links are removed but their content or essense will be included in some later updates.  A majority of the txt files were removed in the 1.6 era but never noted. The HR and EXTREF are simple changes that make the documentation more compatable with more versions of Doxygen.
      
      Further updates coming.
      
      (issue ASTERISK-20259)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6f61cb50
  22. Apr 17, 2012
  23. Aug 19, 2011
  24. Jul 14, 2011
  25. Feb 04, 2011
  26. Jan 29, 2011
  27. Oct 21, 2010
  28. Sep 29, 2010
  29. Jul 26, 2010
  30. Jul 23, 2010
  31. Jul 20, 2010
  32. Jan 14, 2010
  33. Jan 12, 2010
  34. Oct 07, 2009
  35. Aug 12, 2009
    • Gavin Henry's avatar
      Added three new attributes and applied a patch to res_config_ldap.c · f2b9fc79
      Gavin Henry authored
      attributetype ( AstAccountSubscribeContext
              NAME 'AstAccountSubscribeContext'
              DESC 'Asterisk subscribe context'
              EQUALITY caseIgnoreMatch
              SUBSTR caseIgnoreSubstringsMatch
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
      
      attributetype ( AstAccountIpAddr
              NAME 'AstAccountIpAddr'
              DESC 'Asterisk aaccount IP address'
              EQUALITY caseIgnoreMatch
              SUBSTR caseIgnoreSubstringsMatch
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
      
      attributetype ( AstAccountUserAgent
              NAME 'AstAccountUserAgent'
              DESC 'Asterisk account user context'
              EQUALITY caseIgnoreMatch
              SUBSTR caseIgnoreSubstringsMatch
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
      
      and patch fix_empty_attributes_1.6.1.4_v2.patch 
      
      (closes issue #13725)
      Reported by: macogeek
      Patches:
            fix_empty_attributes_1.6.1.4_v2.patch uploaded by xvisor (license 863)
      Tested by: suretec
      
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@211767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f2b9fc79
Loading