Skip to content
Snippets Groups Projects
  1. Nov 18, 2021
  2. Oct 02, 2020
    • Sean Bright's avatar
      pbx.c: On error, ast_add_extension2_lockopt should always free 'data' · 51cba591
      Sean Bright authored
      In the event that the desired extension already exists,
      ast_add_extension2_lockopt() will free the 'data' it is passed before
      returning an error, so we should not be freeing it ourselves.
      
      Additionally, there were two places where ast_add_extension2_lockopt()
      could return an error without also freeing the 'data' pointer, so we
      add that.
      
      ASTERISK-29097 #close
      
      Change-Id: I904707aae55169feda050a5ed7c6793b53fe6eae
      51cba591
  3. Nov 21, 2018
  4. Oct 25, 2018
  5. Dec 15, 2017
    • Corey Farrell's avatar
      aco: Minimize use of regex. · bf2d3593
      Corey Farrell authored
      Remove nearly all use of regex from ACO users.  Still remaining:
      * app_confbridge has a legitamate use of option name regex.
      * ast_sorcery_object_fields_register is implemented with regex, all
        callers use simple prefix based regex.  I haven't decided the best
        way to fix this in both 13/15 and master.
      
      Change-Id: Ib5ed478218d8a661ace4d2eaaea98b59a897974b
      bf2d3593
  6. Nov 21, 2017
    • Corey Farrell's avatar
      res_parking: Set load_pri more appropriately. · 8e150615
      Corey Farrell authored
      res_parking had an inplicit load_pri of 0 meaning it was one of the very
      first modules loaded after modules with global symbols.  Set it to
      AST_MODPRI_DEVSTATE_PROVIDER as it provides device state for parking
      lots.
      
      Change-Id: I297b6fb3ff6993ec004e667b22a74f5925906259
      8e150615
  7. Jan 04, 2017
    • Jonathan R. Rose's avatar
      core/pbx: dialplan show - display filename/line# · d96e3502
      Jonathan R. Rose authored
      Adds the ability for extensions to be registered to include filename and
      line number so that dialplan show output can show the filename and line
      number of a config file responsible for generating a given extension.
      
      This only affects config modules that are written to use the new extension
      registering functions. In this patch, that only includes pbx_config, so
      extensions registered in extensions.conf and any included extension will
      be shown in this manner. Extensions registered in this manner will show
      the filename and line number *instead* of the registrar.
      
      ASTERISK-26658 #close
      Reported by: Jonathan R. Rose
      
      Change-Id: Ieccc6abccdff34ed5c7da3511fd24972b8f2dd30
      d96e3502
  8. 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
  9. Mar 25, 2016
    • Richard Mudgett's avatar
      res_parking: Cleanup find_channel_parking_lot_name() usage. · 3cf71403
      Richard Mudgett authored
      Change-Id: I8f7a8890aef27824301c642d4d15407ac83e6f02
      3cf71403
    • Richard Mudgett's avatar
      res_parking: Misc fixes. · 13e75ee0
      Richard Mudgett authored
      res/parking/parking_applications.c:
      
      * Add malloc fail checks in setup_park_common_datastore().
      
      * Fix playing parking failed announcement to only happen on non-blind
      transfers in park_app_exec().  It could never go out before because a test
      was provedly always false.
      
      res/parking/parking_bridge.c:
      
      * Fix NULL tolerance in generate_parked_user() because
      bridge_parking_push() can theoretically pass a NULL parker channel if the
      parker channel went away for some reason.
      
      * Clarify some weird code dealing with blind_transfer in
      bridge_parking_push().
      
      res/parking/parking_bridge_features.c:
      
      * Made park_local_transfer() set BLINDTRANSFER on the Local;1 channel
      which will be bulk copied to the Local;2 channel on the subsequent
      ast_call().  The additional advantage is if the parker channel has the
      BLINDTRANSFER and ATTENDEDTRANSFER variables set they are now guaranteed
      to be overridden.
      
      res/parking/parking_manager.c:
      
      * Fix AMI Park action input range checking of the Timeout header in
      manager_park().
      
      * Reduced locking scope to where needed in manager_park().
      
      res/res_parking.c:
      
      * Fix some off nominal missing unlocks by eliminating the returns.
      
      Change-Id: Ib64945bc285acb05a306dc12e6f16854898915ca
      13e75ee0
    • Philip Correia's avatar
      res_parking: Update parking documentation for dynamic parking lots. · e2853ae3
      Philip Correia authored
      * Remove duplicate res_parking.conf courtesytone config option
      documentation.
      
      ASTERISK-24596 #close
      Reported by:  Philip Correia
      
      ASTERISK-24605
      Reported by:  Philip Correia
      Patches:
            call_park_app_doc.patch (license #6672) patch uploaded by Philip Correia
      
      Change-Id: I90a92a891c6494dc08173e675856afcc4764c5b5
      e2853ae3
  10. May 05, 2015
    • Corey Farrell's avatar
      Modules: Make ast_module_info->self available to auxiliary sources. · a8bfa9e1
      Corey Farrell authored
      ast_module_info->self is often needed to register items with the core.  Many
      modules have ad-hoc code to make this pointer available to auxiliary sources.
      This change updates the module build process to make the needed information
      available to all sources in a module.
      
      ASTERISK-25056 #close
      Reported by: Corey Farrell
      
      Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
      a8bfa9e1
  11. 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
  12. Jul 25, 2014
  13. Apr 15, 2014
  14. Oct 22, 2013
  15. Oct 17, 2013
  16. Sep 27, 2013
  17. Aug 22, 2013
  18. Aug 17, 2013
    • Kinsey Moore's avatar
      Allow res_parking to be unloadable · 56aea1c0
      Kinsey Moore authored
      This change protects accesses of res_parking such that it can unload
      safely once transient uses of its registered functions are complete.
      The parking API has been restructured such that its consumers do not
      have access to the vtable exposed by the parking provider, but instead
      route through stubs to prevent consumers from holding on to function
      pointers.
      
      This adds calls to all the parking unload functions and moves
      application loading and unloading into functions in
      parking_applications.c similar to the rest of the parts of res_parking.
      
      Review: https://reviewboard.asterisk.org/r/2763/
      (closes issue ASTERISK-22142)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      56aea1c0
    • Kinsey Moore's avatar
      Strip down the old event system · 59753b1e
      Kinsey Moore authored
      This removes unused code, event types, IE pltypes, and event IE types
      where possible and makes several functions private that were once
      public. This includes a renumbering of the remaining event and IE types
      which breaks binary compatibility with previous versions. The last
      remaining consumers of the old event system (or parts thereof) are
      main/security_events.c, res/res_security_log.c, tests/test_cel.c,
      tests/test_event.c, main/cel.c, and the CEL backends.
      
      Review: https://reviewboard.asterisk.org/r/2703/
      (closes issue ASTERISK-22139)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      59753b1e
  19. Aug 15, 2013
  20. Aug 05, 2013
    • Jonathan Rose's avatar
      res_parking: Unit tests · 98b02d98
      Jonathan Rose authored
      Adds the following unit tests:
      * create_lot: tests adding and removal of a new parking lot (baseline)
      * park_extensions: creates a parking lot that registers extensions and
            then confirms that all of the expected extensions exist
      * extensions_conflicts: creates numerous parking lots to test that
            extension conflicts in parking lots result in parking lot
            creation failing
      * dynamic_parking_variables: Tests that the creation of dynamic
            parking lots respects the related channel variables set on the
            channel that requests them.
      * park_call: Tests adding a channel to a parking lot's holding bridge
            by standard parking functions.
      * retrieve_call: Tests pulling a channel out of a parking lot's
            holding bridge via parked call retrieval functions.
      
      (closes issue ASTERISK-22138)
      Reported by: Matt Jordan
      Review: https://reviewboard.asterisk.org/r/2714/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      98b02d98
  21. Aug 02, 2013
  22. Aug 01, 2013
    • Matthew Jordan's avatar
      Support externally initiated parking requests; remove some dead code · 5c4b4824
      Matthew Jordan authored
      This patch does the following:
       * It adds support for externally initiated parking requests. In particular,
         chan_skinny has a protocol level message that initiates a call park.
         This patch now supports that option, as well as the protocol specific
         mechanisms in chan_dahdi/sig_analog and chan_mgcp.
       * A parking bridge features virtual table has been added that provides
         access to the parking functionality that the Bridging API needs. This
         includes requests to park an entire 'call' (with little or no additional
         information, thank you chan_skinny), perform a blind transfer to a parking
         extension, determine if an extension is a parking extension, as well as the
         actual "do the parking" request from the Bridging API.
       * Refactoring in chan_mgcp, chan_skinny, and chan_dahdi to make use of the new
         functions
       * The removal of some - but not all - dead parking code from features.c
      
      This also fixed blind transferring a multi-party bridge to a parking lot (which
      was implemented, but had at least one code path where using the parking features
      kK might not have worked)
      
      Review: https://reviewboard.asterisk.org/r/2710
      
      (closes issue ASTERISK-22134)
      Reported by: Matt Jordan
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      5c4b4824
  23. Jun 28, 2013
  24. Jun 26, 2013
  25. Jun 07, 2013
  26. May 21, 2013
  27. Jul 17, 2004
  28. Jul 14, 2004
  29. Jun 22, 2004
  30. Jun 09, 2004
  31. May 20, 2004
  32. Apr 27, 2004
  33. Apr 26, 2004
  34. Apr 07, 2004
  35. Apr 06, 2004
Loading