]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 203853 via svnmerge from
Jeff Peeler [Fri, 26 Jun 2009 22:13:37 +0000 (22:13 +0000)] 
Merged revisions 203853 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203853 | jpeeler | 2009-06-26 17:11:31 -0500 (Fri, 26 Jun 2009) | 12 lines

  Merged revisions 203848 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203848 | jpeeler | 2009-06-26 17:09:19 -0500 (Fri, 26 Jun 2009) | 5 lines

    Make sure to recreate the dahdi pseudo channel after dahdi restart

    (closes issue #14477)
    Reported by: timking
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203856 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203802 via svnmerge from
Russell Bryant [Fri, 26 Jun 2009 21:26:50 +0000 (21:26 +0000)] 
Merged revisions 203802 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203802 | russell | 2009-06-26 16:21:48 -0500 (Fri, 26 Jun 2009) | 22 lines

  Merged revisions 203785 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203785 | russell | 2009-06-26 16:16:39 -0500 (Fri, 26 Jun 2009) | 15 lines

    Don't fast forward past the end of a message.

    This is nice change for users of the voicemail application.  If someone gets a
    little carried away with fast forwarding through a message, they can easily
    get to the end and accidentally exit the voicemail application by hitting the
    fast forward key during the following prompt.

    This adds some safety by not allowing a fast forward past the end of a message.

    (closes issue #14554)
    Reported by: lacoursj
    Patches:
          21761.patch uploaded by lacoursj (license 707)
    Tested by: lacoursj
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203823 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203779 via svnmerge from
Russell Bryant [Fri, 26 Jun 2009 20:48:29 +0000 (20:48 +0000)] 
Merged revisions 203779 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203779 | russell | 2009-06-26 15:45:00 -0500 (Fri, 26 Jun 2009) | 5 lines

  Ensure the TCP read buffer is fully initialized before handling each packet.

  (closes issue #14452)
  Reported by: umberto71
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203781 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203721 via svnmerge from
David Brooks [Fri, 26 Jun 2009 20:18:11 +0000 (20:18 +0000)] 
Merged revisions 203721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203721 | dbrooks | 2009-06-26 15:13:51 -0500 (Fri, 26 Jun 2009) | 16 lines

  Fixing voicemail's error in checking max silence vs min message length

  Max silence was represented in milliseconds, yet vmminsecs (minmessage) was represented
  as seconds.

  Also, the inequality was reversed. The warning, if triggered, was "Max silence should
  be less than minmessage or you may get empty messages", which should have been logged
  if max silence was greater than minmessage, but the check was for less than.

  Also, conforming if statement to coding guidelines.

  closes issue #15331)
  Reported by: markd

  Review: https://reviewboard.asterisk.org/r/293/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203727 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoreverse whitespace change 203713 that was based on looking at sig_analog (which has...
Jeff Peeler [Fri, 26 Jun 2009 19:56:00 +0000 (19:56 +0000)] 
reverse whitespace change 203713 that was based on looking at sig_analog (which has about a 1000 line indentation change that is not worth doing here)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203718 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203710 via svnmerge from
David Vossel [Fri, 26 Jun 2009 19:48:49 +0000 (19:48 +0000)] 
Merged revisions 203710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203710 | dvossel | 2009-06-26 14:47:11 -0500 (Fri, 26 Jun 2009) | 7 lines

  moving debug message from level 0 to 1.

  (closes issue #15404)
  Reported by: leobrown
  Patches:
        iax_codec_debug.patch uploaded by leobrown (license 541)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203714 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agowhitespace fix
Jeff Peeler [Fri, 26 Jun 2009 19:48:25 +0000 (19:48 +0000)] 
whitespace fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203702 via svnmerge from
Russell Bryant [Fri, 26 Jun 2009 19:37:43 +0000 (19:37 +0000)] 
Merged revisions 203702 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203702 | russell | 2009-06-26 14:31:14 -0500 (Fri, 26 Jun 2009) | 5 lines

  Make invalid hints report Unavailable instead of Idle.

  (closes issue #14413)
  Reported by: pj
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203704 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203699 via svnmerge from
Joshua Colp [Fri, 26 Jun 2009 19:31:36 +0000 (19:31 +0000)] 
Merged revisions 203699 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203699 | file | 2009-06-26 16:27:24 -0300 (Fri, 26 Jun 2009) | 2 lines

  Improve T.38 negotiation by exchanging session parameters between application and channel.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203703 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203672 via svnmerge from
Jeff Peeler [Fri, 26 Jun 2009 19:28:24 +0000 (19:28 +0000)] 
Merged revisions 203672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203672 | jpeeler | 2009-06-26 14:03:25 -0500 (Fri, 26 Jun 2009) | 16 lines

  Check if polarityonanswerdelay has elapsed before setting a channel as answered
  after a polarity reversal.

  Previously on a polarity switch event chan_dahdi would set the channel
  immediately as answered. This would cause problems if a polarity reversal
  occurred when the line was picked up as the dial would not have yet occurred.
  Now if the polarity reversal occurs before delay has elapsed after coming off
  hook or an answer, it is ignored. Also, some refactoring was done in
  _handle_event.

  (closes issue #13917)
  Reported by: alecdavis
  Patches:
        chan_dahdi.bug13917.feb09.diff2.txt uploaded by alecdavis (license 585)
  Tested by: alecdavis
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203700 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203444 via svnmerge from
David Vossel [Thu, 25 Jun 2009 21:46:46 +0000 (21:46 +0000)] 
Merged revisions 203444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203444 | dvossel | 2009-06-25 16:45:32 -0500 (Thu, 25 Jun 2009) | 4 lines

  fixes a few redundant conditions

  (issue #15269)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203446 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 203402 via svnmerge
Jeff Peeler [Thu, 25 Jun 2009 21:23:13 +0000 (21:23 +0000)] 
Blocked revisions 203402 via svnmerge

........
  r203402 | jpeeler | 2009-06-25 16:22:12 -0500 (Thu, 25 Jun 2009) | 2 lines

  Remove some unnecessary code and update sample config file with respect to GR-303.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203408 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203381 via svnmerge from
Terry Wilson [Thu, 25 Jun 2009 21:19:57 +0000 (21:19 +0000)] 
Merged revisions 203381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203381 | twilson | 2009-06-25 16:15:11 -0500 (Thu, 25 Jun 2009) | 11 lines

  Merged revisions 203380 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203380 | twilson | 2009-06-25 16:13:10 -0500 (Thu, 25 Jun 2009) | 4 lines

    I didn't see that Mark already fixed the underlying issue!

    Yay for removing useless code.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203393 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203376 via svnmerge from
Russell Bryant [Thu, 25 Jun 2009 21:07:14 +0000 (21:07 +0000)] 
Merged revisions 203376 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203376 | russell | 2009-06-25 16:04:55 -0500 (Thu, 25 Jun 2009) | 16 lines

  Merged revisions 203375 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203375 | russell | 2009-06-25 16:02:18 -0500 (Thu, 25 Jun 2009) | 9 lines

    Fix a case where CDR answer time could be before the start time involving parking.

    (closes issue #13794)
    Reported by: davidw
    Patches:
          13794.patch uploaded by murf (license 17)
          13794.patch.160 uploaded by murf (license 17)
    Tested by: murf, dbrooks
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 203338 via svnmerge
Terry Wilson [Thu, 25 Jun 2009 20:30:32 +0000 (20:30 +0000)] 
Blocked revisions 203338 via svnmerge

................
  r203338 | twilson | 2009-06-25 15:25:39 -0500 (Thu, 25 Jun 2009) | 9 lines

  Merged revisions 203311 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203311 | twilson | 2009-06-25 15:09:15 -0500 (Thu, 25 Jun 2009) | 2 lines

    Don't try to free NULL
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203358 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 203304 via svnmerge
Jeff Peeler [Thu, 25 Jun 2009 19:55:48 +0000 (19:55 +0000)] 
Blocked revisions 203304 via svnmerge

........
  r203304 | jpeeler | 2009-06-25 14:54:12 -0500 (Thu, 25 Jun 2009) | 6 lines

  New signaling module to handle PRI/BRI operations in chan_dahdi

  This merge splits the PRI/BRI signaling logic out of chan_dahdi.c into
  sig_pri.c. Functionality in theory should not change (mostly). A few trivial
  changes were made in sig_analog with verbose messages and commenting.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203306 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203258 via svnmerge from
Jason Parker [Thu, 25 Jun 2009 19:27:05 +0000 (19:27 +0000)] 
Merged revisions 203258 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r203258 | qwell | 2009-06-25 14:22:46 -0500 (Thu, 25 Jun 2009) | 10 lines

  Unmute when we get a dtmfup (we muted on dtmfdown) event.

  This would occasionally cause one-way audio when using hardware DTMF detection.

  (closes issue #14761)
  Reported by: tzafrir
  Patches:
        v1-14761.patch uploaded by dimas (license 88)
  Tested by: tzafrir, dimas
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203274 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203231 via svnmerge from
Mark Michelson [Thu, 25 Jun 2009 18:55:07 +0000 (18:55 +0000)] 
Merged revisions 203231 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203231 | mmichelson | 2009-06-25 13:53:12 -0500 (Thu, 25 Jun 2009) | 8 lines

  Blocked revisions 203230 via svnmerge

  ........
    r203230 | mmichelson | 2009-06-25 13:52:22 -0500 (Thu, 25 Jun 2009) | 3 lines

    Prevent false positives when freeing a NULL pointer with MALLOC_DEBUG enabled.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203233 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203116 via svnmerge from
Russell Bryant [Thu, 25 Jun 2009 16:07:10 +0000 (16:07 +0000)] 
Merged revisions 203116 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203116 | russell | 2009-06-25 11:04:10 -0500 (Thu, 25 Jun 2009) | 18 lines

  Merged revisions 203115 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203115 | russell | 2009-06-25 11:02:16 -0500 (Thu, 25 Jun 2009) | 11 lines

    Resolve a crash related to a T.38 reinvite race condition.

    This change resolves a crash observed locally during some T.38 testing.
    A call was set up using a call file, and when the T.38 reinvite came in,
    the channel state was still AST_STATE_DOWN.  The reason is explained by
    a comment in the code that previously lived in the handling of
    AST_STATE_RINGING.  This change modifies the logic to handle the same
    race condition for any channel state that is not UP.

    (closes ABE-1895)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203118 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 203037 via svnmerge from
Richard Mudgett [Wed, 24 Jun 2009 21:22:11 +0000 (21:22 +0000)] 
Merged revisions 203037 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r203037 | rmudgett | 2009-06-24 16:08:55 -0500 (Wed, 24 Jun 2009) | 15 lines

  Merged revisions 203036 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r203036 | rmudgett | 2009-06-24 16:01:43 -0500 (Wed, 24 Jun 2009) | 8 lines

    Improved chan_dahdi.conf pritimer error checking.

    Valid format is: pritimer=timer_name,timer_value

    *  Fixed segfault if the ',' is missing.
    *  Completely check the range returned by pri_timer2idx() to prevent
    possible access outside array bounds.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@203057 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202967 via svnmerge from
Mark Michelson [Wed, 24 Jun 2009 18:30:09 +0000 (18:30 +0000)] 
Merged revisions 202967 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202967 | mmichelson | 2009-06-24 13:29:10 -0500 (Wed, 24 Jun 2009) | 9 lines

  Merged revisions 202966 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202966 | mmichelson | 2009-06-24 13:28:47 -0500 (Wed, 24 Jun 2009) | 3 lines

    Use the handy UNLINK macro instead of hand-coding the same thing in-line.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202969 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202925 via svnmerge from
Joshua Colp [Wed, 24 Jun 2009 18:10:17 +0000 (18:10 +0000)] 
Merged revisions 202925 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202925 | file | 2009-06-24 15:08:17 -0300 (Wed, 24 Jun 2009) | 2 lines

  Ensure the default settings are applied for T.38 when we set it up for a peer.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202927 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202761 via svnmerge from
Matthew Fredrickson [Tue, 23 Jun 2009 22:11:23 +0000 (22:11 +0000)] 
Merged revisions 202761 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r202761 | mattf | 2009-06-23 17:08:43 -0500 (Tue, 23 Jun 2009) | 1 line

I could have sworn I committed this patch ages ago, but... bug fix with setting NAI properly on linksets in certain situations.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202764 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202672 via svnmerge from
David Vossel [Tue, 23 Jun 2009 16:34:45 +0000 (16:34 +0000)] 
Merged revisions 202672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202672 | dvossel | 2009-06-23 11:31:30 -0500 (Tue, 23 Jun 2009) | 18 lines

  Merged revisions 202671 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202671 | dvossel | 2009-06-23 11:28:46 -0500 (Tue, 23 Jun 2009) | 12 lines

    MWI NOTIFY contains a wrong URI if Asterisk listens to non-standard port and transport

    (closes issue #14659)
    Reported by: klaus3000
    Patches:
          patch_chan_sip_fixMWIuri_1.4.txt uploaded by klaus3000 (license 65)
          mwi_port-transport_trunk.diff uploaded by dvossel (license 671)
    Tested by: dvossel, klaus3000

    Review: https://reviewboard.asterisk.org/r/288/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202674 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 202603 via svnmerge
Mark Michelson [Tue, 23 Jun 2009 15:25:37 +0000 (15:25 +0000)] 
Blocked revisions 202603 via svnmerge

................
  r202603 | mmichelson | 2009-06-23 10:23:00 -0500 (Tue, 23 Jun 2009) | 8 lines

  Blocked revisions 202601 via svnmerge

  ........
    r202601 | mmichelson | 2009-06-23 10:22:35 -0500 (Tue, 23 Jun 2009) | 3 lines

    Fix more memory leaks that may result if rtp is not successfully allocated.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202615 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 202574 via svnmerge
Mark Michelson [Tue, 23 Jun 2009 15:17:45 +0000 (15:17 +0000)] 
Blocked revisions 202574 via svnmerge

................
  r202574 | mmichelson | 2009-06-23 10:11:47 -0500 (Tue, 23 Jun 2009) | 8 lines

  Blocked revisions 202572 via svnmerge

  ........
    r202572 | mmichelson | 2009-06-23 10:08:27 -0500 (Tue, 23 Jun 2009) | 3 lines

    Fix potential memory leak in chan_sip when video rtp is not allocated properly.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202581 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202497 via svnmerge from
Russell Bryant [Mon, 22 Jun 2009 20:18:02 +0000 (20:18 +0000)] 
Merged revisions 202497 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202497 | russell | 2009-06-22 15:11:04 -0500 (Mon, 22 Jun 2009) | 11 lines

  Merged revisions 202496 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202496 | russell | 2009-06-22 15:08:53 -0500 (Mon, 22 Jun 2009) | 4 lines

    Report CallerID change during a masquerade.

    Reported by: markster
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202503 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202417 via svnmerge from
Sean Bright [Mon, 22 Jun 2009 16:31:02 +0000 (16:31 +0000)] 
Merged revisions 202417 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202417 | seanbright | 2009-06-22 12:09:50 -0400 (Mon, 22 Jun 2009) | 4 lines

  Fix lock usage in cdr_sqlite3_custom to avoid potential crashes during reload.

  Pointed out by Russell while working on the CEL branch.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202472 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202415 via svnmerge from
Russell Bryant [Mon, 22 Jun 2009 16:14:10 +0000 (16:14 +0000)] 
Merged revisions 202415 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202415 | russell | 2009-06-22 11:05:08 -0500 (Mon, 22 Jun 2009) | 9 lines

  Merged revisions 202414 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202414 | russell | 2009-06-22 11:00:00 -0500 (Mon, 22 Jun 2009) | 2 lines

    Make Polycom subscription type override check more explicit.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202418 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202410 via svnmerge from
David Vossel [Mon, 22 Jun 2009 15:41:56 +0000 (15:41 +0000)] 
Merged revisions 202410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202410 | dvossel | 2009-06-22 10:33:35 -0500 (Mon, 22 Jun 2009) | 5 lines

  attempting to load running modules

  Modules placed in the priority heap for loading were not properly removed from the linked list.  This resulted in some modules attempting to load twice.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202412 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202343 via svnmerge from
Mark Michelson [Mon, 22 Jun 2009 15:10:52 +0000 (15:10 +0000)] 
Merged revisions 202343 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202343 | mmichelson | 2009-06-22 09:58:24 -0500 (Mon, 22 Jun 2009) | 36 lines

  Merged revisions 202341-202342 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202341 | mmichelson | 2009-06-22 09:42:55 -0500 (Mon, 22 Jun 2009) | 26 lines

    Fix a situation in which Asterisk would not stop retransmitting 487s.

    If a CANCEL were received by Asterisk, we would send a 487 in response
    to the original INVITE and a 200 OK for the CANCEL. If there were a network
    hiccup which caused the 200 OK and the 487 to be lost, then the UA communicating
    with Asterisk may try to retransmit its CANCEL. Asterisk's response to this used
    to be to try sending another 487 to the canceled INVITE and another 200 OK to the
    CANCEL.

    The problem here is that the originally-sent 487 was sent "reliably" meaning that
    it will be retransmitted until it is received properly. So when we receive the second
    CANCEL it is likely that the first batch of 487s we sent is still going strong and
    reaches the UA. The result was that the second set of 487s would be retransmitted
    constantly until the maximum number of retries had been reached.

    The fix for this is that if we receive a second CANCEL for an INVITE, then we cancel
    the retransmission of the first set of 487s and start a second set. This causes the
    dialog to be terminated reasonably.

    (closes issue #14584)
    Reported by: klaus3000
    Patches:
          14584_v2.patch uploaded by mmichelson (license 60)
    Tested by: klaus3000
  ........
    r202342 | mmichelson | 2009-06-22 09:44:58 -0500 (Mon, 22 Jun 2009) | 3 lines

    Remove an extra debug line left from previous commit.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202345 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202337 via svnmerge from
Mark Michelson [Mon, 22 Jun 2009 14:36:00 +0000 (14:36 +0000)] 
Merged revisions 202337 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r202337 | mmichelson | 2009-06-22 09:35:09 -0500 (Mon, 22 Jun 2009) | 31 lines

  Merged revisions 202336 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r202336 | mmichelson | 2009-06-22 09:34:05 -0500 (Mon, 22 Jun 2009) | 25 lines

    Fix a possible infinite loop in SDP parsing during glare situation.

    There was a while loop in get_ip_and_port_from_sdp which was controlled
    by a call to get_sdp_iterate. The loop would exit either if what we were
    searching for was found or if the return was NULL. The problem is that
    get_sdp_iterate never returns NULL. This means that if what we were searching
    for was not present, the loop would run infinitely. This modification of the
    loop fixes the problem.

    (closes issue #15213)
    Reported by: schmidts

    (closes issue #15349)
    Reported by: samy

    (closes issue #14464)
    Reported by: pj

    (closes issue #15345)
    Reported by: aragon
    Patches:
          sip_inf_loop.patch uploaded by mmichelson (license 60)
    Tested by: aragon
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202339 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202262 via svnmerge from
Russell Bryant [Sun, 21 Jun 2009 16:15:49 +0000 (16:15 +0000)] 
Merged revisions 202262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202262 | russell | 2009-06-21 11:11:48 -0500 (Sun, 21 Jun 2009) | 2 lines

  Fix possibility of crashiness during reload in custom fields handling.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202258 via svnmerge from
Russell Bryant [Sun, 21 Jun 2009 16:04:22 +0000 (16:04 +0000)] 
Merged revisions 202258 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202258 | russell | 2009-06-21 11:00:23 -0500 (Sun, 21 Jun 2009) | 2 lines

  Standardize return values of load_config() so reload() doesn't report an error on success.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202260 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 202183 via svnmerge from
Sean Bright [Sat, 20 Jun 2009 19:14:22 +0000 (19:14 +0000)] 
Merged revisions 202183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r202183 | seanbright | 2009-06-20 15:09:47 -0400 (Sat, 20 Jun 2009) | 5 lines

  Fix version detection for API changes in spandsp.

  (closes issue #15355)
  Reported by: deuffy
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202185 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoAdded deadlock protection to try_suggested_sip_codec in chan_sip.c.
Matthew Nicholson [Fri, 19 Jun 2009 21:08:11 +0000 (21:08 +0000)] 
Added deadlock protection to try_suggested_sip_codec in chan_sip.c.

Review: https://reviewboard.asterisk.org/r/287/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@202008 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201994 via svnmerge from
David Vossel [Fri, 19 Jun 2009 20:26:57 +0000 (20:26 +0000)] 
Merged revisions 201994 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201994 | dvossel | 2009-06-19 15:24:37 -0500 (Fri, 19 Jun 2009) | 14 lines

  Merged revisions 201993 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201993 | dvossel | 2009-06-19 15:22:02 -0500 (Fri, 19 Jun 2009) | 8 lines

    timestamp was being converted to host order as a short rather than a long

    (closes issue #15361)
    Reported by: ffloimair
    Patches:
          ts_issue.diff uploaded by dvossel (license 671)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 201717 via svnmerge
Matthew Nicholson [Fri, 19 Jun 2009 17:41:27 +0000 (17:41 +0000)] 
Blocked revisions 201717 via svnmerge

........
  r201717 | mnicholson | 2009-06-18 12:41:09 -0500 (Thu, 18 Jun 2009) | 4 lines

  Added deadlock protection to try_suggested_sip_codec in chan_sip.c.

  Review: https://reviewboard.asterisk.org/r/285/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201945 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201904 via svnmerge from
Tilghman Lesher [Fri, 19 Jun 2009 15:48:37 +0000 (15:48 +0000)] 
Merged revisions 201904 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201904 | tilghman | 2009-06-19 10:47:55 -0500 (Fri, 19 Jun 2009) | 4 lines

  Fix 2 typos and add support for wide character types.
  Reported by Benny Amorsen via the asterisk-users mailing list.
  http://lists.digium.com/pipermail/asterisk-users/2009-June/233622.html
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201905 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoIf the "h" extension fails, give it another chance in main/pbx.c.
Tilghman Lesher [Fri, 19 Jun 2009 00:35:18 +0000 (00:35 +0000)] 
If the "h" extension fails, give it another chance in main/pbx.c.
If the "h" extension fails, give it another chance in main/pbx.c, when it
returns from the bridge code.  Fixes an issue where the "h" extension may
occasionally not fire, when a Dial is executed from a Macro.
Debugged in #asterisk with user tompaw.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201827 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201783 via svnmerge from
Tilghman Lesher [Thu, 18 Jun 2009 20:54:10 +0000 (20:54 +0000)] 
Merged revisions 201783 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201783 | tilghman | 2009-06-18 15:52:36 -0500 (Thu, 18 Jun 2009) | 6 lines

  One of the changes in 1.6.1 was to allow app_directory to use functionality
  within app_voicemail for directory functions.  It is therefore no longer
  necessary for app_directory to be linked against the ODBC libraries (and it
  never was necessary for app_directory to be linked against IMAP, though it
  was).
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201784 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201678 via svnmerge from
David Vossel [Thu, 18 Jun 2009 16:51:54 +0000 (16:51 +0000)] 
Merged revisions 201678 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201678 | dvossel | 2009-06-18 11:37:42 -0500 (Thu, 18 Jun 2009) | 11 lines

  fixes some memory leaks and redundant conditions

  (closes issue #15269)
  Reported by: contactmayankjain
  Patches:
        patch.txt uploaded by contactmayankjain (license 740)
        memory_leak_stuff.trunk.diff uploaded by dvossel (license 671)
  Tested by: contactmayankjain, dvossel
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201680 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201610 via svnmerge from
Russell Bryant [Thu, 18 Jun 2009 15:36:11 +0000 (15:36 +0000)] 
Merged revisions 201610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201610 | russell | 2009-06-18 10:27:10 -0500 (Thu, 18 Jun 2009) | 36 lines

  Merged revisions 201600 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201600 | russell | 2009-06-18 10:24:31 -0500 (Thu, 18 Jun 2009) | 29 lines

    Fix memory corruption and leakage related reloads of non files mode MoH classes.

    For Music on Hold classes that are not files mode, meaning that we are executing
    an application that will feed us audio data, we use a thread to monitor the
    external application and read audio from it.  This thread also makes use of the
    MoH class object.  In the MoH class destructor, we used pthread_cancel() to ask
    the thread to exit.  Unfortunately, the code did not wait to ensure that the
    thread actually went away.  What needed to be done is a pthread_join() to ensure
    that the thread fully cleans up before we proceed.  By adding this one line, we
    resolve two significant problems:

      1) Since the thread was never joined, it never fully goes away.  So, on every
         reload of non-files mode MoH, an unused thread was sticking around.

      2) There was a race condition here where the application monitoring thread
         could still try to access the MoH class, even though the thread executing
         the MoH reload has already destroyed it.

    (issue #15109)
    Reported by: jvandal

    (issue #15123)
    Reported by: axisinternet

    (issue #15195)
    Reported by: amorsen

    (issue AST-208)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201613 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201570 via svnmerge from
David Vossel [Thu, 18 Jun 2009 15:24:40 +0000 (15:24 +0000)] 
Merged revisions 201570 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201570 | dvossel | 2009-06-18 10:16:05 -0500 (Thu, 18 Jun 2009) | 11 lines

  parsing extension correctly from sip register lines

  If a transport type was specified, but no extension, parsing of the extension would return whatever was after the transport rather than defaulting to 's'.

  (closes issue #15111)
  Reported by: ffs
  Patches:
        chan_sip.c_register-parser.patch uploaded by ffs (license 730)
  Tested by: ffs, dvossel
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201601 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201531 via svnmerge from
Tilghman Lesher [Wed, 17 Jun 2009 21:32:30 +0000 (21:32 +0000)] 
Merged revisions 201531 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201531 | tilghman | 2009-06-17 16:31:39 -0500 (Wed, 17 Jun 2009) | 7 lines

  Initialize additional variables, to prevent a possible crash.
  (closes issue #15186)
   Reported by: ajohnson
   Patches:
         20090528__issue15186.diff.txt uploaded by tilghman (license 14)
   Tested by: ajohnson
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201532 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201462 via svnmerge from
Mark Michelson [Wed, 17 Jun 2009 20:11:29 +0000 (20:11 +0000)] 
Merged revisions 201462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201462 | mmichelson | 2009-06-17 15:10:01 -0500 (Wed, 17 Jun 2009) | 12 lines

  Fix problem with no audio due to ignoring the SDP.

  A recent change to our SDP version comparison made audio not function
  on some calls. This was because of a test wherein we were trying to
  see if an unsigned value was less than 0. This is a dumb comparison
  and arguably the compiler should have warned about it. Alas, though,
  it slipped past. Now it's fixed by changing the variable to be a
  signed type.

  Found by several developers. Tested by mnicholson and dbrooks.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201464 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201458 via svnmerge from
Mark Michelson [Wed, 17 Jun 2009 20:05:39 +0000 (20:05 +0000)] 
Merged revisions 201458 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201458 | mmichelson | 2009-06-17 15:04:12 -0500 (Wed, 17 Jun 2009) | 15 lines

  Merged revisions 201450 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201450 | mmichelson | 2009-06-17 14:59:31 -0500 (Wed, 17 Jun 2009) | 9 lines

    Change the datastore traversal in ast_do_masquerade to use a safe list traversal.

    It is possible for datastore fixup functions to remove the datastore from the list
    and free it. In particular, the queue_transfer_fixup in app_queue does this. While
    I don't yet know of this causing any crashes, it certainly could.

    Found while discussing a separate issue with Brian Degenhardt.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201460 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201453 via svnmerge from
David Vossel [Wed, 17 Jun 2009 20:01:40 +0000 (20:01 +0000)] 
Merged revisions 201453 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201453 | dvossel | 2009-06-17 15:00:51 -0500 (Wed, 17 Jun 2009) | 3 lines

  ast_channel_datastore_alloc is no longer used. updating datastores.txt to reflect that.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201456 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201445 via svnmerge from
David Vossel [Wed, 17 Jun 2009 19:54:01 +0000 (19:54 +0000)] 
Merged revisions 201445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201445 | dvossel | 2009-06-17 14:45:35 -0500 (Wed, 17 Jun 2009) | 25 lines

  Merged revisions 201423 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201423 | dvossel | 2009-06-17 14:28:12 -0500 (Wed, 17 Jun 2009) | 19 lines

    StopMixMonitor race condition (not giving up file immediately)

    StopMixMonitor only indicates to the MixMonitor thread to stop
    writing to the file.  It does not guarantee that the recording's
    file handle is available to the dialplan immediately after execution.
    This results in a race condition.  To resolve this, the filestream
    pointer is placed in a datastore on the channel. When StopMixMonitor
    is called, the datastore is retrieved from the channel and the
    filestream is closed immediately before returning to the dialplan.
    Documentation indicating the use of StopMixMonitor to free files
    has been updated as well.

    (closes issue #15259)
    Reported by: travisghansen
    Tested by: dvossel

    Review: https://reviewboard.asterisk.org/r/283/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201448 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201381 via svnmerge from
David Brooks [Wed, 17 Jun 2009 19:39:29 +0000 (19:39 +0000)] 
Merged revisions 201381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201381 | dbrooks | 2009-06-17 14:15:07 -0500 (Wed, 17 Jun 2009) | 16 lines

  Merged revisions 201380 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201380 | dbrooks | 2009-06-17 13:45:50 -0500 (Wed, 17 Jun 2009) | 9 lines

    Checks for NULL sip_pvt pointer in chan_sip.c->acf_channel_read()

    Zombie channels could be passed, and chan_sip.c wasn't checking for it.
    Could crash Asterisk. Now checking for NULL pointer.

    (closes issue #15330)
    Reported by: okrief
    Tested by: dbrooks
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201444 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201344 via svnmerge from
David Vossel [Wed, 17 Jun 2009 15:32:43 +0000 (15:32 +0000)] 
Merged revisions 201344 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201344 | dvossel | 2009-06-17 10:20:26 -0500 (Wed, 17 Jun 2009) | 16 lines

  SIP registry ref count error

  During a sip reload, the list of sip_registry objects are
  supposed to be traversed, unlinked, and destroyed, but
  destruction never takes place due to a ref counting error.
  This causes a memory leak when registry items are removed
  from sip.conf and reloaded.  While the registries are removed
  from the global list, they are not removed from the scheduler.
  Because of this, SIP register attempts continue to be sent
  out for the item even though it may no longer be in the .conf.

  (closes issue #15295)
  Reported by: amorsen

  Review: https://reviewboard.asterisk.org/r/282/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201365 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201262 via svnmerge from
Kevin P. Fleming [Wed, 17 Jun 2009 12:05:38 +0000 (12:05 +0000)] 
Merged revisions 201262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201262 | kpfleming | 2009-06-17 07:04:17 -0500 (Wed, 17 Jun 2009) | 15 lines

  Merged revisions 201261 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r201261 | kpfleming | 2009-06-17 07:03:25 -0500 (Wed, 17 Jun 2009) | 9 lines

    Correct AST_LIST_APPEND_LIST behavior when list to be appended is empty.

    When the list to be appended is empty, and the list to be appended to is *not*,
    AST_LIST_APPEND_LIST would actually cause the target list to become broken,
    and no longer have a pointer to its last entry. This patch fixes the problem.

    (reported by Stanislaw Pitucha on the asterisk-dev mailing list)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201223 via svnmerge from
David Vossel [Tue, 16 Jun 2009 22:31:05 +0000 (22:31 +0000)] 
Merged revisions 201223 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201223 | dvossel | 2009-06-16 17:29:30 -0500 (Tue, 16 Jun 2009) | 2 lines

  fix issue with build_contact introduced by the "SIP trasnport type issues" commit
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201225 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201056 via svnmerge from
Kevin P. Fleming [Tue, 16 Jun 2009 19:42:08 +0000 (19:42 +0000)] 
Merged revisions 201056 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201056 | kpfleming | 2009-06-16 13:54:30 -0500 (Tue, 16 Jun 2009) | 18 lines

  Merged revisions 200991 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r200991 | kpfleming | 2009-06-16 12:05:38 -0500 (Tue, 16 Jun 2009) | 11 lines

    Improve support for media paths that can generate multiple frames at once.

    There are various media paths in Asterisk (codec translators and UDPTL, primarily)
    that can generate more than one frame to be generated when the application calling
    them expects only a single frame. This patch addresses a number of those cases,
    at least the primary ones to solve the known problems. In addition it removes the
    broken TRACE_FRAMES support, fixes a number of bugs in various frame-related API
    functions, and cleans up various code paths affected by these changes.

    https://reviewboard.asterisk.org/r/175/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201096 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 201090 via svnmerge from
Kevin P. Fleming [Tue, 16 Jun 2009 19:28:00 +0000 (19:28 +0000)] 
Merged revisions 201090 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r201090 | kpfleming | 2009-06-16 14:27:12 -0500 (Tue, 16 Jun 2009) | 5 lines

  Another minor fix to compiler attribute checking.

  Defaulting to 'static' for the function scope was bad... so remove it.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@201091 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200985 via svnmerge from
Kevin P. Fleming [Tue, 16 Jun 2009 16:35:45 +0000 (16:35 +0000)] 
Merged revisions 200985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200985 | kpfleming | 2009-06-16 11:32:36 -0500 (Tue, 16 Jun 2009) | 7 lines

  Fix problems with new compiler attribute checking in configure script.

  The last changes to ast_gcc_attribute.m4 caused some problems checking for
  various attributes, because the scope of the symbol the attribute is applied
  to can be important; this patch allows the scope to be specified for the check.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200989 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200946 via svnmerge from
David Vossel [Tue, 16 Jun 2009 16:34:20 +0000 (16:34 +0000)] 
Merged revisions 200946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200946 | dvossel | 2009-06-16 11:03:30 -0500 (Tue, 16 Jun 2009) | 32 lines

  SIP transport type issues

  What this patch addresses:
  1. ast_sip_ouraddrfor() by default binds to the UDP address/port
  reguardless if the sip->pvt is of type UDP or not.  Now when no
  remapping is required, ast_sip_ouraddrfor() checks the sip_pvt's
  transport type, attempting to set the address and port to the
  correct TCP/TLS bindings if necessary.
  2.  It is not necessary to send the port number in the Contact
  header unless the port is non-standard for the transport type.
  This patch fixes this and removes the todo note.
  3.  In sip_alloc(), the default dialog built always uses transport
  type UDP.  Now sip_alloc() looks at the sip_request (if present)
  and determines what transport type to use by default.
  4.  When changing the transport type of a sip_socket, the file
  descriptor must be set to -1 and in some cases the tcptls_session's
  ref count must be decremented and set to NULL.  I've encountered
  several issues associated with this process and have created a function,
  set_socket_transport(), to handle the setting of the socket type.

  (closes issue #13865)
  Reported by: st
  Patches:
        dont_add_port_if_tls.patch uploaded by Kristijan (license 753)
        13865.patch uploaded by mmichelson (license 60)
        tls_port_v5.patch uploaded by vrban (license 756)
        transport_issues.diff uploaded by dvossel (license 671)
  Tested by: mmichelson, Kristijan, vrban, jmacz, dvossel

  Review: https://reviewboard.asterisk.org/r/278/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200987 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200943 via svnmerge from
Michiel van Baak [Tue, 16 Jun 2009 16:04:13 +0000 (16:04 +0000)] 
Merged revisions 200943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200943 | mvanbaak | 2009-06-16 17:51:36 +0200 (Tue, 16 Jun 2009) | 9 lines

  add FILE_STORAGE to Voicemail Build Options

  Voicemail can only use one storage module at the moment.
  Because it's unclear that selecting one of the storage modules
  in menuselect will disable filesystem storage we now have
  a FILE_STORAGE option that conflicts with the other modules.

  (closes issue #15333)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200947 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200764 via svnmerge from
Kevin P. Fleming [Tue, 16 Jun 2009 01:32:13 +0000 (01:32 +0000)] 
Merged revisions 200764 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200764 | kpfleming | 2009-06-15 20:28:08 -0500 (Mon, 15 Jun 2009) | 11 lines

  Ensure that configure-script testing for compiler attributes actually works.

  The configure script tests for compiler attributes didn't actually enable
  enough warnings or provide a proper test harness to determine whether the
  compiler supports the attribute in question or not; this caused gcc 4.1 to
  report that it supports 'weakref', but it doesn't actually support it in the
  way that is needed for our optional API mechanism. The new configure script
  test will properly distinguish between full support and partial support
  for this attribute, among others.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200766 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200726 via svnmerge from
Kevin P. Fleming [Tue, 16 Jun 2009 01:07:27 +0000 (01:07 +0000)] 
Merged revisions 200726 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200726 | kpfleming | 2009-06-15 20:03:22 -0500 (Mon, 15 Jun 2009) | 6 lines

  Document the new automatic 'ignoresdpversion' behavior.

  Asterisk will now automatically ignore incorrect incoming SDP version numbers
  when necessary to complete a T.38 re-INVITE operation.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200728 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 165180,200689 via svnmerge from
Kevin P. Fleming [Mon, 15 Jun 2009 21:20:40 +0000 (21:20 +0000)] 
Merged revisions 165180,200689 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r165180 | mnicholson | 2008-12-17 12:49:12 -0600 (Wed, 17 Dec 2008) | 14 lines

  This patch adds a new 'ignoresdpversion' option to sip.conf.  When this is
  enabled (either globally or for a specific peer), chan_sip will treat any SDP
  data it receives as new data and update the media stream accordingly.  By
  default, Asterisk will only modify the media stream if the SDP session version
  received is different from the current SDP session version.  This option is
  required to interoperate with devices that have non-standard SDP session
  version implementations (observed by toc on the bug tracker with Microsoft OCS
  which always uses 0 as the session version).

  http://reviewboard.digium.com/r/94/
  (closes issue #13958)
  Reported by: toc
  Tested by: toc
........
  r200689 | kpfleming | 2009-06-15 15:42:38 -0500 (Mon, 15 Jun 2009) | 12 lines

  Accept T.38 re-INVITE responses with invalid SDP versions.

  This commit changes the 'incoming SDP version' check logic a bit more; when
  'ignoresdpversion' is *not* set for a peer, if we initiate a re-INVITE to
  switch to T.38, we'll always accept the peer's SDP response, even if they
  don't properly increment the SDP version number as they should. If this situation
  occurs, a warning message will be generated suggesting that the peer's
  configuration be changed to include the 'ignoresdpversion' configuration option
  (although ideally they'd fix their SIP implementation to be RFC compliant).

  AST-221
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200707 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200514 via svnmerge from
Mark Michelson [Mon, 15 Jun 2009 15:23:04 +0000 (15:23 +0000)] 
Merged revisions 200514 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r200514 | mmichelson | 2009-06-15 10:22:11 -0500 (Mon, 15 Jun 2009) | 11 lines

  Merged revisions 200513 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r200513 | mmichelson | 2009-06-15 10:21:46 -0500 (Mon, 15 Jun 2009) | 5 lines

    Add INFO to our allowed methods so that endpoints know they may send it to us.

    AST-223
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200516 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200361 via svnmerge from
Mark Michelson [Fri, 12 Jun 2009 19:08:34 +0000 (19:08 +0000)] 
Merged revisions 200361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r200361 | mmichelson | 2009-06-12 14:07:51 -0500 (Fri, 12 Jun 2009) | 16 lines

  Merged revisions 200360 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r200360 | mmichelson | 2009-06-12 14:06:41 -0500 (Fri, 12 Jun 2009) | 10 lines

    Suppress a warning message and give a better return code when generating
    inband ringing after a call is answered.

    (closes issue #15158)
    Reported by: madkins
    Patches:
          15158.patch uploaded by mmichelson (license 60)
    Tested by: madkins
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200363 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199781 via svnmerge from
Sean Bright [Thu, 11 Jun 2009 22:44:12 +0000 (22:44 +0000)] 
Merged revisions 199781 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199781 | seanbright | 2009-06-09 14:08:53 -0400 (Tue, 09 Jun 2009) | 2 lines

  Fix all of the parallel build warnings issued when running make -j#.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200229 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoDon't access rtp->rtcp->* if rtp->rtcp is null
Terry Wilson [Thu, 11 Jun 2009 21:25:14 +0000 (21:25 +0000)] 
Don't access rtp->rtcp->* if rtp->rtcp is null

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200171 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200146 via svnmerge from
Mark Michelson [Thu, 11 Jun 2009 21:18:37 +0000 (21:18 +0000)] 
Merged revisions 200146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200146 | mmichelson | 2009-06-11 16:17:14 -0500 (Thu, 11 Jun 2009) | 5 lines

  Fix a crash due to a potentially NULL p->options.

  Thanks to mnicholson for pointing it out.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200152 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 200039 via svnmerge from
Leif Madsen [Thu, 11 Jun 2009 12:16:54 +0000 (12:16 +0000)] 
Merged revisions 200039 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r200039 | lmadsen | 2009-06-11 08:15:09 -0400 (Thu, 11 Jun 2009) | 8 lines

  Fix path for .flavor and .version

  (issue #14737)
  Reported by: davidw
  Patches:
        flavor.patch uploaded by davidw (license 780)
  Tested by: davidw
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@200041 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoFixes the argument order in definition of new_find_extension().
David Brooks [Wed, 10 Jun 2009 20:35:05 +0000 (20:35 +0000)] 
Fixes the argument order in definition of new_find_extension().

In the definition of new_find_extension(), the arguments 'callerid' and
'label' were swapped. The prototype declaration and all calls to the
function are ordered 'callerid' then 'label', but the function itself
was ordered 'label' then 'callerid'.

(closes issue #15303)
Reported by: JimDickenson

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199996 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199958 via svnmerge from
Mark Michelson [Wed, 10 Jun 2009 20:18:21 +0000 (20:18 +0000)] 
Merged revisions 199958 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199958 | mmichelson | 2009-06-10 15:15:48 -0500 (Wed, 10 Jun 2009) | 6 lines

  Only try to use the invite_branch on outgoing INVITEs with auth credentials.

  I have added a comment to the code to help ease understanding of the logic here
  as well.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199963 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199857 via svnmerge from
Sean Bright [Wed, 10 Jun 2009 16:13:16 +0000 (16:13 +0000)] 
Merged revisions 199857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r199857 | seanbright | 2009-06-10 12:10:23 -0400 (Wed, 10 Jun 2009) | 9 lines

  Merged revisions 199856 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r199856 | seanbright | 2009-06-10 12:08:35 -0400 (Wed, 10 Jun 2009) | 2 lines

    __WORDSIZE is not available on all platforms, so use sizeof(void *) instead.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199859 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199818 via svnmerge from
David Vossel [Tue, 9 Jun 2009 20:50:10 +0000 (20:50 +0000)] 
Merged revisions 199818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199818 | dvossel | 2009-06-09 15:47:57 -0500 (Tue, 09 Jun 2009) | 11 lines

  CLI NOTIFY sending wrong transport type.

  SIP's cli NOTIFY command only used UDP rather than copying the transport type from the peer.

  (closes issue #15283)
  Reported by: jthurman
  Patches:
        sip-notify-tcp-svn199728.patch uploaded by jthurman (license 614)
  Tested by: jthurman, dvossel
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199820 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199743 via svnmerge from
David Vossel [Tue, 9 Jun 2009 16:33:31 +0000 (16:33 +0000)] 
Merged revisions 199743 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199743 | dvossel | 2009-06-09 11:22:04 -0500 (Tue, 09 Jun 2009) | 11 lines

  module load priority

  This patch adds the option to give a module a load priority. The value represents the order in which a module's load() function is initialized.  The lower the value, the higher the priority.  The value is only checked if the AST_MODFLAG_LOAD_ORDER flag is set.  If the AST_MODFLAG_LOAD_ORDER flag is not set, the value will never be read and the module will be given the lowest possible priority
  on load.  Since some modules are reliant on a timing interface, the timing modules have been given a high load priorty.

  (closes issue #15191)
  Reported by: alecdavis
  Tested by: dvossel

  Review: https://reviewboard.asterisk.org/r/262/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199745 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199630 via svnmerge from
Sean Bright [Mon, 8 Jun 2009 19:39:24 +0000 (19:39 +0000)] 
Merged revisions 199630 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r199630 | seanbright | 2009-06-08 15:33:09 -0400 (Mon, 08 Jun 2009) | 32 lines

  Merged revisions 199626,199628 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r199626 | seanbright | 2009-06-08 15:24:32 -0400 (Mon, 08 Jun 2009) | 21 lines

    Increase the size of our thread stack on 64 bit processors.

    We were setting the stack size for each thread to 240KB regardless of
    architecture, which meant that in some scenarios we actually had less available
    stack space on 64 bit processors (pointers use 8 bytes instead of 4).  So now we
    calculate the stack size we reserve based on the platform's __WORDSIZE, which
    gives us:

         32 bit -> 240KB
         64 bit -> 496KB
        128 bit -> 1008KB (that's right, we're ready for 128 bit processors)

    Patch typed by me but written by several members of #asterisk-dev, including
    Kevin, Tilghman, and Qwell.

    (closes issue #14932)
    Reported by: jpiszcz
    Patches:
          06052009_issue14932.patch uploaded by seanbright (license 71)
    Tested by: seanbright
  ........
    r199628 | seanbright | 2009-06-08 15:28:33 -0400 (Mon, 08 Jun 2009) | 2 lines

    Fix a typo in the stack size calculation just introduced.
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199633 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoRecorded merge of revisions 199588 via svnmerge from
Mark Michelson [Mon, 8 Jun 2009 17:35:58 +0000 (17:35 +0000)] 
Recorded merge of revisions 199588 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199588 | mmichelson | 2009-06-08 12:32:04 -0500 (Mon, 08 Jun 2009) | 9 lines

  Fix a deadlock that could occur when setting rtp stats on SIP calls.

  (closes issue #15143)
  Reported by: cristiandimache
  Patches:
        15143.patch uploaded by mmichelson (license 60)
  Tested by: cristiandimache
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199590 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199298 via svnmerge from
David Vossel [Fri, 5 Jun 2009 21:32:16 +0000 (21:32 +0000)] 
Merged revisions 199298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r199298 | dvossel | 2009-06-05 16:21:22 -0500 (Fri, 05 Jun 2009) | 21 lines

  Merged revisions 199297 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r199297 | dvossel | 2009-06-05 16:19:56 -0500 (Fri, 05 Jun 2009) | 14 lines

    Fixes issue with hints giving unexpected results.

    Hints with two or more devices that include ONHOLD gave unexpected results.

    (closes issue #15057)
    Reported by: p_lindheimer
    Patches:
          onhold_trunk.diff uploaded by dvossel (license 671)
          pbx.c.1.4.patch uploaded by p (license 558)
          devicestate.c.trunk.patch uploaded by p (license 671)
    Tested by: p_lindheimer, dvossel

    Review: https://reviewboard.asterisk.org/r/254/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199300 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199227 via svnmerge from
Mark Michelson [Fri, 5 Jun 2009 13:51:51 +0000 (13:51 +0000)] 
Merged revisions 199227 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r199227 | mmichelson | 2009-06-05 08:51:08 -0500 (Fri, 05 Jun 2009) | 14 lines

  Correct "dahdi show channels" output when specifying a group.

  Since a DAHDI channel may belong to multiple groups, we need to use
  a bitwise and instead of equivalence to determine whether to display
  the channel information.

  (closes issue #15248)
  Reported by: gentian
  Patches:
        15248.patch uploaded by mmichelson (license 60)
  Tested by: gentian
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199229 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199139 via svnmerge from
David Vossel [Thu, 4 Jun 2009 19:16:15 +0000 (19:16 +0000)] 
Merged revisions 199139 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r199139 | dvossel | 2009-06-04 14:10:16 -0500 (Thu, 04 Jun 2009) | 9 lines

  Merged revisions 199138 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r199138 | dvossel | 2009-06-04 14:00:15 -0500 (Thu, 04 Jun 2009) | 3 lines

    Additional updates to AST-2009-001
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199141 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 199051 via svnmerge from
Sean Bright [Thu, 4 Jun 2009 14:53:51 +0000 (14:53 +0000)] 
Merged revisions 199051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r199051 | seanbright | 2009-06-04 10:31:24 -0400 (Thu, 04 Jun 2009) | 47 lines

  Merged revisions 199022 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r199022 | seanbright | 2009-06-04 10:14:57 -0400 (Thu, 04 Jun 2009) | 40 lines

    Safely handle AMI connections/reload requests that occur during startup.

    During asterisk startup, a lock on the list of modules is obtained by the
    primary thread while each module is initialized.  Issue 13778 pointed out a
    problem with this approach, however.  Because the AMI is loaded before other
    modules, it is possible for a module reload to be issued by a connected client
    (via Action: Command), causing a deadlock.

    The resolution for 13778 was to move initialization of the manager to happen
    after the other modules had already been lodaded.  While this fixed this
    particular issue, it caused a problem for users (like FreePBX) who call AMI
    scripts via an #exec in a configuration file (See issue 15189).

    The solution I have come up with is to defer any reload requests that come in
    until after the server is fully booted.  When a call comes in to
    ast_module_reload (from wherever) before we are fully booted, the request is
    added to a queue of pending requests.  Once we are done booting up, we then
    execute these deferred requests in turn.

    Note that I have tried to make this a bit more intelligent in that it will not
    queue up more than 1 request for the same module to be reloaded, and if a
    general reload request comes in ('module reload') the queue is flushed and we
    only issue a single deferred reload for the entire system.

    As for how this will impact existing installations - Before 13778, a reload
    issued before module initialization was completed would result in a deadlock.
    After 13778, you simply couldn't connect to the manager during startup (which
    causes problems with #exec-that-calls-AMI configuration files).  I believe this
    is a good general purpose solution that won't negatively impact existing
    installations.

    (closes issue #15189)
    (closes issue #13778)
    Reported by: p_lindheimer
    Patches:
          06032009_15189_deferred_reloads.diff uploaded by seanbright (license 71)
    Tested by: p_lindheimer, seanbright

    Review: https://reviewboard.asterisk.org/r/272/
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@199053 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 198958 via svnmerge
Sean Bright [Wed, 3 Jun 2009 20:51:51 +0000 (20:51 +0000)] 
Blocked revisions 198958 via svnmerge

................
  r198958 | seanbright | 2009-06-03 16:49:11 -0400 (Wed, 03 Jun 2009) | 17 lines

  Blocked revisions 198957 via svnmerge

  ........
    r198957 | seanbright | 2009-06-03 16:39:10 -0400 (Wed, 03 Jun 2009) | 11 lines

    Fix a possible crash in pbx_spool.

    We were trying to reference members of a struct that had previously been freed.
    This patch makes sure that we free the struct after it has been removed from
    the spooler queue.

    (closes issue #15072)
    Reported by: garlew
    Patches:
          spool.diff uploaded by garlew (license 376)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198960 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198856 via svnmerge from
David Vossel [Wed, 3 Jun 2009 15:26:16 +0000 (15:26 +0000)] 
Merged revisions 198856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198856 | dvossel | 2009-06-02 16:17:49 -0500 (Tue, 02 Jun 2009) | 10 lines

  Generic call forward api, ast_call_forward()

  The function ast_call_forward() forwards a call to an extension specified in an ast_channel's call_forward string.  After an ast_channel is called, if the channel's call_forward string is set this function can be used to forward the call to a new channel and terminate the original one.  I have included this api call in both channel.c's ast_request_and_dial() and feature.c's feature_request_and_dial().  App_dial and app_queue already contain call forward logic specific for their application and options.

  (closes issue #13630)
  Reported by: festr

  Review: https://reviewboard.asterisk.org/r/271/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198887 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198824 via svnmerge from
David Vossel [Tue, 2 Jun 2009 17:56:59 +0000 (17:56 +0000)] 
Merged revisions 198824 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198824 | dvossel | 2009-06-02 12:55:35 -0500 (Tue, 02 Jun 2009) | 8 lines

  fixes issue with channels not going down after transfer

  Iax2 currently does not support native bridging if the timeoutms value is set.  We check for that in iax2_bridge, but then set timeoutms to 0 by default.  If the timeoutms is not provided it is set to -1. By setting timeoutms to 0 it is processed causing a bridging retry loop.

  (closes issue #15216)
  Reported by: oxymoron
  Tested by: dvossel
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198826 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198791 via svnmerge from
Joshua Colp [Tue, 2 Jun 2009 13:50:21 +0000 (13:50 +0000)] 
Merged revisions 198791 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198791 | file | 2009-06-02 10:48:06 -0300 (Tue, 02 Jun 2009) | 5 lines

  Correct documentation for the register line, specifically where the domain should be specified.

  (closes issue #14367)
  Reported by: Nick_Lewis
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198793 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198626 via svnmerge from
Tilghman Lesher [Mon, 1 Jun 2009 18:44:21 +0000 (18:44 +0000)] 
Merged revisions 198626 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198626 | tilghman | 2009-06-01 13:40:35 -0500 (Mon, 01 Jun 2009) | 2 lines

  Add information for new meetme realtime fields
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198628 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198437 via svnmerge from
Eliel C. Sardanons [Sun, 31 May 2009 01:58:53 +0000 (01:58 +0000)] 
Merged revisions 198437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198437 | eliel | 2009-05-30 21:22:15 -0400 (Sat, 30 May 2009) | 11 lines

  Avoid a crash when res_timing_dahdi is unloaded but wasn't properly loaded.

  if dahdi_test_timer() fails, timing_funcs_handle remains NULL causing a crash
  when calling ast_unregister_timing_interface() with a NULL pointer.

  (closes issue #15234)
  Reported by: eliel
  Patches:
        timing_dahdi1.diff uploaded by eliel (license 64)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198441 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198375 via svnmerge from
Sean Bright [Sat, 30 May 2009 20:21:03 +0000 (20:21 +0000)] 
Merged revisions 198375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198375 | seanbright | 2009-05-30 16:11:33 -0400 (Sat, 30 May 2009) | 13 lines

  Properly terminate the receive buffer before sending to iksemel.

  aji_io_recv takes the maximum number of bytes to read (instead of the total
  buffer size), so we have to subtract 1 from our buffer size.  Without this, when
  we receive packets that are larger than our buffer, iksemel will choke and
  things get wonky.

  (closes issue #15232)
  Reported by: lp0
  Patches:
        05302009_res_jabber.c.patch uploaded by seanbright (license 71)
  Tested by: seanbright, lp0
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198371 via svnmerge from
Sean Bright [Sat, 30 May 2009 19:40:59 +0000 (19:40 +0000)] 
Merged revisions 198371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r198371 | seanbright | 2009-05-30 15:38:58 -0400 (Sat, 30 May 2009) | 19 lines

  Merged revisions 198370 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r198370 | seanbright | 2009-05-30 15:36:20 -0400 (Sat, 30 May 2009) | 12 lines

    Properly terminate AMI JabberSend response messages.

    The response message (either Error or Success) needs an extra trailing \r\n
    after the fields to inform the client that the message is complete.

    (closes issue #14876)
    Reported by: srt
    Patches:
          05302009_1.4_res_jabber.c.diff uploaded by seanbright (license 71)
          asterisk_14876.patch uploaded by srt (license 378)
          trunk-14876-2.diff uploaded by phsultan (license 73)
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198373 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198312 via svnmerge from
Russell Bryant [Sat, 30 May 2009 03:49:57 +0000 (03:49 +0000)] 
Merged revisions 198312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r198312 | russell | 2009-05-29 22:43:23 -0500 (Fri, 29 May 2009) | 12 lines

  Merged revisions 198311 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r198311 | russell | 2009-05-29 22:42:46 -0500 (Fri, 29 May 2009) | 5 lines

    Fix a crash that occurred when MWI SMDI messages expired.

    (closes issue #14561)
    Reported by: cmoss28
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198314 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198285 via svnmerge from
Sean Bright [Sat, 30 May 2009 03:28:05 +0000 (03:28 +0000)] 
Merged revisions 198285 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r198285 | seanbright | 2009-05-29 23:26:06 -0400 (Fri, 29 May 2009) | 15 lines

  Merged revisions 198251 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r198251 | seanbright | 2009-05-29 22:46:41 -0400 (Fri, 29 May 2009) | 8 lines

    Treat an empty FORWARD_CONTEXT the same way we treat a missing one.

    (closes issue #15056)
    Reported by: p_lindheimer
    Patches:
          05292009_bug15056.diff uploaded by seanbright (license 71)
    Tested by: p_lindheimer
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198295 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198248 via svnmerge from
Joshua Colp [Sat, 30 May 2009 02:34:12 +0000 (02:34 +0000)] 
Merged revisions 198248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198248 | file | 2009-05-29 23:31:48 -0300 (Fri, 29 May 2009) | 2 lines

  When removing all packets from a dialog we also need to free the data if present.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198249 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198186 via svnmerge from
Russell Bryant [Fri, 29 May 2009 23:05:14 +0000 (23:05 +0000)] 
Merged revisions 198186 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198186 | russell | 2009-05-29 18:04:31 -0500 (Fri, 29 May 2009) | 2 lines

  Suggesting that only a single timing module be loaded is no longer necessary.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198187 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198183 via svnmerge from
Russell Bryant [Fri, 29 May 2009 22:34:12 +0000 (22:34 +0000)] 
Merged revisions 198183 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198183 | russell | 2009-05-29 17:33:31 -0500 (Fri, 29 May 2009) | 2 lines

  Improve handling of trying to ACK too many timer expirations.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198146 via svnmerge from
Russell Bryant [Fri, 29 May 2009 20:11:00 +0000 (20:11 +0000)] 
Merged revisions 198146 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198146 | russell | 2009-05-29 15:06:59 -0500 (Fri, 29 May 2009) | 38 lines

  Resolve issues with choppy sound when using res_timing_pthread.

  The situation that caused this problem was when continuous mode was being
  turned on and off while a rate was set for a timing interface.  A very easy
  way to replicate this bug was to do a Playback() from behind a Local channel.
  In this scenario, a rate gets set on the channel for doing file playback.
  At the same time, continuous mode gets turned on and off about every 20 ms
  as frames get queued on to the PBX side channel from the other side of the
  Local channel.

  Essentially, this module treated continuous mode and a set rate as mutually
  exclusive states for the timer to be in.  When I dug deep enough, I observed
  the following pattern:

     1) Set timer to tick every 20 ms.
     2) Wait almost 20 ms ...
     3) Continuous mode gets turned on for a queued up frame
     4) Continuous mode gets turned off
     5) The timer goes back to its tick per 20 ms. state but starts counting
        at 0 ms.
     6) Goto step 2.

  Sometimes, res_timing_pthread would make it 20 ms and produce a timer tick,
  but not most of the time.  This is what produced the choppy sound (or sometimes
  no sound at all).

  Now, the module treats continuous mode and a set rate as completely independent
  timer modes.  They can be enabled and disabled independently of each other and
  things work as expected.

  (closes issue #14412)
  Reported by: dome
  Patches:
        issue14412.diff.txt uploaded by russell (license 2)
        issue14412-1.6.1.0.diff.txt uploaded by russell (license 2)
  Tested by: DennisD, russell
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198147 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 198088 via svnmerge
Jeff Peeler [Fri, 29 May 2009 19:54:42 +0000 (19:54 +0000)] 
Blocked revisions 198088 via svnmerge

........
  r198088 | jpeeler | 2009-05-29 14:19:51 -0500 (Fri, 29 May 2009) | 9 lines

  New signaling module to handle analog operations in chan_dahdi

  This branch splits all the analog signaling logic out of chan_dahdi.c into
  sig_analog.c. Functionality in theory should not change at all. As noted
  in the code, there is still some unused code remaining that will be cleaned
  up in a later commit.

  Review: https://reviewboard.asterisk.org/r/253/
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198142 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198072 via svnmerge from
Matthew Nicholson [Fri, 29 May 2009 19:13:44 +0000 (19:13 +0000)] 
Merged revisions 198072 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r198072 | mnicholson | 2009-05-29 14:04:24 -0500 (Fri, 29 May 2009) | 21 lines

  Merged revisions 198068 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r198068 | mnicholson | 2009-05-29 13:53:01 -0500 (Fri, 29 May 2009) | 15 lines

    Use AST_CDR_NOANSWER instead of AST_CDR_NULL as the default CDR disposition.

    This change also involves the addition of an AST_CDR_FLAG_ORIGINATED flag that is used on originated channels to distinguish: them from dialed channels.

    (closes issue #12946)
    Reported by: meral
    Patches:
          null-cdr2.diff uploaded by mnicholson (license 96)
    Tested by: mnicholson, dbrooks

    (closes issue #15122)
    Reported by: sum
    Tested by: sum
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198074 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198064 via svnmerge from
Joshua Colp [Fri, 29 May 2009 18:39:46 +0000 (18:39 +0000)] 
Merged revisions 198064 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r198064 | file | 2009-05-29 15:39:04 -0300 (Fri, 29 May 2009) | 2 lines

  Fix a memory leak of the write buffer when writing a file.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198065 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 198000 via svnmerge from
Sean Bright [Fri, 29 May 2009 18:17:48 +0000 (18:17 +0000)] 
Merged revisions 198000 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r198000 | seanbright | 2009-05-29 14:15:15 -0400 (Fri, 29 May 2009) | 15 lines

  Merged revisions 197998 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r197998 | seanbright | 2009-05-29 14:14:12 -0400 (Fri, 29 May 2009) | 8 lines

    Fix 'make config' target for Slackware.

    There was a missing semi-colon after the echo statement in the Makefile that was
    causing problems for some users.  Fix suggested by reporter.

    (closes issue #15225)
    Reported by: pdavis
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198005 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 197960 via svnmerge from
Russell Bryant [Fri, 29 May 2009 16:19:55 +0000 (16:19 +0000)] 
Merged revisions 197960 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r197960 | russell | 2009-05-29 11:15:30 -0500 (Fri, 29 May 2009) | 2 lines

  Trim trailing whitespace so that I can work on this bug without it bothering me.  :-)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@197969 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoUpdate MixMonitor documentation.
Leif Madsen [Thu, 28 May 2009 23:59:10 +0000 (23:59 +0000)] 
Update MixMonitor documentation.

Updated the MixMonitor documentation for the 'b' option so that
it is more obvious that you must not optimize awat the Local
channel when using this option.

(issue #14829)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@197897 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 197738 via svnmerge
Terry Wilson [Thu, 28 May 2009 20:50:50 +0000 (20:50 +0000)] 
Blocked revisions 197738 via svnmerge

........
  r197738 | twilson | 2009-05-28 14:57:18 -0500 (Thu, 28 May 2009) | 19 lines

  Add Calendaring support for Asterisk

  This commit add Calendaring support to Asterisk for iCalendar, CalDAV, and MS
  Exchange calendars. Exchange support has only been tested on Exchange Server 2k3
  and does not support forms-based authentication at this time (patches *very*
  welcome). Exchange support is also currently missing the ability to return a
  list of a meting's attendees (again, patches are very, very welcome).

  Features include:
    Querying a calendar for events over a specific time range
    Checking a calendar's busy status via the dialplan
    Writing calendar events via the dialplan (CalDAV and Exchange only)
    Handling calendar event notifications through the dialplan

  (closes issue #14771)
  Tested by: lmadsen, twilson, Shivaprakash

  Review: https://reviewboard.asterisk.org/r/58
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@197780 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 197697 via svnmerge from
Joshua Colp [Thu, 28 May 2009 18:47:56 +0000 (18:47 +0000)] 
Merged revisions 197697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r197697 | file | 2009-05-28 15:45:11 -0300 (Thu, 28 May 2009) | 2 lines

  Fix a bug where the trunkmtu setting was not set to the default value of 1240 on load but was on reload.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@197700 65c4cc65-6c06-0410-ace0-fbb531ad65f3