Commit Graph

16798 Commits

Author SHA1 Message Date
Joshua Colp
75a4a954f2 Blocked revisions 178801 via svnmerge
........
  r178801 | file | 2009-02-26 12:42:36 -0400 (Thu, 26 Feb 2009) | 5 lines
  
  Fix an issue where the timer for file playback would not be stopped if DAHDI was not installed.
  
  (closes issue #14541)
  Reported by: grant
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-26 16:44:08 +00:00
David Vossel
e515340cc2 Merged revisions 178767 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178767 | dvossel | 2009-02-26 09:50:22 -0600 (Thu, 26 Feb 2009) | 8 lines
  
  IAX2 prune realtime fix
  
  Iax2 prune realtime had issues.  If "iax2 prune realtime all" was called, it would appear like the command was successful, but in reality nothing happened.  This is because the reload that was supposed to take place checks the config files, sees no changes, and does nothing.  If there had been a change in the the config file, the realtime users would have been marked for deletion and everything would have been fine.  Now prune_users() and prune_peers() are called instead of reload_config() to prune all users/peers that are realtime.  These functions remove all users/peers with the rtfriend and delme flags set. iax2_prune_realtime() also lacked the code to properly delete a single friend.  For example. if iax2 prune realtime <friend> was called, only the peer instance would be removed. The user would still remain.  
  
  (closes issue #14479)
  Reported by: mousepad99
  Review: http://reviewboard.digium.com/r/176/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178768 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-26 16:01:05 +00:00
Joshua Colp
e79c813fae Blocked revisions 178764 via svnmerge
........
  r178764 | file | 2009-02-26 11:40:10 -0400 (Thu, 26 Feb 2009) | 5 lines
  
  Ensure there is a valid tone part before trying to play tones.
  
  (closes issue #14558)
  Reported by: alecdavis
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178765 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-26 15:42:33 +00:00
Russell Bryant
e1eba74ef4 Merged revisions 178509 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r178509 | russell | 2009-02-25 06:45:30 -0600 (Wed, 25 Feb 2009) | 10 lines

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

........
r178508 | russell | 2009-02-25 06:43:36 -0600 (Wed, 25 Feb 2009) | 2 lines

Update the copyright year for the main page of the doxygen documentation.

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178510 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-25 12:46:06 +00:00
Tilghman Lesher
229442f533 Merged revisions 178446 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r178446 | tilghman | 2009-02-24 17:27:23 -0600 (Tue, 24 Feb 2009) | 12 lines
  
  Merged revisions 178445 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r178445 | tilghman | 2009-02-24 17:25:24 -0600 (Tue, 24 Feb 2009) | 5 lines
    
    Add section about the #exec command in configuration files.
    (closes issue #14540)
     Reported by: jtodd
     Patch by: jtodd, with additional notes by tilghman (license 14) 
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178447 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 23:28:03 +00:00
Tilghman Lesher
41451ea689 Merged revisions 178381 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178381 | tilghman | 2009-02-24 14:52:44 -0600 (Tue, 24 Feb 2009) | 2 lines
  
  Apparently, a void cast doesn't override warn_unused_result.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 20:53:27 +00:00
Russell Bryant
239ad71be7 Merged revisions 178374 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r178374 | russell | 2009-02-24 14:39:57 -0600 (Tue, 24 Feb 2009) | 14 lines

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

........
r178373 | russell | 2009-02-24 14:36:19 -0600 (Tue, 24 Feb 2009) | 6 lines

Only set dtmfcount on BEGIN, and ensure it gets reset to 0 properly.

(issue #14460)
Reported by: moliveras
Tested by: russell

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178378 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 20:43:16 +00:00
Tilghman Lesher
425201ca94 Merged revisions 178375 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178375 | tilghman | 2009-02-24 14:40:02 -0600 (Tue, 24 Feb 2009) | 2 lines
  
  The 3 possible errors with pipe(2) are all impossible in this situation.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178376 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 20:40:49 +00:00
Tilghman Lesher
31fd4d3573 Merged revisions 178342 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178342 | tilghman | 2009-02-24 14:06:48 -0600 (Tue, 24 Feb 2009) | 2 lines
  
  Use a SIGPIPE to kill the process, instead of depending upon the astcanary process being inherited by init.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178343 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 20:07:36 +00:00
Terry Wilson
de2bbd8f13 Change include order to make compile on Centos 5 with DAHDI
If BIT_TYPES_DEFINED gets defined before linux/types.h is included, the
__s32 type doesn't get defined


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 18:05:03 +00:00
Tilghman Lesher
04df6ac55a Merged revisions 178303 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178303 | tilghman | 2009-02-24 11:51:36 -0600 (Tue, 24 Feb 2009) | 7 lines
  
  Cause astcanary to exit if Asterisk exits abnormally and doesn't kill astcanary.
  Also, add some documentation supporting the use of astcanary.
  (closes issue #14538)
   Reported by: KNK
   Patches: 
         asterisk-1.6.x-astcanary.diff uploaded by KNK (license 545)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 17:53:16 +00:00
David Vossel
3454c77364 Blocked revisions 178300 via svnmerge
........
  r178300 | dvossel | 2009-02-24 11:42:37 -0600 (Tue, 24 Feb 2009) | 14 lines
  
  Allows manager command to see if IAX link is trunked and encrypted. Displays what kind of encryption is enabled as well. 
  
  Manager command "iaxpeers" now shows if a link is trunked and encrypted.  Instead of encryption saying simply "yes" or "no", it now displays what type of encryption is enabled and if keyrotation is on or not.  
  
  (closes issue #14427)
  Reported by: snuffy
  Patches:
  	iax_show_trunks.diff uploaded by snuffy (license 35)
  	2009022200_iax2_show_trunkencryption.diff.txt uploaded by mvanbaak (license 7)
  Tested by: mvanbaak, dvossel, snuffy
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178301 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 17:43:33 +00:00
Joshua Colp
be2caea0fa Merged revisions 178213 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r178213 | file | 2009-02-24 11:18:38 -0400 (Tue, 24 Feb 2009) | 16 lines
  
  Merged revisions 178205 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r178205 | file | 2009-02-24 11:16:07 -0400 (Tue, 24 Feb 2009) | 9 lines
    
    Skip check for extension when subscribing for MWI.
    
    Since the remote side is not actually subscribing to a specific extension when
    subscribing for MWI just skip the check to see if the extension exists. They can't use it
    to specify the mailbox either since we require configuration of that in sip.conf
    
    (closes issue #14531)
    Reported by: festr
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-24 15:20:47 +00:00
Russell Bryant
07b9f97f48 Merged revisions 178142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r178142 | russell | 2009-02-23 17:11:37 -0600 (Mon, 23 Feb 2009) | 22 lines

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

........
r178141 | russell | 2009-02-23 17:09:01 -0600 (Mon, 23 Feb 2009) | 14 lines

Fix infinite DTMF when a BEGIN is received without an END.

This commit is related to rev 175124 of 1.4 where a previous attempt was made
to fix this problem.  The problem with the previous patch was that the inserted
code needed to go _before_ setting the lastrxts to the current timestamp.
Because those were the same, the dtmfcount variable was never decremented, and
so the END was never sent.

In passing, I removed the dtmfsamples variable which was completed unused.  I
also removed a redundant setting of the lastrxts variable.

(closes issue #14460)
Reported by: moliveras

........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-23 23:17:30 +00:00
David Vossel
0a96d6557e Blocked revisions 178030 via svnmerge
........
  r178030 | dvossel | 2009-02-23 11:59:55 -0600 (Mon, 23 Feb 2009) | 7 lines
  
  Changes the way keyrotation is enabled by default
  
  Key rotation was enabled by default by setting the global encryption method to IAX_ENCRYPT_KEYROTATE.  the problem with this is that if encryption is not enabled, and the encryption method is set to anything except 0, the peer appears to have encryption enabled when issuing a "iax2 show peers".  Rather than have the key rotation bit always set by default, it is now only set when an encryption method is enabled. 
  
  (closes issue #14523)
  Reported by: mvanbaak
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-23 20:49:36 +00:00
Michiel van Baak
8e0166f058 Blocked revisions 178061 via svnmerge
........
  r178061 | mvanbaak | 2009-02-23 19:23:38 +0100 (Mon, 23 Feb 2009) | 3 lines
  
  update the new manager commands in chan_skinny to match
  chan_sip's headers. requested by oej.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178062 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-23 18:25:23 +00:00
Michiel van Baak
7843bf769e Blocked revisions 178027 via svnmerge
........
  r178027 | mvanbaak | 2009-02-23 18:48:32 +0100 (Mon, 23 Feb 2009) | 2 lines
  
  list the addition of the SKINNY manager actions in the CHANGES file.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178028 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-23 17:49:32 +00:00
Russell Bryant
604dc1731d Blocked revisions 178022 via svnmerge
........
r178022 | russell | 2009-02-23 11:29:16 -0600 (Mon, 23 Feb 2009) | 6 lines

Fix a regression in scheduler entry ordering, and add a regression test for it.

(closes issue #14522)
Reported by: pj
Tested by: russell

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@178023 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-23 17:29:47 +00:00
Michiel van Baak
0585d43744 Blocked revisions 177988 via svnmerge
........
  r177988 | mvanbaak | 2009-02-23 00:04:37 +0100 (Mon, 23 Feb 2009) | 13 lines
  
  Add a couple of manager commands to chan_skinny
  
  Added:
  SKINNYdevices
  SKINNYshowdevice
  SKINNYlines
  SKINNYshowline
  
  (closes issue #14521)
  Reported by: mvanbaak
  
  Review: http://reviewboard.digium.com/r/170/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-22 23:07:13 +00:00
Michiel van Baak
cbe9195358 Blocked revisions 177913 via svnmerge
........
  r177913 | mvanbaak | 2009-02-21 15:37:04 +0100 (Sat, 21 Feb 2009) | 7 lines
  
  add extra check for sysinfo/sysctl
  
  (closes issue #14513)
  Reported by: snuffy
  Patches:
        bug14513_fixsysinfo.diff uploaded by snuffy (license 35)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177914 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-21 14:40:10 +00:00
Russell Bryant
515e20e913 Blocked revisions 177855 via svnmerge
........
r177855 | russell | 2009-02-21 07:17:47 -0600 (Sat, 21 Feb 2009) | 5 lines

Fix build issues on Solaris and OpenBSD.

(closes issue #14512)
Reported by: snuffy

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177859 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-21 13:18:45 +00:00
Michiel van Baak
eb1721b567 Blocked revisions 177852 via svnmerge
........
  r177852 | mvanbaak | 2009-02-21 14:13:35 +0100 (Sat, 21 Feb 2009) | 18 lines
  
  set ASTVARRUNDIR=$(localstatedir)/run/asterisk as default path
  
  When running asterisk as non-root and without this patch the pidfile wants
  to go into /var/run/asterisk.pid. This directory is not writable for
  the non-root user and changing permissions is not an option.
  Putting it in /var/run/asterisk/asterisk.pid makes it possible
  to set permissions on the /var/run/asterisk dir so everything
  works as it should be.
  
  Patched committed is based on pabelanger's patch.
  
  (closes issue #13153)
  Reported by: pabelanger
  Patches:
        2009012900_bug13153-nonrootscripts.diff.txt uploaded by mvanbaak (license 7)
  
  Review: http://reviewboard.digium.com/r/139/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-21 13:14:50 +00:00
Michiel van Baak
01ad529ce9 Blocked revisions 177849 via svnmerge
........
  r177849 | mvanbaak | 2009-02-21 13:22:32 +0100 (Sat, 21 Feb 2009) | 2 lines
  
  make chan_sip.c compile on OpenBSD again.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177850 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-21 12:40:36 +00:00
Tilghman Lesher
d6c817f2f1 Merged revisions 177787 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177787 | tilghman | 2009-02-20 17:02:35 -0600 (Fri, 20 Feb 2009) | 16 lines
  
  Merged revisions 177786 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177786 | tilghman | 2009-02-20 16:59:52 -0600 (Fri, 20 Feb 2009) | 9 lines
    
    Don't print the CR-NL combination when we aren't outputting to the manager.
    
    An embedded CR-NL in a CLI command screws up several AMI parsers that don't
    expect to see that combination in the middle of output.
    
    (Closes issue #14305)
    Reported by: martins
    Patch by: tilghman
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 23:04:33 +00:00
Dwayne M. Hubbard
e8073da399 Merged revisions 177699 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177699 | dhubbard | 2009-02-20 14:29:00 -0600 (Fri, 20 Feb 2009) | 9 lines
  
  Make app_fax compatible with spandsp-0.0.6pre4
  
  Prior to spandsp-0.0.6pre4 the t30_stats_t structure used a pages_transferred
  integer to indicate the number of pages transferred (so far) during the fax
  session.  The spandsp-0.0.6pre4 release removed the pages_transferred integer
  and replaced it with two different integers - pages_tx and pages_rx.  This
  revision uses the new integers for spandsp-0.0.6pre4 while maintaining backwards
  compatibility for previous spandsp releases.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177763 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 21:56:39 +00:00
Dwayne M. Hubbard
14bb8408db Merged revisions 148868 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r148868 | tilghman | 2008-10-14 10:15:45 -0500 (Tue, 14 Oct 2008) | 6 lines
  
  API differences in spandsp 0.0.6pre1 and higher
  (closes issue #13688)
   Reported by: irroot
   Patches: 
         app_fax-span6.patch uploaded by irroot (license 52) with minor modifications by me
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177762 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 21:41:54 +00:00
Tilghman Lesher
aac9d07849 Merged revisions 177732 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177732 | tilghman | 2009-02-20 15:25:37 -0600 (Fri, 20 Feb 2009) | 10 lines
  
  Merged revisions 177701 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177701 | tilghman | 2009-02-20 15:15:01 -0600 (Fri, 20 Feb 2009) | 3 lines
    
    This exception does not appear to still be true for Solaris 10, and OpenSolaris definitely needs it to be removed.
    Fixed for snuff-home on -dev channel.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177756 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 21:31:50 +00:00
David Vossel
e938398385 Fixes issue with undefined audio codecs in chan_iax2
During iax2 call negotiation, supported codecs are passed in an Information Element containing a 2 byte field where each bit correlates to a specific codec.  In 1.6 only audio codec bits 0-12 and 15 are defined, leaving bits 13-14 undefined.  By default all bits are enabled unless specified otherwise.  Since its a 2 byte field and 13-14 are not defined, these bits are never turned off.  In trunk, bits 13-14 are defined, which means 1.6 is advertising support for codecs it does not have when talking to trunk.  I fixed this by adding #define for undefined audio codec bits.  These bits are then removed from iax2's full bandwidth capabilities.   

(closes issue #14283)
Reported by: jcovert


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177698 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 20:27:45 +00:00
Tilghman Lesher
36f41cee56 Merged revisions 177664 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177664 | tilghman | 2009-02-20 11:29:51 -0600 (Fri, 20 Feb 2009) | 8 lines
  
  Allow semicolons to be escaped, when passing arguments to the System command.
  (closes issue #14231)
   Reported by: jcovert
   Patches: 
         20090113__bug14231__2.diff.txt uploaded by Corydon76 (license 14)
         corrected_20090113__bug14231__2.diff.txt uploaded by jcovert (license 551)
   Tested by: jcovert
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177665 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 17:42:16 +00:00
Tilghman Lesher
b2cc0480ac Merged revisions 177661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177661 | tilghman | 2009-02-20 11:22:19 -0600 (Fri, 20 Feb 2009) | 2 lines
  
  Oops, merge broke trunk
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 17:27:20 +00:00
Jeff Peeler
2eb96d9bd8 Blocked revisions 177624 via svnmerge
........
  r177624 | jpeeler | 2009-02-19 18:35:53 -0600 (Thu, 19 Feb 2009) | 7 lines
  
  Set sip_request ast_str data to NULL so ast_str_copy allocates space properly
  in copy_request
  
  (issue #14478)
  Reported by: erik_dedecker
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 00:36:27 +00:00
Steve Murphy
7ea292e195 Merged revisions 177595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r177595 | murf | 2009-02-19 16:56:50 -0700 (Thu, 19 Feb 2009) | 32 lines

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

Trunk was already pretty 8-bit clean; but I'm still
removing the --full from the flex command so everything
is uniform.

........
  r177540 | murf | 2009-02-19 15:51:37 -0700 (Thu, 19 Feb 2009) | 21 lines
  
  This patch fixes a problem with 8-bit input to the ast_expr2 scanner.
  
  The real culprit was the --full argument to flex
  in the Makefile! This causes a 7-bit scanner to be
  generated.
  
  I reviewed the rules and found one rule where I needed
  to specifically include 8-bit chars for a token.
  
  I tested against the text supplied by ibercom, and 
  all looks very well.
  
  This has been there a surprisingly long time!
  
  
  (closes issue #14498)
  Reported by: ibercom
  Patches:
        14498.patch uploaded by murf (license 17)
  Tested by: murf
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-20 00:16:46 +00:00
Tilghman Lesher
8b4c344ca7 Merged revisions 177537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177537 | tilghman | 2009-02-19 16:33:00 -0600 (Thu, 19 Feb 2009) | 14 lines
  
  Merged revisions 177536 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177536 | tilghman | 2009-02-19 16:26:01 -0600 (Thu, 19 Feb 2009) | 7 lines
    
    Fix up potential crashes, by reducing the sharing between interactive and non-interactive threads.
    (closes issue #14253)
     Reported by: Skavin
     Patches: 
           20090219__bug14253.diff.txt uploaded by Corydon76 (license 14)
     Tested by: Skavin
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 22:34:37 +00:00
Jeff Peeler
5b4fb69323 Remove invalid ast_free calls for static character arrays
(issue #14478)
Reported by: erik_dedecker



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 17:40:16 +00:00
Jeff Peeler
fff4e4f7cd Merged revisions 177387 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177387 | jpeeler | 2009-02-19 10:45:02 -0600 (Thu, 19 Feb 2009) | 3 lines
  
  Fix another merge error from 176708
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 16:45:30 +00:00
Joshua Colp
d82a4d919c Merged revisions 177384 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177384 | file | 2009-02-19 12:38:41 -0400 (Thu, 19 Feb 2009) | 10 lines
  
  Merged revisions 177383 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177383 | file | 2009-02-19 12:37:25 -0400 (Thu, 19 Feb 2009) | 3 lines
    
    If we are able to create a speech structure unset the ERROR variable in case it was previously set.
    (issue #LUMENVOX-13)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 16:39:28 +00:00
Jeff Peeler
676fb48b9b Merged revisions 177356 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177356 | jpeeler | 2009-02-19 09:56:31 -0600 (Thu, 19 Feb 2009) | 4 lines
  
  Fix mismerge from revision 176708 pointed out by Kaloyan Kovachev on the
  asterisk-dev mailing list. Thanks!
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177357 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 15:57:16 +00:00
Steve Murphy
62bbd7a589 Merged revisions 177286 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177286 | murf | 2009-02-18 16:50:57 -0700 (Wed, 18 Feb 2009) | 39 lines
  
  Merged revisions 177225 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177225 | murf | 2009-02-18 15:43:14 -0700 (Wed, 18 Feb 2009) | 34 lines
    
    This patch fixes a regression of sorts that was introduced in 
    rev 24425.
    
    It basically fixes AST-190/ABE-1782.
    
    What was wrong: the user has 6000 extensions in one context; and
    then 6000 contexts, one per extension. The parser could only handle
    about 4893 of the 6000 extens in the single context.
    
    This was due to the regression I mentioned. To get rid of
    shift/reduce conflicts, Luigi set up right-recursive lists
    for globals, context elements, switch lists, and statements.
    Right recursive lists got rid of the warnings, but instead, they
    use up a tremendous amount of stack space when the lists are long.
    
    I saw this a few years back, and resolved not to fix it until
    someone complained. That day has arrived!
    
    After the changes were made, I ran the regression test suite,
    and there were no problems.
    
    I took the test case the user provided, and added 100,000 
    extensions to the single context, that already had 6,000 extens
    in it. (I'll see your 6, and raise you 100!) It takes a few minutes
    to read it all in, check it and generate code for it, but no
    problems.
    
    So, I think I can say that fundamentally, there are no longer
    any limits on the number of items you can place in contexts,
    statement blocks, switches, or globals, beyond your virt mem
    constraints.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177289 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-19 00:05:07 +00:00
Kevin P. Fleming
b72c17951f Merged revisions 177229 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177229 | kpfleming | 2009-02-18 17:09:58 -0600 (Wed, 18 Feb 2009) | 3 lines
  
  fix two very minor bugs: if anyone ever uses SLINEAR16 as a format in RTP, ensure that the samples are byte-swapped to network order if needed. also, when a smoother is operating on a format that has a sample rate other than 8000 samples per second, use the proper sample rate for computing delivery timestamps.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177231 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 23:15:11 +00:00
David Vossel
48cccb7858 Merged revisions 177226 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177226 | dvossel | 2009-02-18 16:51:38 -0600 (Wed, 18 Feb 2009) | 9 lines
  
  Locking issue in action_bridge and bridge_exec
  
  action_bridge() and bridge_exec() both search for the channels to bridge to, and then immediately drop the lock.  Instead, they should hold the lock until the masquerade is complete.  This will guarantee the channel remains and prevent any other weirdness from occurring.  In action_bridge() some more weirdness comes into play.  Both channels are needlessly locked at the same time and perform the exact same logic.  It makes sense from a coding organizational standpoint, but could cause a theoretical deadlock so I split the code up.  There is an issue associated with this, but since its a rather complicated thing to reproduce I'm not certain this alone will close it.
  
  issue# 14296
  Review: http://reviewboard.digium.com/r/167/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 22:55:56 +00:00
Jeff Peeler
9fdccc9760 Merged revisions 177162 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177162 | jpeeler | 2009-02-18 14:11:57 -0600 (Wed, 18 Feb 2009) | 14 lines
  
  Modify h323 to build against PTLib as well as the older PWLib
  
  Several changes in PTLib have occurred requiring build time detection. Changes
  accounted for include the library name change, config option change, install
  location change, and a boolean type change which is handled by ast_ptlib.h.
  Also, the sed check has been modified to properly work with autoconf >= 2.62.
  
  (closes issue #14224)
  Reported by: bergolth
  Patches:
        asterisk-autoconf-sed.patch uploaded by bergolth (license 661)
        asterisk-pwlib-v3.patch uploaded by bergolth (license 661)
  Tested by: jpeeler
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 20:15:37 +00:00
Russell Bryant
ffa0eaebef Merged revisions 177101 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r177101 | russell | 2009-02-18 13:12:49 -0600 (Wed, 18 Feb 2009) | 8 lines

Re-add 'o' option to MeetMe, reverting rev 62297.

Enabling this option by default proved to be a bad idea, as the talker detection
is not very reliable.  So, make it optional again, and off by default.

(issue #13801)
Reported by: justdave

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 19:25:03 +00:00
Tilghman Lesher
fece998d9c Merged revisions 177098 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r177098 | tilghman | 2009-02-18 13:05:15 -0600 (Wed, 18 Feb 2009) | 9 lines
  
  Merged revisions 177096 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r177096 | tilghman | 2009-02-18 12:30:38 -0600 (Wed, 18 Feb 2009) | 2 lines
    
    Document the return value of the update method (as requested on -dev list)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 19:07:05 +00:00
Doug Bailey
010ec27cfd Merged revisions 177035 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177035 | dbailey | 2009-02-18 11:24:07 -0600 (Wed, 18 Feb 2009) | 2 lines
  
  Fixed error where a check for an zero length, terminated string was needed.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177038 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 17:26:59 +00:00
Joshua Colp
b2a0fc1723 Merged revisions 177005 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r177005 | file | 2009-02-18 13:11:52 -0400 (Wed, 18 Feb 2009) | 6 lines
  
  Fix ordering of output for a ChannelUpdate manager event.
  (closes issue #14497)
  Reported by: vinsik
  Patches:
        chan_update_fix-chan_sip.c.diff uploaded by vinsik (license 623)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 17:13:25 +00:00
Doug Bailey
20dea27b4b Merged revisions 176948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176948 | dbailey | 2009-02-18 10:09:12 -0600 (Wed, 18 Feb 2009) | 2 lines
  
  Need to take into account the \0 terminator of the old string to determine the amount available.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@177004 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 16:30:15 +00:00
Steve Murphy
babd94b38e Merged revisions 176943 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176943 | murf | 2009-02-18 08:35:26 -0700 (Wed, 18 Feb 2009) | 45 lines


This patch fixes merge_contexts_and_delete so it does not deadlock when hints are present.

Reason: when I re-engineered the merge_and_delete func to
reduce its lock time, I failed to notice that the 
functions it calls still also do locking as before.
This leads to deadlocks on dialplan reloads, when
there are actually living, subscribed hints registered
in the system.

While the reporter come across this problem while using
AEL, I might note that these deadlocks should also happen
if extensions.conf were used.

Here I added these routines to pbx.c:

ast_add_extension_nolock
add_pri_lockopt
ast_add_extension2_lockopt
find_context
add_hint_nolock

All of the above routines are static and restricted
to be used only within pbx.c, and more specifically
within the merge_contexts_and_delete routine.

They are pretty much the same as their counterparts
except they don't lock contexts or hints.

Most of them now do the real work of their
name-alike, with optional locking via extra arguments,
and are called by their name-alike. The goal was to
have the original functions so they would behave
exactly as before.

Both PJ and I tested these fixes, and the deadlocking
problem is no longer encountered.

(closes issue #14357)
Reported by: pj
Patches:
      14357.diff uploaded by murf (license 17)
Tested by: pj, murf


........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@176944 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 15:49:10 +00:00
Russell Bryant
d245def8b7 Blocked revisions 176904 via svnmerge
........
r176904 | russell | 2009-02-18 00:14:47 -0600 (Wed, 18 Feb 2009) | 2 lines

Add example code for a heap traversal.

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@176905 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 06:15:02 +00:00
Russell Bryant
eed32932d2 Blocked revisions 176901 via svnmerge
........
r176901 | russell | 2009-02-18 00:00:40 -0600 (Wed, 18 Feb 2009) | 9 lines

Fix a number of incorrect uses of strncpy().

The big problem here is that the 3rd argument provided in these uses of strncpy()
did not reserve a byte for the null terminator, leaving the potential for writing
one byte past the end of the buffer.

Aside from this, there were coding guidelines violations with regards to spacing,
as well as hard coded lengths being used instead of sizeof().

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@176902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 06:01:25 +00:00
Dwayne M. Hubbard
da66687b2e Blocked revisions 176869 via svnmerge
........
  r176869 | dhubbard | 2009-02-17 20:55:12 -0600 (Tue, 17 Feb 2009) | 7 lines
  
  T38 faxdetect should jump to the 'fax' extension for incoming calls only
  
  The previous implementation of T38 faxdetect resulted in both sides of the
  call jumping to a fax extension when both sides had 't38pt_udptl=yes' and
  'faxdetect=yes' in sip.conf and a 'fax' extension in the current context.
  This revision will jump to a 'fax' extension on incoming calls only.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@176870 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-02-18 03:01:46 +00:00