]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoMerged revisions 228145 via svnmerge from
David Brooks [Thu, 5 Nov 2009 19:41:40 +0000 (19:41 +0000)] 
Merged revisions 228145 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228145 | dbrooks | 2009-11-05 13:34:50 -0600 (Thu, 05 Nov 2009) | 16 lines

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

  ........
    r228078 | dbrooks | 2009-11-05 12:59:41 -0600 (Thu, 05 Nov 2009) | 9 lines

    chan_misdn Asterisk 1.4.27-rc2 crash

    Crash related to chan_misdn connection. Patch submitted by gknispel_proformatique, tested
    by francesco_r. "I have many crash since i have upgraded to Asterisk 1.4.27-rc2. Attached
    a full bt." This patch zeros out an ast_frame.

    (closes issue #16041)
    Reported by: francesco_r
  ........
................

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

15 years agoMerged revisions 228080 via svnmerge from
Jason Parker [Thu, 5 Nov 2009 19:19:34 +0000 (19:19 +0000)] 
Merged revisions 228080 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228080 | qwell | 2009-11-05 13:16:29 -0600 (Thu, 05 Nov 2009) | 15 lines

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

  ........
    r228079 | qwell | 2009-11-05 13:14:25 -0600 (Thu, 05 Nov 2009) | 8 lines

    Fix crash on VPB exception when no hardware is present.

    (closes issue #14970)
    Reported by: tzafrir
    Patches:
          vpb_exception.diff uploaded by tzafrir (license 46)
    Tested by: markwaters
  ........
................

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

15 years agoMerged revisions 228015 via svnmerge from
Tilghman Lesher [Thu, 5 Nov 2009 17:10:06 +0000 (17:10 +0000)] 
Merged revisions 228015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228015 | tilghman | 2009-11-05 11:08:02 -0600 (Thu, 05 Nov 2009) | 4 lines

  Don't crash if no arguments are passed.
  (closes issue #16119)
   Reported by: thedavidfactor
........

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

15 years agoMerged revisions 227945 via svnmerge from
Jeff Peeler [Wed, 4 Nov 2009 23:56:19 +0000 (23:56 +0000)] 
Merged revisions 227945 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r227945 | jpeeler | 2009-11-04 17:50:59 -0600 (Wed, 04 Nov 2009) | 21 lines

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

  ........
    r227944 | jpeeler | 2009-11-04 17:47:08 -0600 (Wed, 04 Nov 2009) | 14 lines

    Fix incorrect filename comparsion after monitor file change

    The logic to detect if a requested file is indeed a different file from the
    current file was incorrect. The main issue being confusion of the use of
    filename_base which was previously set without pathing information and then
    compared to another full path. Robust file comparison logic has been added
    to properly check if two files are the same even if symlinks are used.

    (closes issue #15313)
    Reported by: caspy
    Patches:
          20091103__issue15313__1.4.diff.txt uploaded by jpeeler (license 325)
          but mostly tilghman's work
  ........
................

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

15 years agoMerged revisions 227829 via svnmerge from
Matthew Nicholson [Wed, 4 Nov 2009 21:15:46 +0000 (21:15 +0000)] 
Merged revisions 227829 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r227829 | mnicholson | 2009-11-04 15:03:33 -0600 (Wed, 04 Nov 2009) | 17 lines

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

  ........
    r227827 | mnicholson | 2009-11-04 14:52:27 -0600 (Wed, 04 Nov 2009) | 10 lines

    This patch modifies the Dial application to monitor the calling channel for hangups while playing back announcements.

    (closes issue #16005)
    Reported by: falves11
    Patches:
          dial-announce-hangup-fix1.diff uploaded by mnicholson (license 96)
    Tested by: mnicholson, falves11

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

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

15 years agoModify the SDP parsing code to parse session and media level items separately.
Matthew Nicholson [Wed, 4 Nov 2009 20:17:24 +0000 (20:17 +0000)] 
Modify the SDP parsing code to parse session and media level items separately.

With the new code, media level proprieties should no longer be confused with session level proprieties. This change also reorganizes some of the SDP parsing code which should make it easier to manage in the future.

(closes issue #14994)
Reported by: frawd

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

15 years agoMerged revisions 227739 via svnmerge from
Joshua Colp [Wed, 4 Nov 2009 19:27:52 +0000 (19:27 +0000)] 
Merged revisions 227739 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r227739 | file | 2009-11-04 15:26:19 -0400 (Wed, 04 Nov 2009) | 12 lines

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

  ........
    r227735 | file | 2009-11-04 15:25:37 -0400 (Wed, 04 Nov 2009) | 5 lines

    Fix a security issue where it may be possible for someone to execute a cross-site
    AJAX request exploit.

    (AST-2009-009)
  ........
................

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

15 years agoMerged revisions 227712 via svnmerge from
Joshua Colp [Wed, 4 Nov 2009 19:23:01 +0000 (19:23 +0000)] 
Merged revisions 227712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r227712 | file | 2009-11-04 15:20:46 -0400 (Wed, 04 Nov 2009) | 12 lines

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

  ........
    r227700 | file | 2009-11-04 15:17:39 -0400 (Wed, 04 Nov 2009) | 5 lines

    Fix a security issue where sending a REGISTER with a differing username in the From
    URI and Authorization header would reveal whether it was valid or not.

    (AST-2009-008)
  ........
................

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

15 years agoMerged revisions 227372 via svnmerge from
Jason Parker [Tue, 3 Nov 2009 20:01:04 +0000 (20:01 +0000)] 
Merged revisions 227372 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227372 | qwell | 2009-11-03 13:59:46 -0600 (Tue, 03 Nov 2009) | 9 lines

  Fix some build issues on Solaris.

  (closes issue #14517)
  (SWP-109)
  Reported by: asgaroth
  Patches:
        bug_14517.diff uploaded by snuffy (license 35)
  Tested by: asgaroth, snuffy, dougm, qwell
........

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

15 years agoMerged revisions 227368 via svnmerge from
Leif Madsen [Tue, 3 Nov 2009 19:49:31 +0000 (19:49 +0000)] 
Merged revisions 227368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227368 | lmadsen | 2009-11-03 13:48:53 -0600 (Tue, 03 Nov 2009) | 8 lines

  Change warning message to debug message.

  app_controlplayback outputs a warning, when in fact it is normal.

  (closes issue #16071)
  Reported by: atis
  Patches:
        controlplayback_warning.patch uploaded by atis (license 242)
........

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

15 years agoMerged revisions 227361 via svnmerge from
Leif Madsen [Tue, 3 Nov 2009 19:26:14 +0000 (19:26 +0000)] 
Merged revisions 227361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227361 | lmadsen | 2009-11-03 13:25:18 -0600 (Tue, 03 Nov 2009) | 11 lines

  Additional fixes to the extensions.conf.sample file.

  Update the extensions.conf.sample [stdexten] context so that we use the
  variable instead of requiring it to be passed explicitly. Also updated uses of
  the [stdexten] context throughout.

  (closes issue #15858)
  Reported by: pprindeville
  Patches:
        stdexten-context-update.txt uploaded by lmadsen (license 10)
  Tested by: pprindeville
........

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

15 years agoMerged revisions 227275 via svnmerge from
Richard Mudgett [Tue, 3 Nov 2009 18:11:08 +0000 (18:11 +0000)] 
Merged revisions 227275 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r227275 | rmudgett | 2009-11-03 11:55:47 -0600 (Tue, 03 Nov 2009) | 4 lines

  Make sure the outgoing flag is cleared if a new channel fails to get created for outgoing calls.

  This is the relevant portion of asterisk/trunk -r226648
........

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

15 years agoMerged revisions 227167 via svnmerge from
Joshua Colp [Tue, 3 Nov 2009 15:38:57 +0000 (15:38 +0000)] 
Merged revisions 227167 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r227167 | file | 2009-11-03 11:37:08 -0400 (Tue, 03 Nov 2009) | 12 lines

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

  ........
    r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5 lines

    Fix a bug where an RPID header could be generated with a blank username in the URI.

    (closes issue #15909)
    Reported by: kobaz
  ........
................

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

15 years agoMerged revisions 227162 via svnmerge from
Leif Madsen [Tue, 3 Nov 2009 15:24:51 +0000 (15:24 +0000)] 
Merged revisions 227162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227162 | lmadsen | 2009-11-03 09:19:47 -0600 (Tue, 03 Nov 2009) | 7 lines

  Update extensions.conf.sample file to fix incorrect extensions.

  (closes issue #15857)
  Reported by: pprindeville
  Patches:
        stdexten.patch#2 uploaded by pprindeville (license 347)
  Tested by: pprindeville
........

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

15 years agoMerged revisions 227091 via svnmerge from
Olle Johansson [Tue, 3 Nov 2009 13:32:24 +0000 (13:32 +0000)] 
Merged revisions 227091 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r227091 | oej | 2009-11-03 12:11:15 +0100 (Tis, 03 Nov 2009) | 15 lines

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

........
r227088 | oej | 2009-11-03 11:29:59 +0100 (Tis, 03 Nov 2009) | 7 lines

Use proper response code when violating Contact ACL's.

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

Thanks kpfleming for a quick review.
(EDVX-003)

........

................

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

15 years agoSIP channel name uniqueness
David Brooks [Mon, 2 Nov 2009 21:05:58 +0000 (21:05 +0000)] 
SIP channel name uniqueness

SIP channel names were supposed to be unique by way of a name suffix derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces this suffix with
a simple incremented unsigned int.

(closes issue #15152)
Reported by: palbrecht

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

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

15 years agoMerged revisions 226890 via svnmerge from
Joshua Colp [Mon, 2 Nov 2009 18:11:19 +0000 (18:11 +0000)] 
Merged revisions 226890 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226890 | file | 2009-11-02 14:08:54 -0400 (Mon, 02 Nov 2009) | 18 lines

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

  ........
    r226889 | file | 2009-11-02 14:08:11 -0400 (Mon, 02 Nov 2009) | 11 lines

    Fix a bug where the recorded privacy introduction file would not get removed if the caller hung up
    while the called party had not yet answered.

    This was fixed by introducing an argument to the 'n' option which, when enabled, removes the introduction
    file under all scenarios. This was done to preserve the behavior that has existed for quite some time.

    (closes issue #14674)
    Reported by: ulogic
    Patches:
          bug14674.patch uploaded by jpeeler (license 325)
  ........
................

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

15 years agoMerged revisions 226812 via svnmerge from
Tilghman Lesher [Mon, 2 Nov 2009 17:17:03 +0000 (17:17 +0000)] 
Merged revisions 226812 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226812 | tilghman | 2009-11-02 11:15:31 -0600 (Mon, 02 Nov 2009) | 15 lines

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

  ........
    r226811 | tilghman | 2009-11-02 11:14:20 -0600 (Mon, 02 Nov 2009) | 8 lines

    Don't allow two separate instances of safe_asterisk when restarting from the init script.
    (closes issue #14562)
     Reported by: davidw
     Patches:
           Initially 20091022__issue14562.diff.txt uploaded by tilghman (license 14)
           Modified to 20091030__Issue14562_diff.txt uploaded by davidw (license 780)
     Tested by: davidw
  ........
................

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

15 years agoMerged revisions 226532 via svnmerge from
Joshua Colp [Thu, 29 Oct 2009 18:15:41 +0000 (18:15 +0000)] 
Merged revisions 226532 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226532 | file | 2009-10-29 15:13:42 -0300 (Thu, 29 Oct 2009) | 13 lines

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

  ........
    r226531 | file | 2009-10-29 15:11:26 -0300 (Thu, 29 Oct 2009) | 6 lines

    Add an option to enabling passing music on hold start and stop requests through instead of
    acting on them in chan_local.

    (closes issue #14709)
    Reported by: dimas
  ........
................

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

15 years agoMerged revisions 226384 via svnmerge from
Leif Madsen [Wed, 28 Oct 2009 20:15:51 +0000 (20:15 +0000)] 
Merged revisions 226384 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226384 | lmadsen | 2009-10-28 15:11:07 -0500 (Wed, 28 Oct 2009) | 17 lines

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

  ........
    r226382 | lmadsen | 2009-10-28 15:06:13 -0500 (Wed, 28 Oct 2009) | 9 lines

    Update documentation in sip.conf.sample.

    Update the documentation in sip.conf.sample in order to make it more clear
    that directmedia/canreinvite do not cause Asterisk to ignore reINVITEs. It
    is only used to stop Asterisk from generating a reINVITE, but does not stop
    it from accepting them if necessary.

    (closes issue #15644)
    Reported by: lmadsen
  ........
................

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

15 years agoMerged revisions 226378 via svnmerge from
Leif Madsen [Wed, 28 Oct 2009 19:51:12 +0000 (19:51 +0000)] 
Merged revisions 226378 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226378 | lmadsen | 2009-10-28 14:50:00 -0500 (Wed, 28 Oct 2009) | 15 lines

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

  ........
    r226377 | lmadsen | 2009-10-28 14:48:29 -0500 (Wed, 28 Oct 2009) | 7 lines

    Update CALLINGSUBADDR channel variable documentation.

    (closes issue #15734)
    Reported by: alecdavis
    Patches:
          channelvariables.tex.diff.txt uploaded by alecdavis (license 585)
    Tested by: alecdavis
  ........
................

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

15 years agoMerged revisions 226305 via svnmerge from
Tilghman Lesher [Wed, 28 Oct 2009 18:05:54 +0000 (18:05 +0000)] 
Merged revisions 226305 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226305 | tilghman | 2009-10-28 13:04:05 -0500 (Wed, 28 Oct 2009) | 9 lines

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

  ........
    r226304 | tilghman | 2009-10-28 13:02:25 -0500 (Wed, 28 Oct 2009) | 2 lines

    Fix documentation (pointed out by TheDavidFactor on #-dev)
  ........
................

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

15 years agoMerged revisions 226159 via svnmerge from
Tilghman Lesher [Tue, 27 Oct 2009 20:24:02 +0000 (20:24 +0000)] 
Merged revisions 226159 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r226159 | tilghman | 2009-10-27 15:22:07 -0500 (Tue, 27 Oct 2009) | 14 lines

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

  ........
    r226138 | tilghman | 2009-10-27 15:16:49 -0500 (Tue, 27 Oct 2009) | 7 lines

    Manager output is not always NULL-terminated, so force a NULL at the end of the filestream.
    (closes issue #15495)
     Reported by: pdf
     Patches:
           20090916__issue15495.diff.txt uploaded by tilghman (license 14)
     Tested by: pdf
  ........
................

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

15 years agoMerged revisions 226099 via svnmerge from
Terry Wilson [Tue, 27 Oct 2009 17:04:41 +0000 (17:04 +0000)] 
Merged revisions 226099 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r226099 | twilson | 2009-10-27 11:48:54 -0500 (Tue, 27 Oct 2009) | 2 lines

  Don't prepend the URI prefix to the post directory
........

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

15 years agodetect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi
Tzafrir Cohen [Mon, 26 Oct 2009 23:48:25 +0000 (23:48 +0000)] 
detect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi

* Set OSARCH to linux-gnu even if host_os is linux-gnueabi
* When checking if we are Linux, check OSARCH rather than host_os

The newer ARM ABI ("EABI") shows the OS name 'linux-gnueabi' rather than
'linux-gnu' . This patch sets OSARCH to be 'linux-gnu' even in such a case.

OSARCH is tested for the value of 'linux-gnu' in one or two places in the
tree. This patch also fixes the check libcap to check for $OSARCH rather
than $host_os .

See also: http://wiki.debian.org/ArmEabiPort

Merged revisions 225957 via svnmerge from
http://svn.digium.com/svn/asterisk/branches/1.4

Merged revisions 226018 via svnmerge from
http://svn.digium.com/svn/asterisk/trunk

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

15 years agoMerged revisions 225912 via svnmerge from
Jeff Peeler [Mon, 26 Oct 2009 19:41:30 +0000 (19:41 +0000)] 
Merged revisions 225912 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r225912 | jpeeler | 2009-10-26 14:40:26 -0500 (Mon, 26 Oct 2009) | 12 lines

  ACL check not present for verifying SIP INVITEs

  The ACL check in check_peer_ok was missing and has now been restored. The
  missing check allowed for calls to be made on prohibited networks where an ACL
  was defined in sip.conf and the allowguest option was set to off. See the AST
  security advisory below for more information.

  Merge code associated with AST-2009-007.

  (closes issue #16091)
  Reported by: thom4fun
........

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

15 years agoBackport audio handling loop fixes from trunk version of app_fax.
Kevin P. Fleming [Mon, 26 Oct 2009 15:51:10 +0000 (15:51 +0000)] 
Backport audio handling loop fixes from trunk version of app_fax.

This backport resolves some issues handling audio frames during FAX processing,
and ensures that the FAX application doesn't accidentally get notified of a T.38
switchover at the end of a successful FAX.

(issue #16127)

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

15 years agoMerged revisions 225650 via svnmerge from
David Vossel [Fri, 23 Oct 2009 14:50:00 +0000 (14:50 +0000)] 
Merged revisions 225650 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r225650 | dvossel | 2009-10-23 09:41:50 -0500 (Fri, 23 Oct 2009) | 3 lines

  Fixes an iterator memory leak and uninitialized memory
........

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

15 years agoMerged revisions 225582 via svnmerge from
Kevin P. Fleming [Fri, 23 Oct 2009 14:07:20 +0000 (14:07 +0000)] 
Merged revisions 225582 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r225582 | kpfleming | 2009-10-23 09:02:42 -0500 (Fri, 23 Oct 2009) | 17 lines

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

  ........
    r225581 | kpfleming | 2009-10-23 09:00:01 -0500 (Fri, 23 Oct 2009) | 10 lines

    Don't force menuselect.makeopts to be rebuilt on every build.

    For some reason the menuselect.makeopts file was listed as PHONY in the Makefile,
    resulting in 'make' needing to rebuild it for every build. This then resulted in
    the embedded module rules being rebuilt on every build, which can be slow and is
    unnecessary.

    This patch fixes the problem by properly allowing 'make' to know when the
    menuselect.makeopts file needs to be rebuilt (defining the proper dependencies).
  ........
................

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

15 years agoMerged revisions 225445 via svnmerge from
David Vossel [Thu, 22 Oct 2009 22:07:05 +0000 (22:07 +0000)] 
Merged revisions 225445 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r225445 | dvossel | 2009-10-22 14:55:51 -0500 (Thu, 22 Oct 2009) | 50 lines

  SIP TCP/TLS: move client connection setup/write into tcp helper thread, various related locking/memory fixes.

          What this patch fixes
  1.Moves sip TCP/TLS connection setup into the TCP helper thread:
    Connection setup takes awhile and before this it was being
    done while holding the monitor lock.
  2.Moves TCP/TLS writing to the TCP helper thread:  Through the
    use of a packet queue and an alert pipe, the TCP helper thread
    can now be woken up to write data as well as read data.
  3.Locking error: sip_xmit returned an XMIT_ERROR without giving
    up the tcptls_session lock.  This lock has been completely removed
    from sip_xmit and placed in the new sip_tcptls_write() function.
  4.Memory leak:  When creating a tcptls_client the tls_cfg was alloced
    but never freed unless the tcptls_session failed to start.  Now the
    session_args for a sip client are an ao2 object which frees the
    tls_cfg on destruction.
  5.Pointer to stack variable: During sip_prepare_socket the creation
    of a client's ast_tcptls_session_args was done on the stack and
    stored as a pointer in the newly created tcptls_session.  Depending
    on the events that followed, there was a slight possibility that
    pointer could have been accessed after the stack returned.  Given
    the new changes, it is always accessed after the stack returns
    which is why I found it.

  Notable code changes
  1.I broke tcptls.c's ast_tcptls_client_start() function into two
    functions.  One for creating and allocating the new tcptls_session,
    and a separate one for starting and handling the new connection.
    This allowed me to create the tcptls_session, launch the helper
    thread, and then establish the connection within the helper thread.
  2.Writes to a tcptls_session are now done within the helper thread.
    This is done by using an alert pipe to wake up the thread if new
    data needs to be sent.  The thread's sip_threadinfo object contains
    the alert pipe as well as the packet queue.
  3.Since the threadinfo object contains the alert pipe, it must now be
    accessed outside of the helper thread for every write (queuing of a
    packet).  For easy lookup, I moved the threadinfo objects from a
    linked list to an ao2_container.

  (closes issue #13136)
  Reported by: pabelanger
  Tested by: dvossel, whys

  (closes issue #15894)
  Reported by: dvossel
  Tested by: dvossel

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

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

15 years agoMerged revisions 225485 via svnmerge from
Leif Madsen [Thu, 22 Oct 2009 21:54:00 +0000 (21:54 +0000)] 
Merged revisions 225485 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r225485 | lmadsen | 2009-10-22 16:52:30 -0500 (Thu, 22 Oct 2009) | 19 lines

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

  ........
    r225484 | lmadsen | 2009-10-22 16:51:52 -0500 (Thu, 22 Oct 2009) | 11 lines

    Clean valgrind output by suppressing false errors.
    Update valgrind.txt documentation and add valgrind.supp file in order to
    allow those who are creating valgrind output to have less false errors in
    the logfile.

    (closes issue #16007)
    Reported by: atis
    Patches:
          valgrind.txt.diff uploaded by atis (license 242)
          asterisk2.supp uploaded by atis (license 242)
    Tested by: atis, amorsen
  ........
................

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

15 years agoMerged revisions 225360 via svnmerge from
Tilghman Lesher [Thu, 22 Oct 2009 17:14:39 +0000 (17:14 +0000)] 
Merged revisions 225360 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r225360 | tilghman | 2009-10-22 12:11:23 -0500 (Thu, 22 Oct 2009) | 11 lines

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

  ........
    r225105 | tilghman | 2009-10-21 11:02:12 -0500 (Wed, 21 Oct 2009) | 4 lines

    Fix documentation for ast_softhangup() and correct the misuse thereof.
    (closes issue #16103)
     Reported by: majorbloodnok
  ........
................

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

15 years agoMerged revisions 225307 via svnmerge from
David Vossel [Wed, 21 Oct 2009 22:02:01 +0000 (22:02 +0000)] 
Merged revisions 225307 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r225307 | dvossel | 2009-10-21 16:58:46 -0500 (Wed, 21 Oct 2009) | 20 lines

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

  ........
    r225243 | dvossel | 2009-10-21 15:58:08 -0500 (Wed, 21 Oct 2009) | 13 lines

    IAX2: VNAK loop caused by signaling frames with no destination call number

    It is possible for the PBX thread to queue up signaling frames before
    a destination call number is received.  This can result in signaling
    frames being sent out with no destination call number. Since recent
    versions of Asterisk require accurate destination callnumbers for all
    Full Frames, this can cause a VNAK loop to occur.  To resolve this
    no signaling frames are sent until a destination callnumber is received,
    and destination call numbers are now only required for iax_pvt matching
    when the frame is an ACK.

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

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

15 years agoMerged revisions 225033 via svnmerge from
David Vossel [Wed, 21 Oct 2009 15:26:37 +0000 (15:26 +0000)] 
Merged revisions 225033 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r225033 | dvossel | 2009-10-21 09:39:10 -0500 (Wed, 21 Oct 2009) | 27 lines

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

  ........
    r225032 | dvossel | 2009-10-21 09:37:04 -0500 (Wed, 21 Oct 2009) | 20 lines

    IAX/SIP shrinkcallerid option

    The shrinking of caller id removes '(', ' ', ')', non-trailing '.',
    and '-' from the string.  This means values such as 555.5555 and
    test-test result in 555555 and testtest.  There are instances,
    such as Skype integration, where a specific value is passed via
    caller id that must be preserved unmodified.  This patch makes
    the shrinking of caller id optional in chan_sip and chan_iax in
    order to support such cases.  By default this option is on to
    preserve previous expected behavior.

    (closes issue #15940)
    Reported by: dimas
    Patches:
          v2-15940.patch uploaded by dimas (license 88)
          15940_shrinkcallerid_trunk.c uploaded by dvossel (license 671)
    Tested by: dvossel

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

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

15 years agoMerged revisions 224932 via svnmerge from
Russell Bryant [Wed, 21 Oct 2009 03:17:44 +0000 (03:17 +0000)] 
Merged revisions 224932 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224932 | russell | 2009-10-20 22:09:04 -0500 (Tue, 20 Oct 2009) | 12 lines

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

  ........
    r224931 | russell | 2009-10-20 21:59:54 -0500 (Tue, 20 Oct 2009) | 5 lines

    Isolate frames returned from a DSP instance or codec translator.

    The reasoning for these changes are the same as what I wrote in the commit
    message for rev 222878.
  ........
................

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

15 years agoMerged revisions 224856 via svnmerge from
Tilghman Lesher [Tue, 20 Oct 2009 22:11:03 +0000 (22:11 +0000)] 
Merged revisions 224856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224856 | tilghman | 2009-10-20 17:09:07 -0500 (Tue, 20 Oct 2009) | 12 lines

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

  ........
    r224855 | tilghman | 2009-10-20 17:07:11 -0500 (Tue, 20 Oct 2009) | 5 lines

    Pay attention to the return value of the manipulate function.
    While this looks like an optimization, it prevents a crash from occurring
    when used with certain audiohook callbacks (diagnosed with SVN trunk,
    backported to 1.4 to keep the source consistent across versions).
  ........
................

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

15 years agoMerged revisions 224774 via svnmerge from
Joshua Colp [Tue, 20 Oct 2009 17:49:15 +0000 (17:49 +0000)] 
Merged revisions 224774 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224774 | file | 2009-10-20 14:47:34 -0300 (Tue, 20 Oct 2009) | 12 lines

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

  ........
    r224773 | file | 2009-10-20 14:46:37 -0300 (Tue, 20 Oct 2009) | 5 lines

    Add support for relaying early media in the features attended transfer option.

    (closes issue #14828)
    Reported by: licedey
  ........
................

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

15 years agoMerged revisions 224671 via svnmerge from
Kevin P. Fleming [Mon, 19 Oct 2009 23:56:31 +0000 (23:56 +0000)] 
Merged revisions 224671 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224671 | kpfleming | 2009-10-19 18:47:39 -0500 (Mon, 19 Oct 2009) | 14 lines

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

  ........
    r224670 | kpfleming | 2009-10-19 18:44:07 -0500 (Mon, 19 Oct 2009) | 7 lines

    Correct timestamp calculations when RTP sample rates over 8kHz are used.

    While testing some endpoints that support 16kHz and 32kHz sample rates, some
    log messages were generated due to calc_rxstamp() computing timestamps in a way
    that produced odd results, so this patch sanitizes the result of the
    computations.
  ........
................

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

15 years agoMerged revisions 224567 via svnmerge from
Joshua Colp [Mon, 19 Oct 2009 19:51:12 +0000 (19:51 +0000)] 
Merged revisions 224567 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224567 | file | 2009-10-19 16:49:09 -0300 (Mon, 19 Oct 2009) | 12 lines

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

  ........
    r224565 | file | 2009-10-19 16:47:50 -0300 (Mon, 19 Oct 2009) | 5 lines

    Do not attempt early media bridging (ie: direct RTP setup) if options are enabled that should prevent it.

    (closes issue #14763)
    Reported by: cupotka
  ........
................

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

15 years agogit-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@224450 65c4cc65...
Tilghman Lesher [Mon, 19 Oct 2009 00:13:23 +0000 (00:13 +0000)] 
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@224450 65c4cc65-6c06-0410-ace0-fbb531ad65f3

15 years agofix typo, sorry
Jeff Peeler [Sat, 17 Oct 2009 02:02:32 +0000 (02:02 +0000)] 
fix typo, sorry

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

15 years agoMerged revisions 224331 via svnmerge from
Jeff Peeler [Sat, 17 Oct 2009 01:45:22 +0000 (01:45 +0000)] 
Merged revisions 224331 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224331 | jpeeler | 2009-10-16 20:36:08 -0500 (Fri, 16 Oct 2009) | 20 lines

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

  ........
    r224330 | jpeeler | 2009-10-16 20:32:47 -0500 (Fri, 16 Oct 2009) | 13 lines

    Fix stale caller id data from being reported in AMI NewChannel event

    The problem here is that chan_dahdi is designed in such a way to set
    certain values in the dahdi_pvt only once. One of those such values
    is the configured caller id data in chan_dahdi.conf. For PRI, the
    configured caller id data could be overwritten during a call. Instead
    of saving the data and restoring, it was decided that for all non-analog
    channels it was simply best to not set the configured caller id in the
    first place and also clear it at the end of the call.

    (closes issue #15883)
    Reported by: jsmith
  ........
................

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

15 years agoMerged revisions 224261 via svnmerge from
Richard Mudgett [Fri, 16 Oct 2009 20:53:05 +0000 (20:53 +0000)] 
Merged revisions 224261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r224261 | rmudgett | 2009-10-16 15:40:57 -0500 (Fri, 16 Oct 2009) | 25 lines

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

  ........
    r224260 | rmudgett | 2009-10-16 15:25:23 -0500 (Fri, 16 Oct 2009) | 18 lines

    Never released PRI channels when using Busy() or Congestion() dialplan apps.

    When the Busy() or Congestion() application is used towards ISDN (an ISDN
    progress is sent), the responding ISDN Disconnect or Release may contain
    the ISDN cause user busy or one of the congestion causes.  In chan_dahdi.c
    these causes will only set the needbusy or needcongestion flags and not
    activate the softhangup procedure.  Unfortunately only the latter can
    interrupt the endless wait loop of Busy()/Congestion().

    Result: PRI channels staying in state busy for the rest of asterisk life
    or until the other end times out and forces the call to clear.

    (in issue 0014292)
    Reported by: tomaso
    Patches:
          disc_rel_userbusy.patch uploaded by tomaso (license 564)
          (This patch is unrelated to the issue.)
  ........
................

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

15 years agoMerged revisions 224178 via svnmerge from
Jeff Peeler [Thu, 15 Oct 2009 15:58:10 +0000 (15:58 +0000)] 
Merged revisions 224178 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r224178 | jpeeler | 2009-10-15 10:57:14 -0500 (Thu, 15 Oct 2009) | 11 lines

  Readd removed ability to allow listening to one side of the call in app_chanspy

  (Option o)

  (closes issue #15675)
  Reported by: john8675309
  Patches:
        issue15675patchtrunk.txt uploaded by dbrooks (license 790)
  Tested by: jgutierrez on users list:
   http://lists.digium.com/pipermail/asterisk-users/2009-October/239155.html
........

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

15 years agoMerged revisions 223832 via svnmerge from
Jeff Peeler [Mon, 12 Oct 2009 23:55:07 +0000 (23:55 +0000)] 
Merged revisions 223832 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223832 | jpeeler | 2009-10-12 18:48:09 -0500 (Mon, 12 Oct 2009) | 15 lines

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

  ........
    r223804 | jpeeler | 2009-10-12 18:12:50 -0500 (Mon, 12 Oct 2009) | 8 lines

    Ensure ringing continues for branched calls after progress is received

    While waiting for an answer, don't send progress for branched calls
    for which ringing was sent.

    (closes issue #15028)
    Reported by: fnordian
  ........
................

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

15 years agoMerged revisions 223756 via svnmerge from
David Vossel [Mon, 12 Oct 2009 21:03:48 +0000 (21:03 +0000)] 
Merged revisions 223756 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223756 | dvossel | 2009-10-12 15:58:27 -0500 (Mon, 12 Oct 2009) | 5 lines

  Clarifies trunkmaxsize, trunkfreq, and trunkmtu iax2 options

  SWP-151
........

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

15 years agoMerged revisions 223652 via svnmerge from
Kevin P. Fleming [Mon, 12 Oct 2009 14:32:22 +0000 (14:32 +0000)] 
Merged revisions 223652 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223652 | kpfleming | 2009-10-12 09:25:29 -0500 (Mon, 12 Oct 2009) | 13 lines

  Remove automatic switching from T.38 to voice mode in chan_sip.

  chan_sip has some code to automatically switch from T.38 mode to voice mode when
  a voice frame is written to the channel while it is in T.38 mode; this was
  intended to handle the situation when a FAX transmission has ended and the channel
  is not yet hung up, but is causing problems at the beginning of FAX sessions as
  well when there are still voice frames 'in flight' at the time the T.38 negotiation
  completes. This patch removes the automatic switchover, and changes app_fax to
  explicitly switch off T.38 mode when the FAX transmission process ends.

  (closes issue #16025)
  Reported by: jamicque
........

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

15 years agoMerged revisions 223487 via svnmerge from
Russell Bryant [Sun, 11 Oct 2009 17:31:32 +0000 (17:31 +0000)] 
Merged revisions 223487 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223487 | russell | 2009-10-11 12:25:42 -0500 (Sun, 11 Oct 2009) | 17 lines

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

  ........
    r223485 | russell | 2009-10-11 12:22:52 -0500 (Sun, 11 Oct 2009) | 6 lines

    Don't use data outside of its scope.

    The purpose of this code was to have a hangup frame put on the list of deferred
    frames.  However, the code that read the hangup frame was outside of the scope
    of where the hangup frame was declared.
  ........
    r223486 | russell | 2009-10-11 12:25:06 -0500 (Sun, 11 Oct 2009) | 2 lines

    Remove some unnecessary code.
  ........
................

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

15 years agoFix interpretation of PRIREDIRECTIONREASON set by chan_sip.
Jeff Peeler [Fri, 9 Oct 2009 23:11:42 +0000 (23:11 +0000)] 
Fix interpretation of PRIREDIRECTIONREASON set by chan_sip.

This commit is the simplest way to solve a problem that has already been solved
in trunk with the "COLP/CONP and Redirecting party information into Asterisk"
commit. In trunk the redirection reason is translated into a generic redirect
reason. I would have had to do the same fix except chan_sip never reads
PRIREDIRECTREASON. So both chan_dahdi and chan_h323 have been modified to
interpret the one different redirect reason of "no-answer" properly and set the
ISDN reason code 2 of "no reply".

(closes issue #15033)
Reported by: steinwej

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

15 years agoMerged revisions 223330 via svnmerge from
Kevin P. Fleming [Fri, 9 Oct 2009 21:00:09 +0000 (21:00 +0000)] 
Merged revisions 223330 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223330 | kpfleming | 2009-10-09 15:58:44 -0500 (Fri, 09 Oct 2009) | 10 lines

  Initiate T.38 switchover when acting as called party, regardless of FAX direction.

  SendFAX() and ReceiveFAX() can be given options to indicate whether they should
  act as the calling or called party; this mode should be used to decide whether
  to initiate a switchover to T.38, not the direction that the FAX transfer will
  take place.

  (closes issue #16039)
  Reported by: jamicque
........

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

15 years agoMerged revisions 223273 via svnmerge from
Matthew Nicholson [Fri, 9 Oct 2009 18:36:37 +0000 (18:36 +0000)] 
Merged revisions 223273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223273 | mnicholson | 2009-10-09 13:34:08 -0500 (Fri, 09 Oct 2009) | 14 lines

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

  ........
    r223225 | mnicholson | 2009-10-09 13:20:11 -0500 (Fri, 09 Oct 2009) | 8 lines

    Signal timeouts by returning AST_CONTROL_RINGING when originating calls.
    (closes issue #15104)
    Reported by: nblasgen
    Patches:
          manager-timeout1.diff uploaded by mnicholson (license 96)
    Tested by: nblasgen, mnicholson
  ........
................

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

15 years agoMerged revisions 223215 via svnmerge from
Mark Michelson [Fri, 9 Oct 2009 18:25:19 +0000 (18:25 +0000)] 
Merged revisions 223215 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223215 | mmichelson | 2009-10-09 13:17:34 -0500 (Fri, 09 Oct 2009) | 9 lines

  Recorded merge of revisions 223213 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r223213 | mmichelson | 2009-10-09 13:17:12 -0500 (Fri, 09 Oct 2009) | 3 lines

    Fix potential memory leak in app_dial.c
  ........
................

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

15 years agoMerged revisions 223206 via svnmerge from
David Vossel [Fri, 9 Oct 2009 17:56:26 +0000 (17:56 +0000)] 
Merged revisions 223206 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r223206 | dvossel | 2009-10-09 12:53:37 -0500 (Fri, 09 Oct 2009) | 16 lines

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

  ........
    r223205 | dvossel | 2009-10-09 12:52:35 -0500 (Fri, 09 Oct 2009) | 10 lines
    fixes sip registration using authuser in user.conf

    (closes issue #14954)
    Reported by: tornblad
    Tested by: mmichelson, tornblad, dvossel
  ........
................

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

15 years agoMerged revisions 223136 via svnmerge from
Matthew Nicholson [Fri, 9 Oct 2009 17:27:44 +0000 (17:27 +0000)] 
Merged revisions 223136 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223136 | mnicholson | 2009-10-09 12:14:38 -0500 (Fri, 09 Oct 2009) | 8 lines

  Don't close the sqlite database when reloading.  Only close the database when unloading.

  (closes issue #15953)
  Reported by: frawd
  Patches:
        sqlite3_rev220097.diff uploaded by frawd (license 610)
  Tested by: frawd
........

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

15 years agoMerged revisions 223132 via svnmerge from
David Vossel [Fri, 9 Oct 2009 17:10:28 +0000 (17:10 +0000)] 
Merged revisions 223132 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223132 | dvossel | 2009-10-09 11:54:02 -0500 (Fri, 09 Oct 2009) | 9 lines

  'auth=' did not parse md5 secret correctly

  (closes issue #15949)
  Reported by: ebroad
  Patches:
        authparsefix.patch uploaded by ebroad (license 878)
        15949_trunk.diff uploaded by dvossel (license 671)
  Tested by: ebroad
........

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

15 years agoMerged revisions 223088 via svnmerge from
David Vossel [Fri, 9 Oct 2009 16:00:56 +0000 (16:00 +0000)] 
Merged revisions 223088 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r223088 | dvossel | 2009-10-09 10:49:30 -0500 (Fri, 09 Oct 2009) | 14 lines

  p->peerauth is always empty in transmit_register()

  When using callbackextension or specifing the peer name
  in a registration string, the peer's specific auth settings
  set by the "auth=" strings within the peer definition are not
  used by the registration.  Thanks to ebroad for reporting the
  issue and providing the patch.

  (closes issue #15955)
  Reported by: ebroad
  Patches:
        regauthfix.patch uploaded by ebroad (license 878)
........

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

15 years agoMerged revisions 222880 via svnmerge from
Russell Bryant [Thu, 8 Oct 2009 19:57:28 +0000 (19:57 +0000)] 
Merged revisions 222880 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222880 | russell | 2009-10-08 14:52:03 -0500 (Thu, 08 Oct 2009) | 51 lines

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

  ........
    r222878 | russell | 2009-10-08 14:45:47 -0500 (Thu, 08 Oct 2009) | 44 lines

    Make filestream frame handling safer by isolating frames before returning them.

    This patch is related to a number of issues on the bug tracker that show
    crashes related to freeing frames that came from a filestream.  A number of
    fixes have been made over time while trying to figure out these problems, but
    there re still people seeing the crash.  (Note that some of these bug reports
    include information about other problems.  I am specifically addressing
    the filestream frame crash here.)

    I'm still not clear on what the exact problem is.  However, what is _very_
    clear is that we have seen quite a few problems over time related to unexpected
    behavior when we try to use embedded frames as an optimization.  In some cases,
    this optimization doesn't really provide much due to improvements made in other
    areas.

    In this case, the patch modifies filestream handling such that the embedded frame
    will not be returned.  ast_frisolate() is used to ensure that we end up with a
    completely mallocd frame.  In reality, though, we will not actually have to malloc
    every time.  For filestreams, the frame will almost always be allocated and freed
    in the same thread.  That means that the thread local frame cache will be used.
    So, going this route doesn't hurt.

    With this patch in place, some people have reported success in not seeing the
    crash anymore.

    (SWP-150)
    (AST-208)
    (ABE-1834)

    (issue #15609)
    Reported by: aragon
    Patches:
          filestream_frisolate-1.4.diff2.txt uploaded by russell (license 2)
    Tested by: aragon, russell

    (closes issue #15817)
    Reported by: zerohalo
    Tested by: zerohalo

    (closes issue #15845)
    Reported by: marhbere

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

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

15 years agoMerged revisions 222873 via svnmerge from
David Vossel [Thu, 8 Oct 2009 19:42:29 +0000 (19:42 +0000)] 
Merged revisions 222873 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222873 | dvossel | 2009-10-08 14:35:30 -0500 (Thu, 08 Oct 2009) | 6 lines

  fixes an ast_netsock_list memory leak.

  ABE-1998
  Review: https://reviewboard.asterisk.org/r/395/
........

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

15 years agoMerged revisions 222799 via svnmerge from
Richard Mudgett [Thu, 8 Oct 2009 16:49:43 +0000 (16:49 +0000)] 
Merged revisions 222799 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222799 | rmudgett | 2009-10-08 11:44:33 -0500 (Thu, 08 Oct 2009) | 19 lines

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

  ........
    r222797 | rmudgett | 2009-10-08 11:33:06 -0500 (Thu, 08 Oct 2009) | 12 lines

    Fix memory leak if chan_misdn config parameter is repeated.

    Memory leak when the same config option is set more than once in an
    misdn.conf section.  Why must this be considered?  Templates!  Defining a
    template with default port options and later adding to or overriding some
    of them.

    Patches:
          memleak-misdn.patch

    JIRA ABE-1998
  ........
................

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

15 years agoMerged revisions 222692 via svnmerge from
Richard Mudgett [Wed, 7 Oct 2009 22:02:57 +0000 (22:02 +0000)] 
Merged revisions 222692 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222692 | rmudgett | 2009-10-07 16:56:36 -0500 (Wed, 07 Oct 2009) | 21 lines

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

  ........
    r222691 | rmudgett | 2009-10-07 16:51:24 -0500 (Wed, 07 Oct 2009) | 14 lines

    chan_misdn.c:process_ast_dsp() memory leak

    misdn.conf: astdtmf must be set to "yes".  With "no", buffer loss does not
    occur.

    The translated frame "f2" when passing through ast_dsp_process() is not
    freed whenever it is not used further in process_ast_dsp().  Then in the
    end it is never ever freed.

    Patches:
          translate.patch

    JIRA ABE-1993
  ........
................

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

15 years agoMerged revisions 222543 via svnmerge from
David Vossel [Wed, 7 Oct 2009 17:46:37 +0000 (17:46 +0000)] 
Merged revisions 222543 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222543 | dvossel | 2009-10-07 12:44:52 -0500 (Wed, 07 Oct 2009) | 14 lines

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

  ........
    r222542 | dvossel | 2009-10-07 12:41:21 -0500 (Wed, 07 Oct 2009) | 8 lines

    crash on transfer

    handle_invite_replaces() attempts to uplock a pvt's
    owner channel without first verifing that it exists.

    (issue #16027)
  ........
................

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

15 years agoMerged revisions 222463 via svnmerge from
Jeff Peeler [Tue, 6 Oct 2009 23:58:30 +0000 (23:58 +0000)] 
Merged revisions 222463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222463 | jpeeler | 2009-10-06 18:56:01 -0500 (Tue, 06 Oct 2009) | 14 lines

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

  ........
    r222462 | jpeeler | 2009-10-06 18:51:19 -0500 (Tue, 06 Oct 2009) | 8 lines

    Add missing unlock(s) in dahdi_read

    (two cases in trunk)

    (closes issue #15683)
    Reported by: alecdavis
  ........
................

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

15 years agoFix potential crash when entire span request is received.
Jeff Peeler [Tue, 6 Oct 2009 22:30:11 +0000 (22:30 +0000)] 
Fix potential crash when entire span request is received.

The variable index used in this scenario for accessing the dahdi_pvts was
wrong and was most likely copied from the several other places it is used
correctly.

(closes issue #15998)
Reported by: tsearle
Patches:
     dahdi_reset_crash.patch uploaded by tsearle (license 373)

Modified:
   branches/1.4/channels/chan_dahdi.c

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

15 years agoMerged revisions 222351 via svnmerge from
Jeff Peeler [Tue, 6 Oct 2009 20:36:41 +0000 (20:36 +0000)] 
Merged revisions 222351 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222351 | jpeeler | 2009-10-06 15:35:19 -0500 (Tue, 06 Oct 2009) | 9 lines

  Fix 222298 (crash during destruction of second channel when variable set with
  setvar).

  I mistakenly reasoned that setvar would be used on all channels. Since it can
  be set per channel, give each dahdi channel a copy of the variable.

  (related to #15899)
........

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

15 years agoRecorded merge of revisions 222309 via svnmerge from
Tilghman Lesher [Tue, 6 Oct 2009 19:34:48 +0000 (19:34 +0000)] 
Recorded merge of revisions 222309 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222309 | tilghman | 2009-10-06 14:31:39 -0500 (Tue, 06 Oct 2009) | 10 lines

  Change schema query to involve the use of an optional schema parameter.
  This change is done in such a way as to allow the driver to continue to
  function with older databases which don't have these features.
  (closes issue #16000)
   Reported by: jamicque
   Patches:
         20091002__issue16000.diff.txt uploaded by tilghman (license 14)
         20091002__issue16000__1.6.1.diff.txt uploaded by tilghman (license 14)
   Tested by: jamicque
........

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

15 years agoMerged revisions 222298 via svnmerge from
Jeff Peeler [Tue, 6 Oct 2009 19:26:57 +0000 (19:26 +0000)] 
Merged revisions 222298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222298 | jpeeler | 2009-10-06 14:24:59 -0500 (Tue, 06 Oct 2009) | 9 lines

  Fix crash during destruction of second channel when variable set with setvar.

  The setvar line in chan_dahdi.conf is shared among all the channels, so make
  sure to only free the resources only when the last channel is destroyed.

  (closes issue #15899)
  Reported by: tzafrir
........

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

15 years agoMerged revisions 222273 via svnmerge from
Tilghman Lesher [Tue, 6 Oct 2009 19:20:22 +0000 (19:20 +0000)] 
Merged revisions 222273 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222273 | tilghman | 2009-10-06 14:17:11 -0500 (Tue, 06 Oct 2009) | 5 lines

  When we call a gosub routine, the variables should be scoped to avoid contaminating the caller.
  This affected the ~~EXTEN~~ hack, where a subroutine might have changed the
  value before it was used in the caller.
  Patch by myself, tested by ebroad on #asterisk
........

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

15 years agoMerged revisions 222176 via svnmerge from
Kevin P. Fleming [Tue, 6 Oct 2009 01:36:36 +0000 (01:36 +0000)] 
Merged revisions 222176 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222176 | kpfleming | 2009-10-05 20:24:24 -0500 (Mon, 05 Oct 2009) | 27 lines

  Recorded merge of revisions 222152 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r222152 | kpfleming | 2009-10-05 20:16:36 -0500 (Mon, 05 Oct 2009) | 20 lines

    Fix ao2_iterator API to hold references to containers being iterated.

    See Mantis issue for details of what prompted this change.

    Additional notes:

    This patch changes the ao2_iterator API in two ways: F_AO2I_DONTLOCK
    has become an enum instead of a macro, with a name that fits our
    naming policy; also, it is now necessary to call
    ao2_iterator_destroy() on any iterator that has been
    created. Currently this only releases the reference to the container
    being iterated, but in the future this could also release other
    resources used by the iterator, if the iterator implementation changes
    to use additional resources.

    (closes issue #15987)
    Reported by: kpfleming

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

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

15 years agoMerged revisions 222110 via svnmerge from
Kevin P. Fleming [Mon, 5 Oct 2009 19:53:18 +0000 (19:53 +0000)] 
Merged revisions 222110 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r222110 | kpfleming | 2009-10-05 14:45:00 -0500 (Mon, 05 Oct 2009) | 25 lines

  Allow non-compliant T.38 endpoints to be supportable via configuration option.

  Many T.38 endpoints incorrectly send the maximum IFP frame size they can accept
  as the T38FaxMaxDatagram value in their SDP, when in fact this value is
  supposed to be the maximum UDPTL payload size (datagram size) they can accept.
  If the value they supply is small enough (a commonly supplied value is '72'),
  T.38 UDPTL transmissions will likely fail completely because the UDPTL packets
  will not have enough room for a primary IFP frame and the redundancy used for
  error correction. If this occurs, the Asterisk UDPTL stack will emit log messages
  warning that data loss may occur, and that the value may need to be overridden.

  This patch extends the 't38pt_udptl' configuration option in sip.conf to allow
  the administrator to override the value supplied by the remote endpoint and
  supply a value that allows T.38 FAX transmissions to be successful with that
  endpoint. In addition, in any SIP call where the override takes effect, a debug
  message will be printed to that effect. This patch also removes the
  T38FaxMaxDatagram configuration option from udptl.conf.sample, since it has not
  actually had any effect for a number of releases.

  In addition, this patch cleans up the T.38 documentation in sip.conf.sample
  (which incorrectly documented that T.38 support was passthrough only).

  (issue #15586)
  Reported by: globalnetinc
........

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

15 years agoMerged revisions 222030 via svnmerge from
David Vossel [Fri, 2 Oct 2009 17:36:22 +0000 (17:36 +0000)] 
Merged revisions 222030 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r222030 | dvossel | 2009-10-02 12:34:07 -0500 (Fri, 02 Oct 2009) | 9 lines

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

  ........
    r222026 | dvossel | 2009-10-02 12:32:13 -0500 (Fri, 02 Oct 2009) | 3 lines

    Removes unnecessary unlock, clarifies a memcpy.
  ........
................

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

15 years agoMerged revisions 221971 via svnmerge from
Tilghman Lesher [Fri, 2 Oct 2009 17:01:42 +0000 (17:01 +0000)] 
Merged revisions 221971 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221971 | tilghman | 2009-10-02 11:59:57 -0500 (Fri, 02 Oct 2009) | 9 lines

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

  ........
    r221970 | tilghman | 2009-10-02 11:58:03 -0500 (Fri, 02 Oct 2009) | 2 lines

    Ensure the result of the hash function is positive.  Negative array offsets suck.
  ........
................

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

15 years agoHash needs to return a positive integer
Tilghman Lesher [Fri, 2 Oct 2009 16:53:52 +0000 (16:53 +0000)] 
Hash needs to return a positive integer

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

15 years agoRevert XML docs that ended up in the 1.6.0 and 1.6.1 branches during a merge.
Sean Bright [Fri, 2 Oct 2009 13:04:26 +0000 (13:04 +0000)] 
Revert XML docs that ended up in the 1.6.0 and 1.6.1 branches during a merge.

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

15 years agoMerged revisions 221920 via svnmerge from
Tilghman Lesher [Fri, 2 Oct 2009 03:06:32 +0000 (03:06 +0000)] 
Merged revisions 221920 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221920 | tilghman | 2009-10-01 22:04:34 -0500 (Thu, 01 Oct 2009) | 4 lines

  Initialize a variable that we check immediately upon startup.
  (closes issue #15973)
   Reported by: atis
........

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

15 years agoMerged revisions 221844 via svnmerge from
Richard Mudgett [Fri, 2 Oct 2009 01:26:47 +0000 (01:26 +0000)] 
Merged revisions 221844 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221844 | rmudgett | 2009-10-01 20:09:31 -0500 (Thu, 01 Oct 2009) | 33 lines

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

  ........
    r221769 | rmudgett | 2009-10-01 18:18:28 -0500 (Thu, 01 Oct 2009) | 26 lines

    Occasionally losing use of B channels in chan_misdn.

    I have not been able to reproduce the problem of losing channels.
    However, I have seen in the code a reentrancy problem that might give
    these symptoms.

    The reentrancy patch does several things:
    1) Guards B channel and B channel structure allocation.
    2) Makes the B channel structure find routines more precise in locating records.
    3) Never leave a B channel allocated if we received cause 44.

    The last item may cause temporary outgoing call problems, but they should
    clear when the line becomes idle.

    (closes issue #15490)
    Reported by: slutec18
    Patches:
          issue15490_channel_alloc_reentrancy.patch uploaded by rmudgett (license 664)
    Tested by: rmudgett, slutec18

    (closes issue #15458)
    Reported by: FabienToune
    Patches:
          issue15458_channel_alloc_reentrancy.patch uploaded by rmudgett (license 664)
    Tested by: FabienToune, rmudgett, slutec18
  ........
................

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

15 years agoMerged revisions 221777 via svnmerge from
Tilghman Lesher [Fri, 2 Oct 2009 00:06:46 +0000 (00:06 +0000)] 
Merged revisions 221777 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221777 | tilghman | 2009-10-01 18:59:15 -0500 (Thu, 01 Oct 2009) | 9 lines

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

  ........
    r221776 | tilghman | 2009-10-01 18:53:12 -0500 (Thu, 01 Oct 2009) | 2 lines

    Fix a bunch of off-by-one errors
  ........
................

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

15 years agoMerged revisions 221705 via svnmerge from
Tilghman Lesher [Thu, 1 Oct 2009 20:38:59 +0000 (20:38 +0000)] 
Merged revisions 221705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221705 | tilghman | 2009-10-01 15:09:46 -0500 (Thu, 01 Oct 2009) | 2 lines

  Revision 220906 (a merge from 1.4) was not merged correctly, causing a problem with non-dynamic peers.
........

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

15 years agoMerged revisions 221697 via svnmerge from
David Vossel [Thu, 1 Oct 2009 19:52:24 +0000 (19:52 +0000)] 
Merged revisions 221697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221697 | dvossel | 2009-10-01 14:33:33 -0500 (Thu, 01 Oct 2009) | 9 lines

  outbound tls connections were not defaulting to port 5061

  (closes issue #15854)
  Reported by: dvossel
  Patches:
        sip_port_config_trunk.diff uploaded by dvossel (license 671)
  Tested by: dvossel
........

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

15 years agoMerged revisions 221554,221589 via svnmerge from
Matthew Nicholson [Thu, 1 Oct 2009 17:01:03 +0000 (17:01 +0000)] 
Merged revisions 221554,221589 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221554 | oej | 2009-10-01 02:00:04 -0500 (Thu, 01 Oct 2009) | 3 lines

  Simplify code for porturi, use TRUE/FALSE constructs when it's just TRUE or FALSE.
................
  r221589 | mnicholson | 2009-10-01 10:26:20 -0500 (Thu, 01 Oct 2009) | 9 lines

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

  ........
    r221588 | mnicholson | 2009-10-01 10:24:00 -0500 (Thu, 01 Oct 2009) | 2 lines

    Use unsigned ints for portinuri flags.
  ........
................

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

15 years agoMerged revisions 221592 via svnmerge from
Kevin P. Fleming [Thu, 1 Oct 2009 16:19:43 +0000 (16:19 +0000)] 
Merged revisions 221592 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221592 | kpfleming | 2009-10-01 11:16:09 -0500 (Thu, 01 Oct 2009) | 12 lines

  Remove ability to control T.38 FAX error correction from udptl.conf.

  chan_sip has had the ability to control T.38 FAX error correction mode on a per-peer
  (or global) basis for a couple of releases now, which is where it should have been
  all along. This patch removes the ability to configure it in udptl.conf, but issues
  a warning if the user tries to do, telling them to look at sip.conf.sample for how
  to configure it now. For any SIP peers that are T.38 enabled in sip.conf, there is
  already a default for FEC error correction even if the user does not specify any mode,
  so this change will not turn off error correction by default, it will have the same
  default value that has been in the udptl.conf sample file.
........

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

15 years agoMerged revisions 221484 via svnmerge from
Matthew Nicholson [Wed, 30 Sep 2009 23:10:05 +0000 (23:10 +0000)] 
Merged revisions 221484 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221484 | mnicholson | 2009-09-30 18:04:03 -0500 (Wed, 30 Sep 2009) | 2 lines

  Cleaned up merge from r221432
........

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

15 years agoMerged revisions 221432 via svnmerge from
Matthew Nicholson [Wed, 30 Sep 2009 22:36:54 +0000 (22:36 +0000)] 
Merged revisions 221432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221432 | mnicholson | 2009-09-30 15:40:20 -0500 (Wed, 30 Sep 2009) | 17 lines

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

  ........
    r221360 | mnicholson | 2009-09-30 14:36:06 -0500 (Wed, 30 Sep 2009) | 10 lines

    Fix SRV lookup and Request-URI generation in chan_sip.

    This patch adds a new field "portinuri" to the sip dialog struct and the sip peer struct.  That field is used during RURI generation to determine if the port should be included in the RURI.  It is also used in some places to determine if an SRV lookup should occur.

    (closes issue #14418)
    Reported by: klaus3000
    Tested by: klaus3000, mnicholson

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

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

15 years agoMerged revisions 221436 via svnmerge from
Matthias Nick [Wed, 30 Sep 2009 21:41:06 +0000 (21:41 +0000)] 
Merged revisions 221436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221436 | mnick | 2009-09-30 16:15:01 -0500 (Wed, 30 Sep 2009) | 2 lines

  Prevents from division by zero
........

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

15 years agoMerged revisions 221368 via svnmerge from
Matthias Nick [Wed, 30 Sep 2009 20:10:02 +0000 (20:10 +0000)] 
Merged revisions 221368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221368 | mnick | 2009-09-30 14:42:36 -0500 (Wed, 30 Sep 2009) | 23 lines

  Merged revisions 221153,221157,221303 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r221153 | mnick | 2009-09-30 10:37:39 -0500 (Wed, 30 Sep 2009) | 2 lines

    check bounds - prevents for buffer overflow
  ........
    r221157 | mnick | 2009-09-30 10:41:46 -0500 (Wed, 30 Sep 2009) | 8 lines

    added a new dialplan function 'CSV_QUOTE' and changed the cdr_custom.sample.conf

    (closes issue #15471)
    Reported by: dkerr
    Patches:
          csv_quote_14.txt uploaded by mnick (license )
    Tested by: mnick
  ........
    r221303 | mnick | 2009-09-30 14:02:00 -0500 (Wed, 30 Sep 2009) | 2 lines

    changed the prototype definition of csv_quote
  ........
................

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

15 years agoMerged revisions 221266 via svnmerge from
Terry Wilson [Wed, 30 Sep 2009 18:58:49 +0000 (18:58 +0000)] 
Merged revisions 221266 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221266 | twilson | 2009-09-30 12:52:30 -0500 (Wed, 30 Sep 2009) | 32 lines

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

  ........
    r221086 | twilson | 2009-09-30 09:49:11 -0500 (Wed, 30 Sep 2009) | 25 lines

    Change the SSRC by default when our media stream changes

    Be default, change SSRC when doing an audio stream changes Asterisk doesn't
    honor marker bit when reinvited to already-bridged RTP streams,resulting in
    far-end stack discarding packets with "old" timestamps that areactually part of
    a new stream.  This patch sends AST_CONTROL_SRCUPDATE whenever there is a
    reinvite, unless the 'constantssrc' is set to true in sip.conf.

    The original issue reported to Digium support detailed the following situation:
    ITSP <-> Asterisk 1.4.26.2 <-> SIP-based Application Server Call comes in
    fromITSP, Asterisk dials the app server which sends a re-invite back
    toAsterisk--not to negotiate to send media directly to the ITSP, but to
    indicatethat it's changing the stream it's sending to Asterisk.  The app
    servergenerates a new SSRC, sequence numbers, timestamps, and sets the marker
    bit on the new stream.  Asterisk passes through the teimstamp of the new stream,
    butdoes not reset the SSRC, sequence numbers, or set the marker bit.

    When the timestamp on the new stream is older than the timestamp on the
    originalstream, the ITSP (which doesn't know there has been any change) discards
    the newframes because it thinks they are too old.  This patch addresses this by
    changing the SSRC on a stream update unless constantssrc=true is set in
    sip.conf.

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

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

15 years agoMerged revisions 221201 via svnmerge from
Tilghman Lesher [Wed, 30 Sep 2009 16:57:50 +0000 (16:57 +0000)] 
Merged revisions 221201 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r221201 | tilghman | 2009-09-30 11:56:42 -0500 (Wed, 30 Sep 2009) | 14 lines

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

  ........
    r221200 | tilghman | 2009-09-30 11:55:21 -0500 (Wed, 30 Sep 2009) | 7 lines

    Avoid a potential NULL dereference.
    (closes issue #15865)
     Reported by: kobaz
     Patches:
           20090915__issue15865.diff.txt uploaded by tilghman (license 14)
     Tested by: kobaz
  ........
................

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

15 years agoMerged revisions 221085 via svnmerge from
Sean Bright [Wed, 30 Sep 2009 14:55:14 +0000 (14:55 +0000)] 
Merged revisions 221085 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221085 | seanbright | 2009-09-30 10:47:58 -0400 (Wed, 30 Sep 2009) | 9 lines

  Clarify documentation for VoiceMailMain()'s a() option.

  We require box numbers, not names as the documentation implies.
  (issue #14740)
  Reported by: pj
  Patches:
        __20090729-app_voicemail-documentation.patch uploaded by lmadsen (license 10)
  Tested by: seanbright, lmadsen
........

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

15 years agoRecorded merge of revisions 221044 via svnmerge from
Tilghman Lesher [Wed, 30 Sep 2009 04:41:52 +0000 (04:41 +0000)] 
Recorded merge of revisions 221044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r221044 | tilghman | 2009-09-29 23:32:36 -0500 (Tue, 29 Sep 2009) | 8 lines

  Allow locks to be inherited through a masquerade without causing starvation.
  (closes issue #14859)
   Reported by: atis
   Patches:
         20090821__issue14859.diff.txt uploaded by tilghman (license 14)
         20090925__issue14859__1.6.1.diff.txt uploaded by tilghman (license 14)
   Tested by: atis, tilghman
........

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

15 years agoMerged revisions 220906 via svnmerge from
Tilghman Lesher [Tue, 29 Sep 2009 22:07:59 +0000 (22:07 +0000)] 
Merged revisions 220906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220906 | tilghman | 2009-09-29 14:57:37 -0500 (Tue, 29 Sep 2009) | 16 lines

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

  ........
    r220873 | tilghman | 2009-09-29 12:59:26 -0500 (Tue, 29 Sep 2009) | 9 lines

    Reduce CPU usage related to building a peer merely for devicestates.
    This fixes a 100% CPU problem in the SIP driver, found by profiling
    the driver while the problem was occurring.
    (closes issue #14309)
     Reported by: pkempgen
     Patches:
           20090924__issue14309.diff.txt uploaded by tilghman (license 14)
     Tested by: pkempgen, vrban
  ........
................

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

15 years agoAvoid a deadlock in chanspy, just in case the spyee is masqueraded and chanspy_ds_cha...
Matthew Nicholson [Tue, 29 Sep 2009 20:25:14 +0000 (20:25 +0000)] 
Avoid a deadlock in chanspy, just in case the spyee is masqueraded and chanspy_ds_chan_fixup() is called with the channel locked.

(closes issue #15965)
Reported by: atis
Patches:
      chanspy-deadlock-fix1.diff uploaded by mnicholson (license 96)
Tested by: atis

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

15 years agoMerged revisions 220833 via svnmerge from
Jeff Peeler [Tue, 29 Sep 2009 17:05:40 +0000 (17:05 +0000)] 
Merged revisions 220833 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r220833 | jpeeler | 2009-09-29 11:58:29 -0500 (Tue, 29 Sep 2009) | 12 lines

  Make deletion of temporary greetings work properly with IMAP_STORAGE

  When imapgreetings was set to yes, the message was being deleted but wasn't
  actually being expunged. When imapgreetings was set to no, the file based
  message was not being deleted at all. All good now!

  (closes issue #14949)
  Reported by: noahisaac
  Patches:
        vm_tempgreeting_removal.patch uploaded by noahisaac (license 748),
        modified by me
........

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

15 years agoMerged revisions 220721 via svnmerge from
Sean Bright [Mon, 28 Sep 2009 19:13:55 +0000 (19:13 +0000)] 
Merged revisions 220721 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220721 | seanbright | 2009-09-28 15:11:20 -0400 (Mon, 28 Sep 2009) | 10 lines

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

  ........
    r220717 | seanbright | 2009-09-28 15:09:25 -0400 (Mon, 28 Sep 2009) | 3 lines

    When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
    so we override any default optimization levels for a particular install.
  ........
................

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

15 years agoBlocked revisions 220718 via svnmerge
Jeff Peeler [Mon, 28 Sep 2009 19:11:06 +0000 (19:11 +0000)] 
Blocked revisions 220718 via svnmerge

........
  r220718 | jpeeler | 2009-09-28 14:10:10 -0500 (Mon, 28 Sep 2009) | 10 lines

  Fix building of registration entry in build_peer when using callbackextension

  Check for remotesecret option was unintentionally always true, which therefore
  caused the secret option to never be used. Thanks to dvossel for pointing out
  the exact fix.

  (closes issue #15943)
  Reported by: tpsast
........

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

15 years agoBlocked revisions 220629 via svnmerge
Michiel van Baak [Sun, 27 Sep 2009 20:43:02 +0000 (20:43 +0000)] 
Blocked revisions 220629 via svnmerge

........
  r220629 | mvanbaak | 2009-09-27 22:40:16 +0200 (Sun, 27 Sep 2009) | 3 lines

  add name argument for the CALLERID dialplan function to the xml documentation.
  Pointed out to me on IRC by snuff-home. Thanks
........

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

15 years agoMerged revisions 220586 via svnmerge from
Tilghman Lesher [Sat, 26 Sep 2009 15:12:49 +0000 (15:12 +0000)] 
Merged revisions 220586 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r220586 | tilghman | 2009-09-26 10:10:28 -0500 (Sat, 26 Sep 2009) | 2 lines

  Allow AES to compile, when OpenSSL is not present.
........

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

15 years agoMerged revisions 220365 via svnmerge from
David Vossel [Thu, 24 Sep 2009 20:38:31 +0000 (20:38 +0000)] 
Merged revisions 220365 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r220365 | dvossel | 2009-09-24 15:37:20 -0500 (Thu, 24 Sep 2009) | 8 lines

  fixes tcptls_session memory leak caused by ref count error

  (closes issue #15939)
  Reported by: dvossel

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

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

15 years agoMerged revisions 220289 via svnmerge from
Tilghman Lesher [Thu, 24 Sep 2009 19:42:33 +0000 (19:42 +0000)] 
Merged revisions 220289 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220289 | tilghman | 2009-09-24 14:41:02 -0500 (Thu, 24 Sep 2009) | 13 lines

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

  ........
    r220288 | tilghman | 2009-09-24 14:39:41 -0500 (Thu, 24 Sep 2009) | 6 lines

    Implicitly sending a progress signal breaks some applications.
    Call Progress() in your dialplan if you explicitly want progress to be sent.
    (Reverts change 216430, closes issue #15957)
    Reported by: Pavel Troller on the Asterisk-Dev mailing list
    http://lists.digium.com/pipermail/asterisk-dev/2009-September/039897.html
  ........
................

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

15 years agoMerged revisions 220217 via svnmerge from
Sean Bright [Thu, 24 Sep 2009 18:22:09 +0000 (18:22 +0000)] 
Merged revisions 220217 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220217 | seanbright | 2009-09-24 14:19:41 -0400 (Thu, 24 Sep 2009) | 9 lines

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

  ........
    r220213 | seanbright | 2009-09-24 14:18:18 -0400 (Thu, 24 Sep 2009) | 1 line

    Resolve parallel build warnings.

    Reported by Klaus Darilion on the asterisk-dev mailing list.
  ........
................

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

15 years agoMerged revisions 220100 via svnmerge from
Sean Bright [Thu, 24 Sep 2009 14:49:35 +0000 (14:49 +0000)] 
Merged revisions 220100 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220100 | seanbright | 2009-09-24 10:44:08 -0400 (Thu, 24 Sep 2009) | 9 lines

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

  ........
    r220099 | seanbright | 2009-09-24 10:41:57 -0400 (Thu, 24 Sep 2009) | 2 lines

    Remove the remaining bashisms in the Makefile/mkpkgconfig
  ........
................

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

15 years agoMerged revisions 220028 via svnmerge from
Michiel van Baak [Thu, 24 Sep 2009 08:40:12 +0000 (08:40 +0000)] 
Merged revisions 220028 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r220028 | mvanbaak | 2009-09-24 10:36:18 +0200 (Thu, 24 Sep 2009) | 14 lines

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

  ........
    r220027 | mvanbaak | 2009-09-24 10:33:50 +0200 (Thu, 24 Sep 2009) | 7 lines

    mkpkgconfig does not need bash so make it use /bin/sh
    This fixes building on all systems that don't have bash
    at /bin/bash

    Reported by _ys on #asterisk-dev
    Tested by _ys on #asterisk-dev
  ........
................

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