Skip to content
Snippets Groups Projects
  1. Mar 02, 2016
    • Scott Griepentrog's avatar
      CHAOS: cleanup possible null vars on msg alloc failure · 0a3f0e85
      Scott Griepentrog authored
      In message.c, if msg_alloc fails to init the string field,
      vars may be null, so use a null tolerant cleanup.
      
      In res_pjsip_messaging.c, if msg_data_create fails, mdata
      will be null, so use a null tolerant cleanup.
      
      ASTERISK-25323
      
      Change-Id: Ic2d55c2c3750d5616e2a05ea92a19c717507ff56
      0a3f0e85
  2. Feb 29, 2016
    • Richard Mudgett's avatar
      bridge core: Add owed T.38 terminate when channel leaves a bridge. · c7d45b84
      Richard Mudgett authored
      The channel is now going to get T.38 terminated when it leaves the
      bridging system and the bridged peers are going to get T.38 terminated as
      well.
      
      ASTERISK-25582
      
      Change-Id: I77a9205979910210e3068e1ddff400dbf35c4ca7
      c7d45b84
    • Richard Mudgett's avatar
      channel api: Create is_t38_active accessor functions. · 0e296563
      Richard Mudgett authored
      ASTERISK-25582
      
      Change-Id: I69451920b122de7ee18d15bb231c80ea7067a22b
      0e296563
    • Richard Mudgett's avatar
      bridge_channel: Don't settle owed events on an optimization. · 86f7336c
      Richard Mudgett authored
      Local channel optimization could cause DTMF digits to be duplicated.
      Pending DTMF end events would be posted to a bridge when the local channel
      optimizes out and is replaced by the channel further down the chain.  When
      the real digit ends, the channel would get another DTMF end posted to the
      bridge.
      
      A -- LocalA;1/n -- LocalA;2/n -- LocalB;1 -- LocalB;2 -- B
      
      1) LocalA has the /n flag to prevent optimization.
      2) B is sending DTMF to A through the local channel chain.
      3) When LocalB optimizes out it can move B to the position of LocalB;1
      4) Without this patch, when B swaps with LocalB;1 then LocalB;1 would
      settle an owed DTMF end to the bridge toward LocalA;2.
      5) When B finally ends its DTMF it sends the DTMF end down the chain.
      6) Without this patch, A would hear the DTMF digit end when LocalB
      optimizes out and when B ends the original digit.
      
      ASTERISK-25582
      
      Change-Id: I1bbd28b8b399c0fb54985a5747f330a4cd2aa251
      86f7336c
    • Richard Mudgett's avatar
      channel.c: Route all control frames to a channel through the same code. · 128c9645
      Richard Mudgett authored
      Frame hooks can conceivably return a control frame in exchange for an
      audio frame inside ast_write().  Those returned control frames were not
      handled quite the same as if they were sent to ast_indicate().  Now it
      doesn't matter if you use ast_write() to send an AST_FRAME_CONTROL to a
      channel or ast_indicate().
      
      ASTERISK-25582
      
      Change-Id: I5775f41421aca2b510128198e9b827bf9169629b
      128c9645
    • George Joseph's avatar
      sorcery: Refactor create, update and delete to better deal with caches · 44229052
      George Joseph authored
      The ast_sorcery_create, update and delete function have been refactored
      to better deal with caches and errors.
      
      The action is now called on all non-caching wizards first. If ANY succeed,
      the action is called on all caching wizards and the observers are notified.
      This way we don't put something in the cache (or update or delete) before
      knowing the action was performed in at least 1 backend and we only call the
      observers once even if there were multiple writable backends.
      
      ast_sorcery_create was never adding to caches in the first place which
      was preventing contacts from getting added to a memory_cache when they
      were created.  In turn this was causing memory_cache to emit errors if
      the contact was deleted before being retrieved (which would have
      populated the cache).
      
      ASTERISK-25811 #close
      Reported-by: Ross Beer
      
      Change-Id: Id5596ce691685a79886e57b0865888458d6e7b46
      44229052
  3. Feb 17, 2016
    • Richard Mudgett's avatar
      cel.c: Fix mismatch in ast_cel_track_event() return type. · 30a49b8a
      Richard Mudgett authored
      The return type of ast_cel_track_event() is not large enough to return all
      64 potential bits of the event enable mask.  Fortunately, the defined CEL
      events do not really need all 64 bits and the return value is only used to
      determine if the requested CEL event is enabled.
      
      * Made the ast_cel_track_event() return 0 or 1 only so the return value
      can fit inside an int type instead of zero or a truncated 64 bit non-zero
      value.
      
      Change-Id: I783d932320db11a95c7bf7636a72b6fe2566904c
      30a49b8a
  4. Feb 04, 2016
    • Mark Michelson's avatar
      Check for OpenSSL defines before trying to use them. · 3b426a8b
      Mark Michelson authored
      The SSL_OP_NO_TLSv1_1 and SSL_OP_NO_TLSv1_2 defines did not exist prior
      to OpenSSL version 1.0.1. A recent commit attempts to, by default, set
      these options, which can cause problems on systems with older OpenSSL
      installations.
      
      This commit adds a configure script check for those defines and will not
      attempt to make use of those if they do not exist. We will print a
      warning urging the user to upgrade their OpenSSL installation if those
      defines are not present.
      
      Change-Id: I6a2eb9a43fd0738b404d8f6f2cf4b5c22d9d752d
      3b426a8b
  5. Feb 03, 2016
    • Joshua Colp's avatar
      AST-2016-001 http: Provide greater control of TLS and set modern defaults. · 0de74fad
      Joshua Colp authored
      This change exposes the configuration of various aspects of the TLS
      support and sets the default to the modern standards.
      
      The TLS cipher is now set to the best values according to the
      Mozilla OpSec team, different TLS versions can now be disabled, and
      the cipher order can be forced to be that of the server instead of
      the client.
      
      ASTERISK-24972 #close
      
      Change-Id: I0a10f2883f7559af5e48dee0901251dbf30d45b8
      0de74fad
    • Richard Mudgett's avatar
      AST-2016-003 udptl.c: Fix uninitialized values. · e67b445e
      Richard Mudgett authored
      Sending UDPTL packets to Asterisk with the right amount of missing
      sequence numbers and enough redundant 0-length IFP packets, can make
      Asterisk crash.
      
      ASTERISK-25603 #close
      Reported by: Walter Doekes
      
      ASTERISK-25742 #close
      Reported by: Torrey Searle
      
      Change-Id: I97df8375041be986f3f266ac1946a538023a5255
      e67b445e
  6. Feb 02, 2016
  7. Jan 28, 2016
  8. Jan 26, 2016
    • Joshua Colp's avatar
      config: Allow options to register when documentation is unavailable. · 1dfd104a
      Joshua Colp authored
      The config options framework is strict in that configuration options must
      be documented unless XML documentation support is not available. In
      practice this is useful as it ensures documentation exists however in
      off-nominal cases this can cause strange problems.
      
      If it is expected that a config option has a non-zero or non-empty
      default value but the config option documentation is unavailable
      this reasonable expectation will not be met. This can cause obscure
      crashes and weirdness depending on how the code handles it.
      
      This change tweaks the behavior to ensure that the config option
      is still allowed to register, apply default values, and be set when
      devmode is not enabled. If devmode is enabled then the option can
      NOT be set.
      
      This also does not remove the initial documentation error message that
      is output on load when registering the configuration option.
      
      ASTERISK-25725 #close
      
      Change-Id: Iec42fca6b35f31326c33fcdc25473f6fd7bc8af8
      1dfd104a
  9. Jan 22, 2016
  10. Jan 20, 2016
    • Diederik de Groot's avatar
      main/asterisk.c: ast_el_read_char · b259ac95
      Diederik de Groot authored
      Make sure buf[res] is not accessed at res=-1 (buffer underrun).
      Address Sanitizer will complain about this quite loudly.
      
      ASTERISK-24801 #close
      
      Change-Id: Ifcd7f691310815a31756b76067c56fba299d3ae9
      b259ac95
  11. Jan 19, 2016
  12. Jan 16, 2016
  13. Jan 15, 2016
    • Kevin Harwell's avatar
      bridge_basic: don't cache xferfailsound during an attended transfer · a5b38b60
      Kevin Harwell authored
      The xferfailsound was read from the channel at the beginning of the transfer,
      and that value is "cached" for the duration of the transfer. Therefore, changing
      the xferfailsound on the channel using the FEATURE() dialplan function does
      nothing once the transfer is under way.
      
      This makes it so the transfer code instead gets the xferfailsound configuration
      options from the channel when it is actually going to be used.
      
      This patch also fixes a potential memory leak of the props object as well as
      making sure the condition variable gets initialized before being destroyed.
      
      ASTERISK-25696 #close
      
      Change-Id: Ic726b0f54ef588bd9c9c67f4b0e4d787934f85e4
      a5b38b60
    • Richard Mudgett's avatar
      taskprocessor.c: Simplify ast_taskprocessor_get() return code. · d36c4d0b
      Richard Mudgett authored
      Change-Id: Id5bd18ef1f60ef8be453e677e98478298358a9d1
      d36c4d0b
    • Richard Mudgett's avatar
      astmm.c: Add more stats to CLI "memory show" commands. · 0a878020
      Richard Mudgett authored
      * Add freed regions totals to allocations and summary.
      
      * Add totals for all allocations and not just the selected allocations.
      
      Change-Id: I61d5a5112617b0733097f2545a3006a344b4032a
      0a878020
  14. Jan 14, 2016
    • Kevin Harwell's avatar
      bridge_basic: don't play an attended transfer fail sound after target hangs up · 84b30c5e
      Kevin Harwell authored
      If the attended transfer destination answers (picks call up or goes to
      voicemail) and then hangs up on the transferer then transferer hears the
      fail sound.
      
      This patch makes it so the fail sound is not played when the transfer
      destination/target hangs up after answering.
      
      ASTERISK-25697 #close
      
      Change-Id: I97f142fe4fc2805d1a24b7c16143069dc03d9ded
      84b30c5e
  15. Jan 13, 2016
    • Joshua Colp's avatar
      app: Queue hangup if channel is hung up during sub or macro execution. · 022423b9
      Joshua Colp authored
      This issue was exposed when executing a connected line subroutine.
      When connected or redirected subroutines or macros are executed it is
      expected that the underlying applications and logic invoked are fast
      and do not consume frames. In practice this constraint is not enforced
      and if not adhered to will cause channels to continue when they shouldn't.
      This is because each caller of the connected or redirected logic does not
      check whether the channel has been hung up on return. As a result the
      the hung up channel continues.
      
      This change makes it so when the API to execute a subroutine or
      macro is invoked the channel is checked to determine if it has hung up.
      If it has then a hangup is queued again so the caller will see it
      and stop.
      
      ASTERISK-25690 #close
      
      Change-Id: I1f9a8ceb1487df0389f0d346ce0f6dcbcaf476ea
      022423b9
  16. Jan 11, 2016
    • Kevin Harwell's avatar
      pbx: Deadlock between contexts container and context_merge locks · 7760029f
      Kevin Harwell authored
      Recent changes (ASTERISK-25394 commit 2bd27d12)
      introduced the possibility of a deadlock. Due to the mentioned modifications
      ast_change_hints now needs to keep both merge/delete and state callbacks from
      occurring while it executes. Unfortunately, sometimes ast_change_hints can be
      called with the contexts container locked. When this happens it's possible for
      another thread to grab the context_merge_lock before the thread calling into
      ast_change_hints does and then try to obtain the contexts container lock. This
      of course causes a deadlock between the two threads. The thread calling into
      ast_change_hints waits for the other thread to release context_merge_lock and
      the other thread is waiting on that one to release the contexts container lock.
      
      Unfortunately, there is not a great way to fix this problem. When hints change,
      the subsequent state callbacks cannot run at the same time as a merge/delete,
      nor when the usual state callbacks do. This patch alleviates the problem by
      having those particular callbacks (the ones run after a hint change) occur in a
      serialized task. By moving the context_merge_lock to a task it can now safely be
      attempted or held without a deadlock occurring.
      
      ASTERISK-25640 #close
      Reported by: Krzysztof Trempala
      
      Change-Id: If2210ea241afd1585dc2594c16faff84579bf302
      7760029f
  17. Jan 10, 2016
  18. Jan 09, 2016
  19. Jan 07, 2016
  20. Jan 05, 2016
Loading