Skip to content
Snippets Groups Projects
  1. Jul 31, 2012
    • Mark Michelson's avatar
      Add "dialplan remove context" and modify "dialplan add include" · 6c23a60f
      Mark Michelson authored
      From corruptor's review board posting:
      
      "I've noticed that we can remove particular extension from context with
      dialplan remove extension command but in order to remove all extensions
      in the context we should delete them on by one. I've created dialplan
      remove context command which uses ast_context_destroy to destroy the
      whole context with all extensions. I've created to functions for in
      pbx_config.c: handle_cli_dialplan_remove_context which actually removes
      context and complete_dialplan_remove_context which completes input.
      They are based on other similar functions and pretty trivial but I can be
      mistaken somewhere.
      
      "I've also modified dialplan add include <context2> into <context1>. I've
      made it similar dialplan add extension ... command. It creates <context1>
      if it doesn't exist and I've also modified complete_dialplan_add_include
      and removed check for existance of <context2> because we can include
      non-existent context into another one. (I usually include empty
      (non-existent) contexts in advance). Should we raise warning in this case
      as it's raised while reading extensions.conf?
      
      "I use those functions with AMI. I think manager commands should be created
      in addition to those CLI commands."
      
      I've addressed the latest comments on review board and have made some other
      coding guidelines-related cleanup. I also have modified the CHANGES file to
      mention these new commands.
      
      (closes issue ASTERISK-19292)
      reported by Andrey Solovyev
      
      Patches:
      	dialplan_add_include.patch
          uploaded by Andrey Solovyev (license #5214)
          dialplan_remove_context.patch
          uploaded by Andrey Solovyev (license #5214)
      
      Review: https://reviewboard.asterisk.org/r/2042
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6c23a60f
  2. Jun 15, 2012
    • Kevin P. Fleming's avatar
      Multiple revisions 369001-369002 · 166b4e2b
      Kevin P. Fleming authored
      ........
        r369001 | kpfleming | 2012-06-15 10:56:08 -0500 (Fri, 15 Jun 2012) | 11 lines
        
        Add support-level indications to many more source files.
        
        Since we now have tools that scan through the source tree looking for files
        with specific support levels, we need to ensure that every file that is
        a component of a 'core' or 'extended' module (or the main Asterisk binary)
        is explicitly marked with its support level. This patch adds support-level
        indications to many more source files in tree, but avoids adding them to
        third-party libraries that are included in the tree and to source files
        that don't end up involved in Asterisk itself.
      ........
        r369002 | kpfleming | 2012-06-15 10:57:14 -0500 (Fri, 15 Jun 2012) | 3 lines
        
        Add a script to enable finding source files without support-levels defined.
      ........
      
      Merged revisions 369001-369002 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 369005 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@369013 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      166b4e2b
  3. Jun 11, 2012
  4. May 31, 2012
  5. May 14, 2012
  6. May 10, 2012
  7. May 04, 2012
  8. Apr 12, 2012
  9. Apr 04, 2012
  10. Mar 08, 2012
  11. Feb 29, 2012
  12. Feb 27, 2012
  13. Feb 20, 2012
  14. Feb 13, 2012
  15. Feb 06, 2012
  16. Feb 01, 2012
  17. Jan 24, 2012
  18. Jan 09, 2012
    • Terry Wilson's avatar
      Replace direct access to channel name with accessor functions · 04da92c3
      Terry Wilson authored
      There are many benefits to making the ast_channel an opaque handle, from
      increasing maintainability to presenting ways to kill masquerades. This patch
      kicks things off by taking things a field at a time, renaming the field to
      '__do_not_use_${fieldname}' and then writing setters/getters and converting the
      existing code to using them. When all fields are done, we can move ast_channel
      to a C file from channel.h and lop off the '__do_not_use_'.
      
      This patch sets up main/channel_interal_api.c to be the only file that actually
      accesses the ast_channel's fields directly. The intent would be for any API
      functions in channel.c to use the accessor functions. No more monkeying around
      with channel internals. We should use our own APIs.
      
      The interesting changes in this patch are the addition of
      channel_internal_api.c, the moving of the AST_DATA stuff from channel.c to
      channel_internal_api.c (note: the AST_DATA stuff will have to be reworked to
      use accessor functions when ast_channel is really opaque), and some re-working
      of the way channel iterators/callbacks are handled so as to avoid creating fake
      ast_channels on the stack to pass in matching data by directly accessing fields
      (since "name" is a stringfield and the fake channel doesn't init the
      stringfields, you can't use the ast_channel_name_set() function). I went with
      ast_channel_name(chan) for a getter, and ast_channel_name_set(chan, name) for a
      setter.
      
      The majority of the grunt-work for this change was done by writing a semantic
      patch using Coccinelle ( http://coccinelle.lip6.fr/ ).
      
      Review: https://reviewboard.asterisk.org/r/1655/
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@350223 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      04da92c3
  19. Jan 06, 2012
  20. Jan 05, 2012
    • Richard Mudgett's avatar
      Make pbx_config.c use Gosub instead of Macro call for stdexten. · d6b359ff
      Richard Mudgett authored
      Users created by users.conf with hasvoicemail=yes have been documented as
      using a Gosub to stdexten since v1.6.0.  However, the code still generates
      dialplan to access stdexten as a Macro as documented in v1.4; which does
      not work with the newer extensions.conf.sample file.
      
      * Make generated dialplan access the stdexten dialplan with the documented
      Gosub instead of the older Macro style.
      
      (closes issue ASTERISK-18809)
      Reported by: Jay Allen
      Patches:
            gosub_patch-pbx_config.patch (license #6323) patch uploaded by Jay Allen (modified)
      Tested by: rmudgett
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@349782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      d6b359ff
  21. Nov 08, 2011
  22. Nov 07, 2011
    • Leif Madsen's avatar
      Allow built in variables to be used with dynamic weights. · 02f886b5
      Leif Madsen authored
      You can now use the built in variables , , and 
      within a dynamic weight. For example, this could be useful when you want
      to pass requested lookup number to the SHELL() function which could be
      used to execute a script to dynamically set the weight of the result.
      
      (Closes issue ASTERISK-13657)
      Reported by: Joel Vandal
      Tested by: Leif Madsen, Russell Bryant
      Patches:
           asterisk-1.6-dundi-varhead.patch uploaded by Joel Vandal (License #5374)
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@343693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      02f886b5
  23. Oct 25, 2011
  24. Oct 21, 2011
  25. Oct 17, 2011
  26. Jul 14, 2011
  27. Jul 05, 2011
    • Tilghman Lesher's avatar
      Merged revisions 326411 via svnmerge from · 7d179abf
      Tilghman Lesher authored
      https://origsvn.digium.com/svn/asterisk/branches/1.8
      
      ........
        r326411 | tilghman | 2011-07-05 17:08:29 -0500 (Tue, 05 Jul 2011) | 14 lines
        
        Add the attribute "type" to each "<use>" for menuselect.
        
        This matters only when autoconf fails to detect that weak linking is supported.
        External optional dependencies will become optional in both cases, as they are
        removed at compile time when not detected.  However, runtime-optional modules
        are made mandatory when weak linking is not found.  This change affects only
        the external optional dependencies; previously, they were incorrectly required
        when weak linking support was not detected.
        
        Patches:
        	20110702__issue18062__asterisk_trunk.diff.txt by tilghman (License #5003)
        
        Tested by: iasgoscouk
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      7d179abf
  28. Jun 24, 2011
    • Richard Mudgett's avatar
      Merged revisions 324849 via svnmerge from · 6209a4b1
      Richard Mudgett authored
      https://origsvn.digium.com/svn/asterisk/branches/1.8
      
      ........
        r324849 | rmudgett | 2011-06-24 15:46:01 -0500 (Fri, 24 Jun 2011) | 15 lines
        
        Syntax errors in dialplan do not display the file name.
        
        When issuing the CLI command "dialplan reload" syntax errors and warnings
        are displayed on the console.  The offending line number is displayed on
        the console, but the file name is not displayed.  Errors caught in
        main/config.c do display the file name.
        
        (closes issue ASTERISK-17985)
        Reported by: ulogic
        Patches:
              pbx_config.patch uploaded by ulogic (License #5685) modified format
        Tested by: rmudgett
        
        JIRA SWP-3554
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@324850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6209a4b1
  29. May 06, 2011
  30. May 05, 2011
  31. May 03, 2011
  32. Apr 26, 2011
Loading