Skip to content
Snippets Groups Projects
  1. Jan 08, 2009
  2. Jan 07, 2009
  3. Jan 06, 2009
  4. Jan 05, 2009
    • Mark Michelson's avatar
      Merged revisions 167179 via svnmerge from · 129e8a04
      Mark Michelson authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r167179 | mmichelson | 2009-01-05 10:51:59 -0600 (Mon, 05 Jan 2009) | 41 lines
      
      A couple of changes to T.38 SDP attribute handling
      
      There are some boolean attributes for T.38 such
      as T38FaxFillBitRemoval, T38FaxTranscodingMMR, and
      T38FaxTranscodingJBIG. By simply being present, we
      should treat these as a "true" value. The current
      code, however, was requiring a 1 or 0 as the value
      of the attribute in order to parse it. This is due
      to the fact that there are some T.38 endpoints and
      gateways that also transmit this information
      incorrectly. This patch follows the "be liberal in
      what you accept and strict in what you send"
      philosophy by accepting both the correctly- and 
      incorrectly-formatted attributes, but only sending
      information as it is supposed to be sent.
      
      It was also discovered that a particular type of 
      T.38 gateway sends some non-standard T.38 SDP
      attributes. Instead of using T38FaxMaxDatagram
      and T38MaxBitRate, it used T38MaxDatagram and
      T38FaxMaxRate respectively. We now will properly
      accept these attributes as well.
      
      Note that there are a lot of patches cited in
      the below commit message template. This is
      because the person who submitted these patches is
      an awesome person and wrote 1.4, 1.6.0, and 1.6.1
      variants.
      
      (closes issue #13976)
      Reported by: linulin
      Patches:
           chan_sip.c.1.4-update1.diff uploaded by arcivanov (license 648)
      	 chan_sip.c.1.6.0-update1.diff uploaded by arcivanov (license 648)
      	 chan_sip.c.1.6.1-update1.diff uploaded by arcivanov (license 648)
      	 chan_sip.c.1.4-relaxedT38_update1.diff uploaded by arcivanov (license 648)
      	 chan_sip.c.1.6.0-relaxedT38_update1.diff uploaded by arcivanov (license 648)
      	 chan_sip.c.1.6.1-relaxedT38_update1.diff uploaded by arcivanov (license 648)
      Tested by: arcivanov
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@167180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      129e8a04
    • Tilghman Lesher's avatar
      More clearly explain that quote marks are no longer necessary. · d13e2364
      Tilghman Lesher authored
      (closes issue #13718)
       Reported by: davidw
       Patches: 
             20081020__bug13718.diff.txt uploaded by Corydon76 (license 14)
       Tested by: blitzrage
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@167176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      d13e2364
  5. Jan 03, 2009
  6. Dec 31, 2008
  7. Dec 30, 2008
  8. Dec 29, 2008
    • Mark Michelson's avatar
      Update app_queue to deal with the removal of AST_PBX_KEEPALIVE · ff20b911
      Mark Michelson authored
      When placing a call to a queue which ran a gosub on the member's
      channel, Asterisk would crash every time, stemming from the fact
      that the member's channel was being hung up unexpectedly when the
      Gosub completed. The necessary change was pretty much copied and
      pasted from app_dial's similar changes made last week.
      
      I also took the opportunity to change a LOG_DEBUG message in
      app_dial to use ast_debug. I am guessing this was due to a direct
      merge from 1.4 that was not corrected to use trunk's preferred
      syntax.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166861 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ff20b911
  9. Dec 28, 2008
  10. Dec 24, 2008
  11. Dec 23, 2008
    • Tilghman Lesher's avatar
      Allow semicolons and extended characters in user-specified SIP headers. · 8c2030b4
      Tilghman Lesher authored
      (closes issue #14110)
       Reported by: gork
       Patches: 
             20081222__bug14110__2.diff.txt uploaded by Corydon76 (license 14)
       Tested by: gork, putnopvut
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      8c2030b4
    • Steve Murphy's avatar
      Merged revisions 166093 via svnmerge from · aa905e34
      Steve Murphy authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      In order to merge this 1.4 patch into trunk,
      I had to resolve some conflicts and wait for
      Russell to make some changes to res_agi.
      I re-ran all the tests; 39 calls in all, and
      made fairly careful notes and comparisons: I
      don't want this to blow up some aspect of 
      asterisk; I completely removed the KEEPALIVE
      from the pbx.h decls. The first 3 scenarios
      involving feature park; feature xfer to 700;
      hookflash park to Park() app call all behave
      the same, don't appear to leave hung channels,
      and no crashes.
      
      ........
        r166093 | murf | 2008-12-19 15:30:32 -0700 (Fri, 19 Dec 2008) | 131 lines
        
        This merges the masqpark branch into 1.4
        
        These changes eliminate the need for (and use of)
        the KEEPALIVE return code in res_features.c;
        There are other places that use this result code
        for similar purposes at a higher level, these appear
        to be left alone in 1.4, but attacked in trunk.
        
        The reason these changes are being made in 1.4, is
        that parking ends a channel's life, in some situations,
        and the code in the bridge (and some other places),
        was not checking the result code properly, and dereferencing
        the channel pointer, which could lead to memory corruption
        and crashes.
        
        Calling the masq_park function eliminates this danger 
        in higher levels.
        
        A series of previous commits have replaced some parking calls
        with masq_park, but this patch puts them ALL to rest,
        (except one, purposely left alone because a masquerade
        is done anyway), and gets rid of the code that tests
        the KEEPALIVE result, and the NOHANGUP_PEER result codes.
        
        While bug 13820 inspired this work, this patch does
        not solve all the problems mentioned there.
        
        I have tested this patch (again) to make sure I have
        not introduced regressions. 
        
        Crashes that occurred when a parked party hung up
        while the parking party was listening to the numbers
        of the parking stall being assigned, is eliminated.
        
        These are the cases where parking code may be activated:
        
        1. Feature one touch (eg. *3)
        2. Feature blind xfer to parking lot (eg ##700)
        3. Run Park() app from dialplan (eg sip xfer to 700)
           (eg. dahdi hookflash xfer to 700)
        4. Run Park via manager.
        
        The interesting testing cases for parking are:
        I. A calls B, A parks B
            a. B hangs up while A is getting the numbers announced.
            b. B hangs up after A gets the announcement, but 
               before the parking time expires
            c. B waits, time expires, A is redialed,
               A answers, B and A are connected, after
               which, B hangs up.
            d. C picks up B while still in parking lot.
        
        II. A calls B, B parks A
            a. A hangs up while B is getting the numbers announced.
            b. A hangs up after B gets the announcement, but 
               before the parking time expires
            c. A waits, time expires, B is redialed,
               B answers, A and B are connected, after
               which, A hangs up.
            d. C picks up A while still in parking lot.
        
        Testing this throroughly involves acting all the permutations
        of I and II, in situations 1,2,3, and 4.
        
        Since I added a few more changes (ALL references to KEEPALIVE in the bridge
        code eliimated (I missed one earlier), I retested
        most of the above cases, and no crashes.
        
        H-extension weirdness.
        
        Current h-extension execution is not completely
        correct for several of the cases.
        
        For the case where A calls B, and A parks B, the
        'h' exten is run on A's channel as soon as the park
        is accomplished. This is expected behavior.
        
        But when A calls B, and B parks A, this will be
        current behavior:
        
        After B parks A, B is hung up by the system, and
        the 'h' (hangup) exten gets run, but the channel
        mentioned will be a derivative of A's...
        
        Thus, if A is DAHDI/1, and B is DAHDI/2,
        the h-extension will be run on channel
        Parked/DAHDI/1-1<ZOMBIE>, and the 
        start/answer/end info will be those 
        relating to Channel A.
        
        And, in the case where A is reconnected to
        B after the park time expires, when both parties
        hang up after the joyful reunion, no h-exten
        will be run at all.
        
        In the case where C picks up A from the 
        parking lot, when either A or C hang up,
        the h-exten will be run for the C channel.
        
        CDR's are a separate issue, and not addressed
        here.
        
        As to WHY this strange behavior occurs, 
        the answer lies in the procedure followed
        to accomplish handing over the channel
        to the parking manager thread. This procedure
        is called masquerading. In the process,
        a duplicate copy of the channel is created,
        and most of the active data is given to the
        new copy. The original channel gets its name
        changed to XXX<ZOMBIE> and keeps the PBX
        information for the sake of the original
        thread (preserving its role as a call 
        originator, if it had this role to begin
        with), while the new channel is without
        this info and becomes a call target (a
        "peer").
        
        In this case, the parking lot manager
        thread is handed the new (masqueraded)
        channel. It will not run an h-exten
        on the channel if it hangs up while
        in the parking lot. The h exten will
        be run on the original channel instead,
        in the original thread, after the bridge
        completes.
        
        See bug 13820 for our intentions as
        to how to clean up the h exten behavior.
      
      Review: http://reviewboard.digium.com/r/29/
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      aa905e34
    • Russell Bryant's avatar
      Fix spelling error. · a6e7267f
      Russell Bryant authored
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      a6e7267f
    • Tilghman Lesher's avatar
      Blocked revisions 166592 via svnmerge · ee88fe64
      Tilghman Lesher authored
      ........
        r166592 | tilghman | 2008-12-23 09:35:38 -0600 (Tue, 23 Dec 2008) | 3 lines
        
        Compile, even if both DAHDI and Zaptel are not installed.
        (Closes issue #14120)
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166601 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      ee88fe64
    • Mark Michelson's avatar
      Merged revisions 166568 via svnmerge from · 859ae789
      Mark Michelson authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
      r166568 | mmichelson | 2008-12-23 09:16:26 -0600 (Tue, 23 Dec 2008) | 12 lines
      
      Fix a crash resulting from a datastore with inheritance but no duplicate callback
      
      The fix for this is to simply set the newly created datastore's data pointer
      to NULL if it is inherited but has no duplicate callback.
      
      (closes issue #14113)
      Reported by: francesco_r
      Patches:
            14113.patch uploaded by putnopvut (license 60)
      Tested by: francesco_r
      
      
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      859ae789
    • Tilghman Lesher's avatar
      Merged revisions 166509 via svnmerge from · 18e07935
      Tilghman Lesher authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r166509 | tilghman | 2008-12-22 22:05:25 -0600 (Mon, 22 Dec 2008) | 4 lines
        
        Use the integer form of condition for integer comparisons.
        (closes issue #14127)
         Reported by: andrew
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@166533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      18e07935
  12. Dec 22, 2008
Loading