Commit Graph

18061 Commits

Author SHA1 Message Date
David Vossel
369b4646b4 Merged revisions 229093 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r229093 | dvossel | 2009-11-10 09:27:45 -0600 (Tue, 10 Nov 2009) | 11 lines
  
  fixes pgsql double free of threadstorage
  
  A thread storage variable was being freed incorrectly, which
  resulted in a double free if two queries were made in the same thread.
  
  (closes issue #16011)
  Reported by: cristiandimache
  Patches:
        issue16011.diff uploaded by dvossel (license 671)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@229095 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-10 15:28:57 +00:00
Gavin Henry
faaf328e4d Merged revisions 229050 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r229050 | ghenry | 2009-11-10 11:16:10 +0000 (Tue, 10 Nov 2009) | 20 lines
  
  Schema file additions
  
  * Added AsteriskDialplan, AsteriskAccount and AsteriskMailbox  objectClasses
    to allow standalone dialplan, account and mailbox entries (STRUCTURAL)
  * Added new Fields:
  - AstAccountLanguage, AstAccountTransport, AstAccountPromiscRedir,
  - AstAccountAccountCode, AstAccountSetVar, AstAccountAllowOverlap,
  - AstAccountVideoSupport, AstAccountIgnoreSDPVersion
  * Removed redundant IPaddr (there's already IPAddress)
  - Gives more configuration Flags for SIP-Users available (tested)
  - Allows to create Asterisk Attributes in defined Asterisk ObjectClasses
    without extensibleObject (which really should be the last resort); gives
    also additional possibilities for LDAP-filter 
  
  (closes issue #15874)
  Reported by: Medozas
  Patches:
        asterisk.ldap-schema.patch uploaded by Medozas (license 41)
  Tested by: Medozas, suretec
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@229067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-10 11:22:37 +00:00
Terry Wilson
42048030e0 Merged revisions 229015 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r229015 | twilson | 2009-11-09 16:50:22 -0600 (Mon, 09 Nov 2009) | 8 lines
  
  Don't crash when bridge->tech_pvt == NULL
  
  This is a similar solution to what is in place for chan_agent
  
  (closes issue #16003)
  Reported by: atis
  Tested by: twilson
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@229016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-09 22:52:43 +00:00
David Vossel
bac2f04b1a fixes segfault when transferring a queue caller
In sip_hangup we attempted to lock p->owner after we set it to NULL.
Thanks to fhackenberger for reporting the issue and submitting a patch.

(closes issue 0015848)
Reported by: fhackenberger
Patches:
      digium_bug_0015848 uploaded by fhackenberger (license 592)
Tested by: fhackenberger, lmadsen, TomS, shin-shoryuken, dvossel



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@229014 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-09 22:18:23 +00:00
Leif Madsen
78764b4189 Merged revisions 228897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228897 | lmadsen | 2009-11-09 09:38:38 -0600 (Mon, 09 Nov 2009) | 14 lines
  
  Merged revisions 228896 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228896 | lmadsen | 2009-11-09 09:37:43 -0600 (Mon, 09 Nov 2009) | 6 lines
    
    Update WARNING message.
    Update a WARNING message to give a suggested fix when encountered.
    
    (closes issue #16198)
    Reported by: atis
    Tested by: atis
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228899 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-09 15:39:37 +00:00
Matthew Nicholson
d0763598bb Merged revisions 228858 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228858 | mnicholson | 2009-11-09 08:37:07 -0600 (Mon, 09 Nov 2009) | 15 lines
  
  Merged revisions 228827 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228827 | mnicholson | 2009-11-09 08:16:03 -0600 (Mon, 09 Nov 2009) | 8 lines
    
    Perform limited bounds checking when destroying ast_mutex_t structures to make sure we don't try to use negative indices.
    
    (closes issue #15588)
    Reported by: zerohalo
    Patches:
          20090820__issue15588.diff.txt uploaded by tilghman (license 14)
    Tested by: zerohalo
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228860 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-09 14:54:25 +00:00
David Vossel
19bff2b866 Merged revisions 228693 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228693 | dvossel | 2009-11-06 16:35:44 -0600 (Fri, 06 Nov 2009) | 16 lines
  
  Merged revisions 228692 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228692 | dvossel | 2009-11-06 16:33:27 -0600 (Fri, 06 Nov 2009) | 9 lines
    
    fixes audiohook write crash occuring in chan_spy whisper mode.
    
    After writing to the audiohook list in ast_write(), frames
    were being freed incorrectly.  Under certain conditions this
    resulted in a double free crash.
    
    (closes issue #16133)
    Reported by: wetwired
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228695 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 22:37:35 +00:00
Matthew Nicholson
4413bd2360 Merged revisions 228620 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228620 | mnicholson | 2009-11-06 13:47:11 -0600 (Fri, 06 Nov 2009) | 15 lines
  
  Merged revisions 228378 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228378 | mnicholson | 2009-11-06 10:26:59 -0600 (Fri, 06 Nov 2009) | 8 lines
    
    Properly handle '=' while decoding base64 messages and null terminate strings returned from BASE64_DECODE.
    
    (closes issue #15271)
    Reported by: chappell
    Patches:
          base64_fix.patch uploaded by chappell (license 8)
    Tested by: kobaz
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228650 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 20:37:09 +00:00
Joshua Colp
a40c49579c Merged revisions 228548 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228548 | file | 2009-11-06 14:37:59 -0400 (Fri, 06 Nov 2009) | 11 lines
  
  Merged revisions 228547 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228547 | file | 2009-11-06 14:32:58 -0400 (Fri, 06 Nov 2009) | 4 lines
    
    Don't overwrite caller ID name on a trunk with the configured fullname when using users.conf
    
    (issue ABE-1989)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 18:41:59 +00:00
Joshua Colp
8a71ea8aa3 Merged revisions 228499 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228499 | file | 2009-11-06 13:52:00 -0400 (Fri, 06 Nov 2009) | 2 lines
  
  Fix the localchannel.tex file.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228502 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 17:53:58 +00:00
David Vossel
7a06275fa9 Merged revisions 228441 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228441 | dvossel | 2009-11-06 11:22:31 -0600 (Fri, 06 Nov 2009) | 3 lines
  
  Fixes merging issue from 1.4, frame data is held in data.ptr in trunk
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228451 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 17:24:46 +00:00
David Vossel
8d735dfdaf Merged revisions 228420 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228420 | dvossel | 2009-11-06 11:09:01 -0600 (Fri, 06 Nov 2009) | 19 lines
  
  Merged revisions 228418 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228418 | dvossel | 2009-11-06 11:07:13 -0600 (Fri, 06 Nov 2009) | 13 lines
    
    fixes segfault in iLBC
    
    For reasons not yet known, it appears possible for an ast_frame
    to have a datalen greater than zero while the actual data is NULL
    during Packet Loss Concealment.  Most codecs don't support PLC so
    this doesn't affect them.  This patch catches the malformed frame
    and prevents the crash from occuring.  Additional efforts to determine
    why it is possible for a frame to look like this are still being
    investigated.
    
    (issue #16979)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 17:10:05 +00:00
Joshua Colp
c27624c621 Merged revisions 228410 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228410 | file | 2009-11-06 12:42:23 -0400 (Fri, 06 Nov 2009) | 14 lines
  
  Merged revisions 228409 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7 lines
    
    Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.
    
    (closes issue #15560)
    Reported by: jvandal
    (closes issue #15709)
    Reported by: covici
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 16:44:23 +00:00
David Vossel
b1d8aea774 Merged revisions 228339 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r228339 | dvossel | 2009-11-06 09:42:46 -0600 (Fri, 06 Nov 2009) | 12 lines
  
  Merged revisions 228338 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r228338 | dvossel | 2009-11-06 09:41:41 -0600 (Fri, 06 Nov 2009) | 5 lines
    
    fixes crash in astfd.c
    
    (closes issue #15981)
    Reported by: slavon
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 15:44:04 +00:00
David Vossel
b1f76a6aee Merged revisions 228268 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228268 | dvossel | 2009-11-06 09:04:24 -0600 (Fri, 06 Nov 2009) | 9 lines
  
  fixes memory leak in func_audiohookinherit.c
  
  (closes issue #15394)
  Reported by: boroda
  Patches:
        bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
  Tested by: dbrooks, boroda
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 15:05:47 +00:00
David Vossel
919783597e Merged revisions 227238 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r227238 | dvossel | 2009-11-03 11:12:52 -0600 (Tue, 03 Nov 2009) | 5 lines
  
  user.conf entries in SIP were not having their peer type set.
  
  (closes issue #16120)
  Reported by: jsmith
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228267 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-06 14:58:44 +00:00
Tilghman Lesher
b84af6760a Merged revisions 228196 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228196 | tilghman | 2009-11-05 16:12:45 -0600 (Thu, 05 Nov 2009) | 2 lines
  
  Yet another error message in the dialplan (thanks, rmudgett/russellb)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-05 22:13:37 +00:00
Tilghman Lesher
0eebf090b4 Merged revisions 228191 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228191 | tilghman | 2009-11-05 15:24:21 -0600 (Thu, 05 Nov 2009) | 7 lines
  
  MEETME_INFO should not return a literal error message to the dialplan.
  (closes issue #15450)
   Reported by: JimVanM
   Patches: 
         meetmeinfopatch.diff.txt uploaded by dbrooks (license 790)
   Tested by: JimVanM
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-05 21:26:13 +00:00
Jeff Peeler
6d7de1cd98 Merged revisions 228189 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r228189 | jpeeler | 2009-11-05 15:23:06 -0600 (Thu, 05 Nov 2009) | 11 lines
  
  Fix the fix for chanspy option o 
  
  In 224178, I assumed the uploaded patch was correct as it had received positive
  feedback. The flags were being checked in the incorrect location. Upon testing
  the fix this time it was also found that the flags from the dialplan weren't
  being copied to the chanspy_translation_helper.
  
  (closes issue #16167)
  Reported by: marhbere
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@228192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-11-05 21:24:33 +00:00
David Brooks
fc208f59ad 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
2009-11-05 19:41:40 +00:00
Jason Parker
382a3a7ea8 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
2009-11-05 19:19:34 +00:00
Tilghman Lesher
5a06e9be0b 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
2009-11-05 17:10:06 +00:00
Jeff Peeler
95d01d01db 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
2009-11-04 23:56:19 +00:00
Matthew Nicholson
b464edd1c7 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
2009-11-04 21:15:46 +00:00
Matthew Nicholson
0d49e1196b 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
2009-11-04 20:17:24 +00:00
Joshua Colp
07c05f39d9 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
2009-11-04 19:27:52 +00:00
Joshua Colp
cdc5621ed2 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
2009-11-04 19:23:01 +00:00
Jason Parker
52cda4cb2c 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
2009-11-03 20:01:04 +00:00
Leif Madsen
026420be6d 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
2009-11-03 19:49:31 +00:00
Leif Madsen
daf31332fd 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
2009-11-03 19:26:14 +00:00
Richard Mudgett
9028b47fe2 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
2009-11-03 18:11:08 +00:00
Joshua Colp
9366e1f3f7 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
2009-11-03 15:38:57 +00:00
Leif Madsen
e999ce942d 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
2009-11-03 15:24:51 +00:00
Olle Johansson
8a3dba806f 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
2009-11-03 13:32:24 +00:00
David Brooks
e4ab593e8a 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
2009-11-02 21:05:58 +00:00
Joshua Colp
c968818ffb 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
2009-11-02 18:11:19 +00:00
Tilghman Lesher
e9b5b3d1fc 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
2009-11-02 17:17:03 +00:00
Joshua Colp
bf7f97a3ff 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
2009-10-29 18:15:41 +00:00
Leif Madsen
8ed14498d8 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
2009-10-28 20:15:51 +00:00
Leif Madsen
14026f43e2 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
2009-10-28 19:51:12 +00:00
Tilghman Lesher
df321790db 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
2009-10-28 18:05:54 +00:00
Tilghman Lesher
23800e3348 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
2009-10-27 20:24:02 +00:00
Terry Wilson
606c8a29aa 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
2009-10-27 17:04:41 +00:00
Tzafrir Cohen
1949be5230 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
2009-10-26 23:48:25 +00:00
Jeff Peeler
2e6c200b27 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
2009-10-26 19:41:30 +00:00
Kevin P. Fleming
e236b8ad49 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
2009-10-26 15:51:10 +00:00
David Vossel
8dd2ce2ace 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
2009-10-23 14:50:00 +00:00
Kevin P. Fleming
e5f4dceb6a 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
2009-10-23 14:07:20 +00:00
David Vossel
4672e2805b 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
2009-10-22 22:07:05 +00:00
Leif Madsen
09cd0f9b0d 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
2009-10-22 21:54:00 +00:00