Skip to content
Snippets Groups Projects
  1. Feb 28, 2019
  2. Nov 06, 2017
  3. Mar 28, 2017
    • George Joseph's avatar
      res_pjsip_config_wizard: Add 2 new parameters to help with proxy config · 2fe52174
      George Joseph authored
      Two new parameters have been added to the pjsip config wizard.
      
       * Setting 'sends_line_with_registrations' to true will cause the wizard
         to skip the creation of an identify object to match incoming request
         to the endpoint and instead add the line and endpoint parameters to
         the outbound registration object.
      
       * Setting 'outbound_proxy' is a shortcut for adding individual
         endpoint/outbound_proxy, aor/outbound_proxy and
         registration/outbound_proxy parameters.
      
      Change-Id: I678e5f80765734c056620528a6d40d82736ceeb0
      (cherry picked from commit a827892f)
      (cherry picked from commit 27344675)
      2fe52174
  4. 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
  5. 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
  6. Oct 10, 2016
  7. Feb 16, 2016
    • George Joseph's avatar
      res_pjsip_config_wizard: Add command to export primitive objects · 4f08e9fb
      George Joseph authored
      A new command (pjsip export config_wizard primitives) has been added that
      will export all the pjsip objects it created to the console or a file
      suitable for reuse in a pjsip.conf file.
      
      ASTERISK-24919 #close
      Reported-by: Ray Crumrine
      
      Change-Id: Ica2a5f494244b4f8345b0437b16d06aa0484452b
      4f08e9fb
  8. May 15, 2015
    • George Joseph's avatar
      res_pjsip_config_wizard/config: Fix template processing · 5d939281
      George Joseph authored
      
      The config wizard was always pulling the first occurrence of
      a variable from an ast_variable list but this gets the template
      value from the list instead of any overridden value.  This patch
      creates ast_variable_find_last_in_list() in config.c and updates
      res_pjsip_config_wizard to use it instead of
      ast_variable_find_in_list.  Now the overridden values, where they
      exist, are used instead of template variables.
      
      Updated test_config to test the new API.
      
      ASTERISK-25089 #close
      
      Reported-by: default avatarGeorge Joseph <george.joseph@fairview5.com>
      Tested-by: default avatarGeorge Joseph <george.joseph@fairview5.com>
      Change-Id: Ifa7ddefc956a463923ee6839dd1ebe021c299de4
      5d939281
  9. May 13, 2015
  10. 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
  11. Apr 10, 2015
    • George Joseph's avatar
      res_pjsip_config_wizard: Cleanup load unload · f69e46de
      George Joseph authored
      While investigating other unload issues I realized that the load/unload process 
      for the config wizard was pretty ugly so I've refactored it as follows...
      
      When the res_pjsip sorcery instance is created the config_wizard bumps it's own 
      module reference to prevent it from unloading while the sorcery instance is 
      still active.  When res_pjsip unloads and it's sorcery instance is destroyed, 
      the config wizard unrefs itself which then allows itself to unload cleanly.  
      Since the config wizard now can't load after res_pjsip or unload before it 
      (which should have been the correct behavior all along), I was able to remove 
      the chunks of code in both load_module and unload_module that handled that case.
      
      Ran the testsuite tests to insure there were no functional changes and REF_DEBUG 
      to insure that Asterisk was shutting down cleanly with no FRACKs or leaks.
      
      Tested-by: George Joseph
      Review: https://reviewboard.asterisk.org/r/4610/
      ........
      
      Merged revisions 434619 from http://svn.asterisk.org/svn/asterisk/branches/13
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434620 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f69e46de
  12. Feb 10, 2015
    • George Joseph's avatar
      res_pjsip_config_wizard: Add ability to auto-create hints. · 49161d8d
      George Joseph authored
      Looking at the Super Awesome Company sample reminded me that creating hints is 
      just plain gruntwork.  So you can now have the pjsip conifg wizard auto-create 
      them for you.
      
      Specifying 'hint_exten' in the wizard will create 
      'exten => <hint_exten>,hint/PJSIP/<wizard_id>'
      in whatever is specified for 'hint_context'.
      
      Specifying 'hint_application' in the wizard will create
      'exten => <hint_exten>,1,<hint_application>'
      in whatever is specified for 'hint_context'.
      
      The default for 'hint_context' is the endpoint's context.
      There's no default for 'hint_application'.  If not specified, no app is added.
      There's no default for 'hint_exten'.  If not specified, neither the hint itself 
      nor the application will be created.
      
      Some may think this is the slippery slope to users.conf but hints are a basic 
      necessity for phones unlike voicemail, manager, etc that users.conf creates.
      
      Tested-by: George Joseph
      Review: https://reviewboard.asterisk.org/r/4383/
      ........
      
      Merged revisions 431643 from http://svn.asterisk.org/svn/asterisk/branches/13
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      49161d8d
  13. Jan 23, 2015
  14. Dec 18, 2014
  15. Dec 17, 2014
  16. Dec 16, 2014
  17. Dec 15, 2014
Loading