Skip to content
Snippets Groups Projects
  1. Jan 16, 2008
  2. Jan 15, 2008
    • Russell Bryant's avatar
      Merged revisions 98946 via svnmerge from · 2cdf636c
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r98946 | russell | 2008-01-15 17:50:10 -0600 (Tue, 15 Jan 2008) | 11 lines
      
      Change a buffer in check_auth() to be a thread local dynamically allocated
      buffer, instead of a massive buffer on the stack.  This fixes a crash reported
      by Qwell due to running out of stack space when building with LOW_MEMORY defined.
      
      On a very related note, the usage of BUFSIZ in various places in chan_sip is
      arbitrary and careless.  BUFSIZ is a system specific define.  On my machine,
      it is 8192, but by definition (according to google) could be as small as 256.  
      So, this buffer in check_auth was 16 kB.  We don't even support SIP messages 
      larger than 4 kB!  Further usage of this define should be avoided, unless it 
      is used in the proper context.
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98948 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      2cdf636c
    • Tilghman Lesher's avatar
      Add the "filter" keyword · 799246da
      Tilghman Lesher authored
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98947 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      799246da
    • Russell Bryant's avatar
      Clean up something I did for ABI compatability in 1.4 · 25e1c74b
      Russell Bryant authored
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      25e1c74b
    • Russell Bryant's avatar
      Merged revisions 98943 via svnmerge from · 4fb04cb5
      Russell Bryant authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r98943 | russell | 2008-01-15 17:26:52 -0600 (Tue, 15 Jan 2008) | 25 lines
      
      Commit a fix for some memory access errors pointed out by the valgrind2.txt
      output on issue #11698.
      
      The issue here is that it is possible for an instance of a translator to get
      destroyed while the frame allocated as a part of the translator is still being
      processed.  Specifically, this is possible anywhere between a call to ast_read()
      and ast_frame_free(), which is _a lot_ of places in the code.  The reason this
      happens is that the channel might get masqueraded during this time.  During a
      masquerade, existing translation paths get destroyed.
      
      So, this patch fixes the issue in an API and ABI compatible way.  (This one is
       for you, paravoid!)
      
      It changes an int in ast_frame to be used as flag bits.  The 1 bit is still used
      to indicate that the frame contains timing information.  Also, a second flag has
      been added to indicate that the frame came from a translator.  When a frame with
      this flag gets released and has this flag, a function is called in translate.c to
      let it know that this frame is doing being processed.  At this point, the flag gets
      cleared.  Also, if the translator was requested to be destroyed while its internal
      frame still had this flag set, its destruction has been deffered until it finds out
      that the frame is no longer being processed.
      
      Admittedly, this feels like a hack.  But, it does fix the issue, and I was not able 
      to think of a better solution ...
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      4fb04cb5
    • Joshua Colp's avatar
      Merged revisions 98934 via svnmerge from · 9a76fbf9
      Joshua Colp authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r98934 | file | 2008-01-15 16:08:43 -0400 (Tue, 15 Jan 2008) | 4 lines
      
      Based on the boundary found move over the correct amount.
      (closes issue #11750)
      Reported by: tasker
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      9a76fbf9
  3. Jan 14, 2008
  4. Jan 13, 2008
    • Russell Bryant's avatar
      - Break up the Misc. section a bit with a new section for Misc. New Modules · 17ed33fc
      Russell Bryant authored
      - Change spacing a bit in some places for consistent indentation
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      17ed33fc
    • Russell Bryant's avatar
      Bring in the code from team/russell/jack/. · f32aec9f
      Russell Bryant authored
      Add a new module, app_jack, which provides interfaces to JACK, the Jack
      Audio Connection Kit (http://www.jackaudio.org/).  Two interfaces are
      provided; there is a JACK() application, and a JACK_HOOK() function.  Both
      interfaces create an input and output JACK port.  The application makes
      these ports the endpoint of the call.  The audio coming from the channel
      goes out the output port and whatever comes back in on the input port is
      what gets sent to the channel.  The JACK_HOOK() function turns on a JACK
      audiohook on the channel.  This lets you run the audio coming from a
      channel through JACK, and whatever comes back in is what gets forwarded
      on as the channel's audio.  This is very useful for building custom
      vocoders or doing recording or analysis of the channel's audio in another
      application.
      
      In case anyone is curious, the platform that inspired me to write this is
      PureData (http://puredata.info/).  I wrote these JACK interfaces so that I
      could use Pd to do interesting things with the audio of phone calls ...
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f32aec9f
Loading