Skip to content
Snippets Groups Projects
  1. Apr 12, 2017
    • George Joseph's avatar
      modules: change module LOAD_FAILUREs to LOAD_DECLINES · 747beb1e
      George Joseph authored
      In all non-pbx modules, AST_MODULE_LOAD_FAILURE has been changed
      to AST_MODULE_LOAD_DECLINE.  This prevents asterisk from exiting
      if a module can't be loaded.  If the user wishes to retain the
      FAILURE behavior for a specific module, they can use the "require"
      or "preload-require" keyword in modules.conf.
      
      A new API was added to logger: ast_is_logger_initialized().  This
      allows asterisk.c/check_init() to print to the error log once the
      logger subsystem is ready instead of just to stdout.  If something
      does fail before the logger is initialized, we now print to stderr
      instead of stdout.
      
      Change-Id: I5f4b50623d9b5a6cb7c5624a8c5c1274c13b2b25
      747beb1e
  2. Nov 11, 2016
    • Timo Teräs's avatar
      addons/chan_mobile: do not use strerror_r · 939dcf66
      Timo Teräs authored
      The two reasons why it might be used are that some systems do not
      implement strerror in thread safe manner, and that strerror_r returns
      the error code in the string in case there's no error message.
      
      However, all of asterisk elsewhere uses strerror() and assumes it
      to be thread safe. And in chan_mobile the errno is also explicitly
      printed so neither of the above reasons are valid.
      
      The reasoning to remove usage is that there are actually two versions
      of strerror_r: XSI and GNU. They are incompatible in their return
      value, and there's no easy way to figure out which one is being
      used. glibc gives you the GNU version if _GNU_SOURCE is defined,
      but the same feature test macro is needed for other symbols. On
      all other systems you assumedly get XSI symbol, and compilation warnings
      as well as non-working error printing.
      
      Thus the easiest solution is to just remove strerror_r and use
      strerror as rest of the code. Alternative is to introduce ast_strerror
      in separate translation unit so it can request the XSI symbol in
      glibc case, and replace all usage of strerror.
      
      Change-Id: I84d35225b5642d85d48bc35fdf399afbae28a91d
      939dcf66
  3. 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
  4. Nov 09, 2015
  5. May 13, 2015
  6. 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
  7. Nov 09, 2014
  8. Jul 25, 2014
  9. Jul 20, 2014
  10. 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
  11. Dec 18, 2013
  12. Dec 05, 2013
  13. Dec 03, 2013
  14. Oct 03, 2013
  15. Jul 17, 2013
  16. Jan 17, 2013
  17. Jan 16, 2013
    • Automerge script's avatar
      Merged revisions 379180 via svnmerge from · 4986651f
      Automerge script authored
      file:///srv/subversion/repos/asterisk/trunk
      
      ................
        r379180 | mjordan | 2013-01-15 22:14:38 -0600 (Tue, 15 Jan 2013) | 27 lines
        
        Fix parsing SMSSRC for SMS messages
        
        The parser for SMS messages would incorrectly parse out the from number.
        The parsing would incorrectly start scanning for the from number at the
        same index as the first double quote ("); this would inadvertently cause
        it to treat the first double quote as the terminating double quote for
        the from number as well.
        
        The SMSSRC should now populate correctly.
        
        (closes issue ASTERISK-16822)
        Reported by: menschentier
        Tested by: Jonas Falck
        patches:
         fixSMSSRC.patch uploaded by jonax (license 6320)
        
        (closes issue ASTERISK-19153)
        Reported by: Panos Gkikakis
        patches:
          sms-sender-fix.diff uploaded by roeften (license 5884)  
        ........
        
        Merged revisions 379178 from http://svn.asterisk.org/svn/asterisk/branches/1.8
        ........
        
        Merged revisions 379179 from http://svn.asterisk.org/svn/asterisk/branches/11
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379189 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4986651f
    • Matthew Jordan's avatar
      Fix parsing SMSSRC for SMS messages · 02e70d78
      Matthew Jordan authored
      The parser for SMS messages would incorrectly parse out the from number.
      The parsing would incorrectly start scanning for the from number at the
      same index as the first double quote ("); this would inadvertently cause
      it to treat the first double quote as the terminating double quote for
      the from number as well.
      
      The SMSSRC should now populate correctly.
      
      (closes issue ASTERISK-16822)
      Reported by: menschentier
      Tested by: Jonas Falck
      patches:
       fixSMSSRC.patch uploaded by jonax (license 6320)
      
      (closes issue ASTERISK-19153)
      Reported by: Panos Gkikakis
      patches:
        sms-sender-fix.diff uploaded by roeften (license 5884)  
      ........
      
      Merged revisions 379178 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 379179 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@379180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      02e70d78
    • Automerge script's avatar
      Merged revisions 379144,379147 via svnmerge from · 346e7740
      Automerge script authored
      file:///srv/subversion/repos/asterisk/trunk
      
      ................
        r379144 | mjordan | 2013-01-15 17:54:34 -0600 (Tue, 15 Jan 2013) | 17 lines
        
        Add busy detection to chan_mobile
        
        From the patch author:
        
        "First this patch adds general support for busy detection. It also adds support
         for the ECAM command at Sony Ericsson phones and also signals busy when only
         early media was received but the call got not answered."
        
        Review: https://reviewboard.asterisk.org/r/323
        
        (closes issue ASTERISK-14527)
        Reported by: Artem Makhutov
        Tested by: Artem Makhutov
        patches:
          busy-full5.patch uploaded by artem (license 5757)
      ................
        r379147 | mjordan | 2013-01-15 18:16:22 -0600 (Tue, 15 Jan 2013) | 25 lines
        
        Set the INVALID_EXTEN channel variable when chan_misdn forces the 'i' extension
        
        The chan_misdn channel driver will send a channel with an invalid destination
        to the 'i' extension itself if said extension can be reached. It forgot,
        however, to set the INVALID_EXTEN channel variable when it bounces the channel
        to this extension. Dialplan writers everywhere moaned at yet another
        inconsistency.
        
        This is yet another example of why duplicating logic in multiple places results
        in bugs that stick around in Jira for just under three years.
        
        Yes: ASTERISK-15456 was created on January 18th, 2010. Patch committed on
        January 15th, 2013. Ouch.
        
        (closes issue ASTERISK-15456)
        Reported by: Thomas Omerzu
        patches:
          chan_misdn_invalid.patch2 uploaded by Thomas Omerzu (license 5927)
        ........
        
        Merged revisions 379145 from http://svn.asterisk.org/svn/asterisk/branches/1.8
        ........
        
        Merged revisions 379146 from http://svn.asterisk.org/svn/asterisk/branches/11
      ................
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379156 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      346e7740
  18. Jan 15, 2013
  19. Oct 14, 2012
  20. Sep 22, 2012
    • Andrew Latham's avatar
      Doxygen Updates Janitor Work · fd98835f
      Andrew Latham authored
      * Whitespace, doc-blocks, spelling, case, missing and incorrect tags.
      * Add cleanup to Makefile for the Doxygen configuration update
      * Start updating Doxygen configuration for cleaner output
      * Enable inclusion of configuration files into documentation
      * remove mantisworkflow...
      * update documentation README
      * Add markup to Tilghman's email and talk with him about updating his email, he knows...
      * no code changes on this commit other than the mentioned Makefile change
      
      (issue ASTERISK-20259)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fd98835f
  21. Jul 31, 2012
  22. Apr 19, 2012
    • Matthew Jordan's avatar
      Fix a variety of potential buffer overflows · f7829006
      Matthew Jordan authored
      * chan_mobile: Fixed an overrun where the cind_state buffer (an integer array
        of size 16) would be overrun due to improper bounds checking. At worst, the
        buffer can be overrun by a total of 48 bytes (assuming 4-byte integers),
        which would still leave it within the allocated memory of struct hfp.  This
        would corrupt other elements in that struct but not necessarily cause any
        further issues.
      
      * app_sms: The array imsg is of size 250, while the array (ud) that the data
        is copied into is of size 160.  If the size of the inbound message is 
        greater then 160, up to 90 bytes could be overrun in ud.  This would corrupt
        the user data header (array udh) adjacent to ud.
      
      * chan_unistim: A number of invalid memmoves are corrected.  These would move
        data (which may or may not be valid) into the ends of these buffers.
      
      * asterisk: ast_console_toggle_loglevel does not check that the console log
        level being set is less then or equal to the allowed log levels of 32.
      
      * format_pref: In ast_codec_pref_prepend, if any occurrence of the specified
        codec is not found, the value used to index into the array pref->order
        would be one greater then the maximum size of the array.
      
      * jitterbuf: If the element being placed into the jitter buffer lands in the
        last available slot in the jitter history buffer, the insertion sort attempts
        to move the last entry in the buffer into one slot past the maximum length
        of the buffer.  Note that this occurred for both the min and max jitter
        history buffers.
      
      * tdd: If a read from fsk_serial returns a character that is greater then 32,
        an attempt to read past one of the statically defined arrays containing the
        values that character maps to would occur.
      
      * localtime: struct ast_time and tm are not the same size - ast_time is larger,
        although it contains the elements of tm within it in the same layout.  Hence,
        when using memcpy to copy the contents of tm into ast_time, the size of tm
        should be used, as opposed to the size of ast_time.
      
      * extconf: this treats ast_timing's minmask array as if it had a length of 48,
        when it has defined the size of the array as 24.  pbx.h defines minmask as
        having a size of 48.
      
      (issue ASTERISK-19668)
      Reported by: Matt Jordan
      ........
      
      Merged revisions 362485 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 362496 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f7829006
  23. Apr 06, 2012
  24. Feb 24, 2012
  25. Feb 20, 2012
  26. Feb 13, 2012
  27. Feb 08, 2012
  28. Feb 01, 2012
  29. Jan 24, 2012
  30. Jan 14, 2012
  31. 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
  32. Aug 29, 2011
  33. Jul 14, 2011
  34. May 25, 2011
  35. Feb 03, 2011
  36. Dec 20, 2010
Loading