Skip to content
Snippets Groups Projects
  1. Mar 16, 2017
  2. Mar 15, 2017
  3. Mar 14, 2017
    • Richard Mudgett's avatar
      pbx.c: Fix crash from malformed exten pattern. · f9970908
      Richard Mudgett authored
      Forgetting to indicate an exten is a pattern can cause a crash if the
      "pattern" has a character set range.  e.g., "9999[3-5]" The crash is due
      to a buffer overwrite because the '-' exten eye-candy wasn't removed as
      expected and overran the allocated space.
      
      The buffer overwrite is fixed two ways in this patch.
      
      1) Fix ext_strncpy() to distinguish between pattern and non-pattern
      extens.  Now '-' characters are removed when they are eye-candy and not
      when they are part of a pattern character set.  Since the function is
      private to pbx.c, the return value now returns the number of bytes written
      to the destination buffer instead of the strlen() of the final buffer so
      the callers that care don't need to add one.
      
      2) Fix callers to ext_strncpy() to supply the correct available buffer
      size of the destination buffer.
      
      ASTERISK-26668
      
      Change-Id: I555d97411140e47e0522684062d174fbe32aa84a
      f9970908
    • Richard Begg's avatar
      chan_iax2: Reload of iax peer results in loss of host address/port · 0dc007e9
      Richard Begg authored
      When using a non-dynamic peer address, build_peer() invalidates the
      peer address structure by setting the address family to unspecified.
      However, if dnsmgr is enabled, the subsequent call to ast_dnsmgr_lookup()
      will not amend the peer address if the cache is still valid, resulting
      in peer connectivity failures.
      To fix this, we call ast_dnsmgr_refresh() instead.
      
      ASTERISK-26865
      
      Change-Id: Id8a89a2f771ebbaf32255a35fe596a6dcb97a082
      0dc007e9
    • Matt Jordan's avatar
      configure: Don't use the progress bar with curl when downloading to stdout · 59130260
      Matt Jordan authored
      In some scenarios, such as when there may not be a terminal (such as
      inside a Docker container), curl will apparently direct the progress bar
      to stdout. This can cause extra data to be appended to a file curl'd
      down to stdout, resulting in md5 verification failures.
      
      This patch removes the progress bar, and tells curl to download the file
      silently.
      
      ASTERISK-26872 #close
      
      Change-Id: Ie860b020f627d4372b3e7ce9453de5faafeebe6c
      59130260
    • zuul's avatar
    • George Joseph's avatar
      RFC sdp: Initial SDP creation · 8470c2bd
      George Joseph authored
      * Added additional fields to ast_sdp_options.
      * Re-organized ast_sdp.
      * Updated field names to correspond to RFC4566 terminology.
      * Created allocs/frees for SDP children.
      * Created getters/setters for SDP children where appropriate.
      * Added ast_sdp_create_from_state.
      * Refactored res_sdp_translator_pjmedia for changes.
      
      Change-Id: Iefbd877af7f5a4d3c74deead1bff8802661b0d48
      8470c2bd
    • Joshua Colp's avatar
    • Matt Jordan's avatar
      configs/samples/hep.conf.sample: Clarify how the HEP stack works · 05713c36
      Matt Jordan authored
      This patch updates the documenation in hep.conf.sample to better specify
      how the various HEP modules interact.
      
      ASTERISK-26717 #close
      
      Change-Id: I337fb742a89e3ec5edc7fc7a7a0295218d841124
      05713c36
    • Matt Jordan's avatar
      funcs/func_devstate: Remove new line in Device field of during module load · 0ded269b
      Matt Jordan authored
      During module loading of func_devstate, Asterisk emits the current
      device state of all Custom device states currently stored in the AstDB.
      This was erroneously including a new line character ('\n') to the end of
      the device state, causing two new lines to be emitted in
      DeviceStateChange AMI events.
      
      Note that this only happened for those device state changes that
      occurred during startup. Regular device state changes for Custom device
      states are handled elsewhere, and did not have the newline.
      
      ASTERISK-26643 #close
      Reported by: Roman Bedros
      Tested by: Matt Jordan
      patches:
        ami_devstate.diff uploaded by Roman Bedros (License 6842)
      
      Change-Id: I1f4c02fc79c448d43bf725f5039c83d9611d7d93
      0ded269b
    • Matt Jordan's avatar
      main/stasis_cache: Demote the ERROR message when removing a nonexistent item · b03b7271
      Matt Jordan authored
      This patch demotes the ERROR message that is displayed when a
      nonexistent item is removed from the Stasis cache. The genesis of this
      demotion is due to chan_sip's realtime peers and their interaction with
      Asterisk's core ast_endpoint code, but ostensibly it could happen from
      other channel drivers as well.
      
      Since Mark Michelson already did an excellent job of explaining on this
      issue, it is quoted here for posterity:
      
      "Internally, when a realtime peer is retrieved, Asterisk creates an
      ast_endpoint structure. When that peer is destroyed, the ast_endpoint is
      destroyed as well. Part of the destruction of the ast_endpoint involves
      clearing the Stasis cache of all information about that endpoint. The
      problem here is that the act of creating the ast_endpoint is not enough
      to actually put any information in the Stasis cache. Instead, something
      has to happen, such as a state change, in order for the Stasis cache to
      have any information about that endpoint. When a device registers,
      chan_sip creates an ast_endpoint structure, processes the REGISTER, and
      then destroys the ast_endpoint. When the ast_endpoint is destroyed,
      there is nothing to destroy in the Stasis cache, so an error message is
      emitted. When you use rtcachefriends, ast_endpoint structures persist
      for the lifetime of the module and so you do not see this error
      message."
      
      ASTERISK-25237 #close
      
      Change-Id: I53cebc6b4a897a1ab9564182b75c177780feff70
      b03b7271
    • Matt Jordan's avatar
      res_pjsip_endpoint_identifier_ip: Clean up a spaces/tabs issue · 2d7e68c0
      Matt Jordan authored
      Tabs > spaces. Always.
      
      Change-Id: I899ff662361c7ab0327173bd7851a67b53dd65f1
      2d7e68c0
  4. Mar 13, 2017
    • Joshua Colp's avatar
      chan_pjsip: Don't assume a session will have a channel. · 12460b05
      Joshua Colp authored
      When querying for PJSIP specific information using the dialplan
      function CHANNEL() it is possible that the underlying session
      will no longer have a channel associated with it. This is
      most likely to occur when the RTCP HEP module attempts to get
      the channel name. If this happens then a crash will occur.
      
      This change just adds a check that the channel exists on the
      session before querying it.
      
      ASTERISK-26857
      
      Change-Id: I113479cffff6ae64cf8ed089e9e1565223426f01
      12460b05
  5. Mar 11, 2017
  6. Mar 10, 2017
  7. Mar 09, 2017
  8. Mar 08, 2017
Loading