Skip to content
Snippets Groups Projects
  1. May 07, 2010
    • Jeff Peeler's avatar
      Fix deadlock in sig_pri when hanging up. · 356b0908
      Jeff Peeler authored
      The pri_dchannel thread currently violates locking order by locking the private
      and then attempting to queue a frame, which needs to lock the channel. Queueing
      a frame is unneccesary though and is actually a regression since sig_pri.
      All the places that currently use ast_softhangup_nolock now will just set the
      softhangup value directly as before.
      
      (closes issue #17216)
      Reported by: lmsteffan
      Patches: 
            bug17216.patch uploaded by jpeeler (license 325)
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      356b0908
  2. May 06, 2010
    • Richard Mudgett's avatar
      Some code optimizations. · 6f03bf4a
      Richard Mudgett authored
      * Made more places use pri_queue_control() instead of pri_queue_frame()
      and a local frame variable.
      
      * Made pri_queue_frame() use sig_pri_lock_owner().  pri_queue_frame() no
      longer releases the libpri access lock unless it is required.
      
      * Made the pri_queue_frame() and pri_queue_control() parameter list
      similar to sig_pri_lock_owner().
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6f03bf4a
    • Jeff Peeler's avatar
      Merged revisions 261735 via svnmerge from · 8312f25b
      Jeff Peeler authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r261735 | jpeeler | 2010-05-06 15:10:59 -0500 (Thu, 06 May 2010) | 8 lines
        
        Only allow the operator key to be accepted after leaving a voicemail.
        
        Or rather disallow the operator key from being accepted when not offered,
        such as after finishing a recording from within the mailbox options menu.
        
        ABE-2121
        SWP-1267
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8312f25b
    • Jason Parker's avatar
      Merged revisions 261608 via svnmerge from · 8d42a80b
      Jason Parker authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r261608 | qwell | 2010-05-06 11:56:02 -0500 (Thu, 06 May 2010) | 4 lines
        
        Use the versioned MOH tarballs, now that we have them.
        
        This makes for more reproducibility.  Prompted by a discussion in #asterisk-dev
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261609 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8d42a80b
    • Tilghman Lesher's avatar
      Permit more lines within a SIP body to be parsed. · ba9b0d95
      Tilghman Lesher authored
      The example given within the related issue showed 120 lines, which was mostly
      a result of the body being XML.
      
      (closes issue #17179)
       Reported by: khw
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261560 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ba9b0d95
    • Russell Bryant's avatar
      Add test case for removing random elements from a heap. · be77c44d
      Russell Bryant authored
      I modified the original patch for trunk to use the unit test API.
      
      (issue #17277)
      Reported by: cappucinoking
      Patches:
            test_heap.diff uploaded by cappucinoking (license 1036)
      Tested by: cappucinoking, russell
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261500 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      be77c44d
    • Russell Bryant's avatar
      Fix handling of removing nodes from the middle of a heap. · 12631bc3
      Russell Bryant authored
      This bug surfaced in 1.6.2 and does not affect code in any other released
      version of Asterisk.  It manifested itself as SIP qualify not happening when
      it should, causing peers to go unreachable.  This was debugged down to scheduler
      entries sometimes not getting executed when they were supposed to, which was in
      turn caused by an error in the heap code.
      
      The problem only sometimes occurs, and it is due to the logic for removing an entry
      in the heap from an arbitrary location (not just popping off the top).  The scheduler
      performs this operation frequently when entries are removed before they run (when
      ast_sched_del() is used).
      
      In a normal pop off of the top of the heap, a node is taken off the bottom,
      placed at the top, and then bubbled down until the max heap property is restored
      (see max_heapify()).  This same logic was used for removing an arbitrary node
      from the middle of the heap.  Unfortunately, that logic is full of fail.  This
      patch fixes that by fully restoring the max heap property when a node is thrown
      into the middle of the heap.  Instead of just pushing it down as appropriate, it
      first pushes it up as high as it will go, and _then_ pushes it down.
      
      Lastly, fix a minor problem in ast_heap_verify(), which is only used for
      debugging.  If a parent and child node have the same value, that is not an
      error.  The only error is if a parent's value is less than its children.
      
      A huge thanks goes out to cappucinoking for debugging this down to the scheduler,
      and then producing an ast_heap test case that demonstrated the breakage.  That
      made it very easy for me to focus on the heap logic and produce a fix.  Open source
      projects are awesome.
      
      (closes issue #16936)
      Reported by: ib2
      Tested by: cappucinoking, crjw
      
      (closes issue #17277)
      Reported by: cappucinoking
      Patches:
            heap-fix.rev2.diff uploaded by russell (license 2)
      Tested by: cappucinoking, russell
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      12631bc3
    • Tzafrir Cohen's avatar
      When failing to configure, don't destroy 'cfg' twice · 6b2e51b1
      Tzafrir Cohen authored
      Fixes a crash when some config section had an incorrect channel config.
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      6b2e51b1
  3. May 05, 2010
  4. May 04, 2010
  5. May 03, 2010
  6. May 02, 2010
  7. Apr 30, 2010
  8. Apr 29, 2010
  9. Apr 28, 2010
Loading