Skip to content
Snippets Groups Projects
  1. Apr 09, 2013
  2. Apr 08, 2013
  3. Apr 06, 2013
  4. Apr 05, 2013
    • Michael L. Young's avatar
      Fix For Not Overriding The Default Settings In chan_sip · 03286cf2
      Michael L. Young authored
      The initial report was that the "nat" setting in the [general] section was not
      having any effect in overriding the default setting.  Upon confirming that this
      was happening and looking into what was causing this, it was discovered that
      other default settings would not be overriden as well.
      
      This patch works similar to what occurs in build_peer().  We create a temporary
      ast_flags structure and using a mask, we override the default settings with
      whatever is set in the [general] section.
      
      In the bug report, the reporter who helped to test this patch noted that the
      directmedia settings were being overriden properly as well as the nat settings.
      
      This issue is also present in Asterisk 1.8 and a separate patch will be applied
      to it.
      
      (issue ASTERISK-21225)
      Reported by: Alexandre Vezina
      Tested by: Alexandre Vezina, Michael L. Young
      Patches:
        asterisk-21225-handle-options-default-prob_v4.diff
      						Michael L. Young (license 5026)
      
      Review: https://reviewboard.asterisk.org/r/2385/
      ........
      
      Merged revisions 384827 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@384828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      03286cf2
  5. Apr 04, 2013
  6. Apr 03, 2013
  7. Apr 02, 2013
  8. Apr 01, 2013
  9. Mar 30, 2013
  10. Mar 29, 2013
  11. Mar 28, 2013
  12. Mar 27, 2013
  13. Mar 26, 2013
    • Joshua Colp's avatar
      7aab90b3
    • Matthew Jordan's avatar
      Resolve deadlock between SIP registration and channel based functions · 58ee2b7d
      Matthew Jordan authored
      In r373424, several reentrancy problems in chan_sip were addressed. As a
      result, the SIP channel driver is now properly locking the channel driver
      private information in certain operations that it wasn't previously. This
      exposed two latent problems either in register_verify or by functions called
      by register_verify. This includes:
       * Holding the private lock while calling sip_send_mwi_to_peer. This can create
         a new sip_pvt via sip_alloc, which will obtain the channel container lock.
         This is a locking inversion, as any channel related lock must be obtained
         prior to obtaining the SIP channel technology private lock.
      
         Note that this issue was already fixed in Asterisk 11.
      
       * Holding the private lock while calling sip_poke_peer. In the same vein as
         sip_send_mwi_to_peer, sip_poke_peer can create a new SIP private, causing
         the same locking inversion.
      
      Note that this locking inversion typically occured when CLI commands were run
      while a SIP REGISTER request was being processed, as many CLI commands (such
      as 'sip show channels', 'core show channels', etc.) have to obtain the channel
      container lock.
      
      (issue ASTERISK-21068)
      Reported by: Nicolas Bouliane
      
      (issue ASTERISK-20550)
      Reported by: David Brillert
      
      (issue ASTERISK-21314)
      Reported by: Badalian Vyacheslav
      
      (issue ASTERISK-21296)
      Reported by: Gabriel Birke
      ........
      
      Merged revisions 383863 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 383878 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383879 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      58ee2b7d
    • Matthew Jordan's avatar
      Resolve deadlock between pending CDR and batch CDR locks · ec7de8ed
      Matthew Jordan authored
      r375757 attempted to resolve a race condition between multiple submissions of
      CDRs while in batch mode from attempting to destroy the scheduled batch
      submission by extending the batch CDR lock. Unfortunately, this causes a
      deadlock between the pending CDR lock and the batch CDR lock. This patch
      resolves the intent of r375757 by simply providing a new lock that protects
      the scheduling of the batches. The original batch CDR lock is kept to protect
      manipulation of the batch CDR settings, but has been placed such that it
      is not held when the pending lock is held.
      
      Thanks to Chase Venters for providing lock analysis on the issue.
      
      (issue ASTERISK-21162)
      Reported by: Chase Venters
      ........
      
      Merged revisions 383839 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 383840 from http://svn.asterisk.org/svn/asterisk/branches/11
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383841 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ec7de8ed
    • Russell Bryant's avatar
      Suppress compiler warning. · 88874a95
      Russell Bryant authored
      This code caused a compiler warning when --enable-dev-mode was not used.
      The warning was that this variable was set but not used.  That was indeed
      the case as the only place this is used is as an argument to SKINNY_DEBUG
      which is compiled out when not in dev mode.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383838 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      88874a95
Loading