Skip to content
Snippets Groups Projects
  1. Feb 10, 2017
    • Sean Bright's avatar
      manager: Restore Originate failure behavior from Asterisk 11 · 09107730
      Sean Bright authored
      In Asterisk 11, if the 'Originate' AMI command failed to connect the provided
      Channel while in extension mode, a 'failed' extension would be looked up and
      run. This was, I believe, unintentionally removed in 51b6c496. This patch
      restores that behavior.
      
      This also adds an enum for the various 'synchronous' modes in an attempt to
      make them meaningful.
      
      ASTERISK-26115 #close
      Reported by: Nasir Iqbal
      
      Change-Id: I8afbd06725e99610e02adb529137d4800c05345d
      09107730
  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. May 05, 2015
    • Corey Farrell's avatar
      CLI: Enable automatic references to modules. · df6c1d75
      Corey Farrell authored
      * Pass module to ast_cli_register and ast_cli_register_multiple.
      * Add a module reference before executing any CLI callback, remove
        the reference when complete.
      
      ASTERISK-25049 #close
      Reported by: Corey Farrell
      
      Change-Id: I7aafc7c9f2b912918f28fe51d51e9e8a755750e3
      df6c1d75
  4. 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
  5. Jul 20, 2014
  6. Mar 07, 2014
    • Scott Griepentrog's avatar
      uniqueid: channel linkedid, ami, ari object creation with id's · 80ef9a21
      Scott Griepentrog authored
      Much needed was a way to assign id to objects on creation, and
      much change was necessary to accomplish it.  Channel uniqueids
      and linkedids are split into separate string and creation time
      components without breaking linkedid propgation.  This allowed
      the uniqueid to be specified by the user interface - and those
      values are now carried through to channel creation, adding the
      assignedids value to every function in the chain including the
      channel drivers. For local channels, the second channel can be
      specified or left to default to a ;2 suffix of first.  In ARI,
      bridge, playback, and snoop objects can also be created with a
      specified uniqueid.
      
      Along the way, the args order to allocating channels was fixed
      in chan_mgcp and chan_gtalk, and linkedid is no longer lost as
      masquerade occurs.
      
      (closes issue ASTERISK-23120)
      Review: https://reviewboard.asterisk.org/r/3191/
      ........
      
      Merged revisions 410157 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      80ef9a21
  7. Oct 03, 2013
  8. Aug 08, 2012
  9. Apr 06, 2012
  10. Jul 14, 2011
  11. Feb 03, 2011
  12. May 26, 2009
  13. 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
  14. Apr 24, 2009
    • Russell Bryant's avatar
      Convert the ast_channel data structure over to the astobj2 framework. · cba19c8a
      Russell Bryant authored
      There is a lot that could be said about this, but the patch is a big 
      improvement for performance, stability, code maintainability, 
      and ease of future code development.
      
      The channel list is no longer an unsorted linked list.  The main container 
      for channels is an astobj2 hash table.  All of the code related to searching 
      for channels or iterating active channels has been rewritten.  Let n be 
      the number of active channels.  Iterating the channel list has gone from 
      O(n^2) to O(n).  Searching for a channel by name went from O(n) to O(1).  
      Searching for a channel by extension is still O(n), but uses a new method 
      for doing so, which is more efficient.
      
      The ast_channel object is now a reference counted object.  The benefits 
      here are plentiful.  Some benefits directly related to issues in the 
      previous code include:
      
      1) When threads other than the channel thread owning a channel wanted 
         access to a channel, it had to hold the lock on it to ensure that it didn't 
         go away.  This is no longer a requirement.  Holding a reference is 
         sufficient.
      
      2) There are places that now require less dealing with channel locks.
      
      3) There are places where channel locks are held for much shorter periods 
         of time.
      
      4) There are places where dealing with more than one channel at a time becomes 
         _MUCH_ easier.  ChanSpy is a great example of this.  Writing code in the 
         future that deals with multiple channels will be much easier.
      
      Some additional information regarding channel locking and reference count 
      handling can be found in channel.h, where a new section has been added that 
      discusses some of the rules associated with it.
      
      Mark Michelson also assisted with the development of this patch.  He did the 
      conversion of ChanSpy and introduced a new API, ast_autochan, which makes it 
      much easier to deal with holding on to a channel pointer for an extended period 
      of time and having it get automatically updated if the channel gets masqueraded.
      Mark was also a huge help in the code review process.
      
      Thanks to David Vossel for his assistance with this branch, as well.  David 
      did the conversion of the DAHDIScan application by making it become a wrapper 
      for ChanSpy internally.
      
      The changes come from the svn/asterisk/team/russell/ast_channel_ao2 branch.
      
      Review: http://reviewboard.digium.com/r/203/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@190423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      cba19c8a
  15. Dec 12, 2008
  16. Sep 28, 2008
  17. Feb 05, 2008
  18. Nov 19, 2007
  19. Nov 16, 2007
    • Luigi Rizzo's avatar
      Start untangling header inclusion in a way that does not affect · fdb7f7ba
      Luigi Rizzo authored
      build times - tested, there is no measureable difference before and
      after this commit.
      
      In this change:
      
      use asterisk/compat.h to include a small set of system headers:
      inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
      stdlib.h, alloca.h, stdio.h
      
      Where available, the inclusion is conditional on HAVE_FOO_H as determined
      by autoconf.
      
      Normally, source files should not include any of the above system headers,
      and instead use either "asterisk.h" or "asterisk/compat.h" which does it
      better. 
      
      For the time being I have left alone second-level directories
      (main/db1-ast, etc.).
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fdb7f7ba
  20. Nov 14, 2007
  21. Nov 12, 2007
  22. Oct 31, 2007
    • Jason Parker's avatar
      More changes to change return values from load_module functions. · 59c9ff7e
      Jason Parker authored
      (issue #11096)
      Patches:
            codec_adpcm.c.patch uploaded by moy (license 222)
            codec_alaw.c.patch uploaded by moy (license 222)
            codec_a_mu.c.patch uploaded by moy (license 222)
            codec_g722.c.patch uploaded by moy (license 222)
            codec_g726.c.diff uploaded by moy (license 222)
            codec_gsm.c.patch uploaded by moy (license 222)
            codec_ilbc.c.patch uploaded by moy (license 222)
            codec_lpc10.c.patch uploaded by moy (license 222)
            codec_speex.c.patch uploaded by moy (license 222)
            codec_ulaw.c.patch uploaded by moy (license 222)
            codec_zap.c.patch uploaded by moy (license 222)
            format_g723.c.patch uploaded by moy (license 222)
            format_g726.c.patch uploaded by moy (license 222)
            format_g729.c.patch uploaded by moy (license 222)
            format_gsm.c.patch uploaded by moy (license 222)
            format_h263.c.patch uploaded by moy (license 222)
            format_h264.c.patch uploaded by moy (license 222)
            format_ilbc.c.patch uploaded by moy (license 222)
            format_jpeg.c.patch uploaded by moy (license 222)
            format_ogg_vorbis.c.patch uploaded by moy (license 222)
            format_pcm.c.patch uploaded by moy (license 222)
            format_sln.c.patch uploaded by moy (license 222)
            format_vox.c.patch uploaded by moy (license 222)
            format_wav.c.patch uploaded by moy (license 222)
            format_wav_gsm.c.patch uploaded by moy (license 222)
            res_adsi.c.patch uploaded by eliel (license 64)
            res_ael_share.c.patch uploaded by eliel (license 64)
            res_clioriginate.c.patch uploaded by eliel (license 64)
            res_convert.c.patch uploaded by eliel (license 64)
            res_indications.c.patch uploaded by eliel (license 64)
            res_musiconhold.c.patch uploaded by eliel (license 64)
            res_smdi.c.patch uploaded by eliel (license 64)
            res_speech.c.patch uploaded by eliel (license 64)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      59c9ff7e
  23. Oct 22, 2007
  24. Oct 19, 2007
  25. Oct 11, 2007
    • Russell Bryant's avatar
      Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :) · e97a723c
      Russell Bryant authored
      (closes issue #10724)
      Reported by: eliel
      Patches: 
            chan_skinny.c.patch uploaded by eliel (license 64)
            chan_oss.c.patch uploaded by eliel (license 64)
            chan_mgcp.c.patch2 uploaded by eliel (license 64)
            pbx_config.c.patch uploaded by seanbright (license 71)
            iax2-provision.c.patch uploaded by eliel (license 64)
            chan_gtalk.c.patch uploaded by eliel (license 64)
            pbx_ael.c.patch uploaded by seanbright (license 71)
            file.c.patch uploaded by seanbright (license 71)
            image.c.patch uploaded by seanbright (license 71)
            cli.c.patch uploaded by moy (license 222)
            astobj2.c.patch uploaded by moy (license 222)
            asterisk.c.patch uploaded by moy (license 222)
            res_limit.c.patch uploaded by seanbright (license 71)
            res_convert.c.patch uploaded by seanbright (license 71)
            res_crypto.c.patch uploaded by seanbright (license 71)
            app_osplookup.c.patch uploaded by seanbright (license 71)
            app_rpt.c.patch uploaded by seanbright (license 71)
            app_mixmonitor.c.patch uploaded by seanbright (license 71)
            channel.c.patch uploaded by seanbright (license 71)
            translate.c.patch uploaded by seanbright (license 71)
            udptl.c.patch uploaded by seanbright (license 71)
            threadstorage.c.patch uploaded by seanbright (license 71)
            db.c.patch uploaded by seanbright (license 71)
            cdr.c.patch uploaded by moy (license 222)
            pbd_dundi.c.patch uploaded by moy (license 222)
            app_osplookup-rev83558.patch uploaded by moy (license 222)
            res_clioriginate.c.patch uploaded by moy (license 222)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e97a723c
  26. Jul 23, 2007
  27. Sep 18, 2006
  28. Aug 21, 2006
  29. Jun 07, 2006
  30. May 10, 2006
  31. Apr 29, 2006
  32. Apr 14, 2006
    • Luigi Rizzo's avatar
      This rather large commit changes the way modules are loaded. · e43bc663
      Luigi Rizzo authored
       
      As partly documented in loader.c and include/asterisk/module.h,
      modules are now expected to return all of their methods and flags
      into a structure 'mod_data', and are normally loaded with RTLD_NOW
      | RTLD_LOCAL, so symbols are resolved immediately and conflicts
      should be less likely.  Only in a small number of cases (res_*,
      typically) modules are loaded RTLD_GLOBAL, so they can export
      symbols.
       
      The core of the change is only the two files loader.c and
      include/asterisk/module.h, all the rest is simply adaptation of the
      existing modules to the new API, a rather mechanical (but believe
      me, time and finger-consuming!) process whose detail you can figure
      out by svn diff'ing any single module.
      
      Expect some minor compilation issue after this change, please
      report it on mantis http://bugs.digium.com/view.php?id=6968
      so we collect all the feedback in one place.
      
      I am just sorry that this change missed SVN version number 20000!
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e43bc663
  33. Apr 11, 2006
  34. Apr 08, 2006
  35. Mar 28, 2006
  36. Feb 11, 2006
  37. Feb 02, 2006
Loading