]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 177286 via svnmerge from
Steve Murphy [Thu, 19 Feb 2009 00:17:44 +0000 (00:17 +0000)] 
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.1@177294 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 177287 via svnmerge
Tilghman Lesher [Wed, 18 Feb 2009 23:52:28 +0000 (23:52 +0000)] 
Blocked revisions 177287 via svnmerge

........
  r177287 | tilghman | 2009-02-18 17:51:35 -0600 (Wed, 18 Feb 2009) | 2 lines

  Handle negative length and eliminate a condition that is always true.
........

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

16 years agoMerged revisions 177229 via svnmerge from
Kevin P. Fleming [Wed, 18 Feb 2009 23:15:06 +0000 (23:15 +0000)] 
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.1@177230 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177226 via svnmerge from
David Vossel [Wed, 18 Feb 2009 23:03:10 +0000 (23:03 +0000)] 
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.1@177228 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177162 via svnmerge from
Jeff Peeler [Wed, 18 Feb 2009 20:16:31 +0000 (20:16 +0000)] 
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.1@177164 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177101 via svnmerge from
Russell Bryant [Wed, 18 Feb 2009 19:30:18 +0000 (19:30 +0000)] 
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.1@177158 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177098 via svnmerge from
Tilghman Lesher [Wed, 18 Feb 2009 19:09:24 +0000 (19:09 +0000)] 
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.1@177100 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177035 via svnmerge from
Doug Bailey [Wed, 18 Feb 2009 17:26:25 +0000 (17:26 +0000)] 
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.1@177037 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 177005 via svnmerge from
Joshua Colp [Wed, 18 Feb 2009 17:14:16 +0000 (17:14 +0000)] 
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.1@177007 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 176948 via svnmerge from
Doug Bailey [Wed, 18 Feb 2009 16:20:10 +0000 (16:20 +0000)] 
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.1@176962 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 176943 via svnmerge from
Steve Murphy [Wed, 18 Feb 2009 15:59:34 +0000 (15:59 +0000)] 
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.1@176946 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 176904 via svnmerge from
Russell Bryant [Wed, 18 Feb 2009 06:15:35 +0000 (06:15 +0000)] 
Merged revisions 176904 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
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.1@176906 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 176901 via svnmerge from
Russell Bryant [Wed, 18 Feb 2009 06:05:09 +0000 (06:05 +0000)] 
Merged revisions 176901 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
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.1@176903 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 176869 via svnmerge
Dwayne M. Hubbard [Wed, 18 Feb 2009 03:03:19 +0000 (03:03 +0000)] 
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.1@176871 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 176841 via svnmerge
Kevin P. Fleming [Wed, 18 Feb 2009 02:04:13 +0000 (02:04 +0000)] 
Blocked revisions 176841 via svnmerge

........
  r176841 | kpfleming | 2009-02-17 20:02:54 -0600 (Tue, 17 Feb 2009) | 3 lines

  suppress smoothers for Siren codecs as well as Speex and G.723.1
........

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

16 years agoMerged revisions 176760 via svnmerge from
Shaun Ruffell [Wed, 18 Feb 2009 00:23:04 +0000 (00:23 +0000)] 
Merged revisions 176760 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176760 | sruffell | 2009-02-17 16:28:41 -0600 (Tue, 17 Feb 2009) | 10 lines

  Several changes to codec_dahdi to play nice with G723.

  This commit brings in the changes that were living out on the
  svn/asterisk/team/sruffell/asterisk-trunk-transcoder branch.  codec_dahdi.c now
  always uses signed linear as the simple codec so that a soft g729 codec will
  not end up being preferred to the hardware codec.  There are also changes to
  allow codec_dahdi.c to feed packets to the hardware in the native sample size of
  the codec.  This solves problems with choppy audio when using G723.
........

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

16 years agoBlocked revisions 176771 via svnmerge
Russell Bryant [Tue, 17 Feb 2009 22:53:44 +0000 (22:53 +0000)] 
Blocked revisions 176771 via svnmerge

........
r176771 | russell | 2009-02-17 16:52:43 -0600 (Tue, 17 Feb 2009) | 2 lines

Remove a dependency that no longer exists.

........

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

16 years agoMerged revisions 176705 via svnmerge from
Dwayne M. Hubbard [Tue, 17 Feb 2009 22:21:59 +0000 (22:21 +0000)] 
Merged revisions 176705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176705 | dhubbard | 2009-02-17 15:59:38 -0600 (Tue, 17 Feb 2009) | 11 lines

  create a UDPTL structure in create_addr_from_peer() if it does not already exist for T38

  This is required to create a UDPTL structure in create_addr_from_peer() to handle the
  scenario where 't38pt_udptl=yes' is not defined in the [general] section of sip.conf but
  is defined the peer's context.  I tested this patch by enabling t38pt_udptl in the
  [general] section on one system and only enabling t38pt_udptl in a peer's context on
  the system sending a fax.  Without the patch, the sending system will fail to initiate
  T38 negotiation with the warning message, "No way to add SDP without an UDPTL structure".
  When this patch is applied the sending side will successfully initiate T38 negotiation.
........

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

16 years agoMerged revisions 176708 via svnmerge from
Jeff Peeler [Tue, 17 Feb 2009 22:15:26 +0000 (22:15 +0000)] 
Merged revisions 176708 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176708 | jpeeler | 2009-02-17 16:08:00 -0600 (Tue, 17 Feb 2009) | 23 lines

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

  ........
    r176701 | jpeeler | 2009-02-17 15:54:34 -0600 (Tue, 17 Feb 2009) | 17 lines

    Modify bridging to properly evaluate DTMF after first warning is played

    The main problem is currently if the Dial flag L is used with a warning sound,
    DTMF is not evaluated after the first warning sound. To fix this, a flag has
    been added in ast_generic_bridge for playing the warning which ensures that if
    a scheduled warning is missed, multiple warrnings are not played back (due to a
    feature evaluation or waiting for digits). ast_channel_bridge was modified to
    store the nexteventts in the ast_bridge_config structure as that information
    was lost every time ast_channel_bridge was reentered, causing a hangup due to
    incorrect time calculations.

    (closes issue #14315)
    Reported by: tim_ringenbach

    Reviewed on reviewboard:
    http://reviewboard.digium.com/r/163/
  ........
................

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

16 years agoBlocked revisions 176706 via svnmerge
Mark Michelson [Tue, 17 Feb 2009 22:03:06 +0000 (22:03 +0000)] 
Blocked revisions 176706 via svnmerge

........
  r176706 | mmichelson | 2009-02-17 16:02:42 -0600 (Tue, 17 Feb 2009) | 3 lines

  Use constants from inttypes.h to clear up 64-bit compilation errors
........

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

16 years agoMerged revisions 176697 via svnmerge from
Mark Michelson [Tue, 17 Feb 2009 21:41:40 +0000 (21:41 +0000)] 
Merged revisions 176697 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176697 | mmichelson | 2009-02-17 15:40:09 -0600 (Tue, 17 Feb 2009) | 3 lines

  Clear up documentation of AST_FRIENDLY_OFFSET in frame.h
........

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

16 years agoMerged revisions 176666 via svnmerge from
Russell Bryant [Tue, 17 Feb 2009 21:24:17 +0000 (21:24 +0000)] 
Merged revisions 176666 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176666 | russell | 2009-02-17 15:22:40 -0600 (Tue, 17 Feb 2009) | 16 lines

Update the timing API to have better support for multiple timing interfaces.

1) Add module use count handling so that timing modules can be unloaded.

2) Implement unload_module() functions for the timing interface modules.

3) Allow multiple timing modules to be loaded, and use the one with the
   highest priority value.

4) Report which timing module is being use in the "timing test" CLI command.

(closes issue #14489)
Reported by: russell

Review: http://reviewboard.digium.com/r/162/

........

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

16 years agoMerged revisions 176592,176642 via svnmerge from
Tilghman Lesher [Tue, 17 Feb 2009 21:16:53 +0000 (21:16 +0000)] 
Merged revisions 176592,176642 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176592 | tilghman | 2009-02-17 12:49:20 -0600 (Tue, 17 Feb 2009) | 4 lines

  Add assertions in the quest to track down a refcount leak.
  (closes issue #14485)
   Reported by: davevg
........
  r176642 | tilghman | 2009-02-17 15:14:18 -0600 (Tue, 17 Feb 2009) | 8 lines

  Prior to masquerade, move the group definitions to the channel performing the
  masq, so that the group count lingers past the bridge.
  (closes issue #14275)
   Reported by: kowalma
   Patches:
         20090216__bug14275.diff.txt uploaded by Corydon76 (license 14)
   Tested by: kowalma
........

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

16 years agoBlocked revisions 176639 via svnmerge
Russell Bryant [Tue, 17 Feb 2009 21:05:17 +0000 (21:05 +0000)] 
Blocked revisions 176639 via svnmerge

........
r176639 | russell | 2009-02-17 15:04:08 -0600 (Tue, 17 Feb 2009) | 9 lines

Significantly improve scheduler performance under high load.

This patch changes the scheduler to use a max-heap to store pending scheduler
entries instead of a fully sorted doubly linked list.  When the number of
entries in the scheduler gets large, this will perform much better.  For much
more detailed information on this change, see the review request.

Review: http://reviewboard.digium.com/r/160/

........

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

16 years agoMerged revisions 176635 via svnmerge from
Russell Bryant [Tue, 17 Feb 2009 20:57:01 +0000 (20:57 +0000)] 
Merged revisions 176635 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176635 | russell | 2009-02-17 14:56:26 -0600 (Tue, 17 Feb 2009) | 4 lines

Add a test module for the heap implementation.

Review: http://reviewboard.digium.com/r/160/

........

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

16 years agoMerged revisions 176632 via svnmerge from
Russell Bryant [Tue, 17 Feb 2009 20:52:24 +0000 (20:52 +0000)] 
Merged revisions 176632 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176632 | russell | 2009-02-17 14:51:10 -0600 (Tue, 17 Feb 2009) | 8 lines

Add an implementation of the heap data structure.

A heap is a convenient data structure for implementing a priority queue.

Code from svn/asterisk/team/russell/heap/.

Review: http://reviewboard.digium.com/r/160/

........

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

16 years agoBlocked revisions 176627 via svnmerge
Russell Bryant [Tue, 17 Feb 2009 20:42:04 +0000 (20:42 +0000)] 
Blocked revisions 176627 via svnmerge

........
r176627 | russell | 2009-02-17 14:41:24 -0600 (Tue, 17 Feb 2009) | 37 lines

Merge a large set of updates to the Asterisk indications API.

This patch includes a number of changes to the indications API.  The primary
motivation for this work was to improve stability.  The object management
in this API was significantly flawed, and a number of trivial situations could
cause crashes.

The changes included are:

1) Remove the module res_indications.  This included the critical functionality
   that actually loaded the indications configuration.  I have seen many people
   have Asterisk problems because they accidentally did not have an
   indications.conf present and loaded.  Now, this code is in the core,
   and Asterisk will fail to start without indications configuration.

   There was one part of res_indications, the dialplan applications, which did
   belong in a module, and have been moved to a new module, app_playtones.

2) Object management has been significantly changed.  Tone zones are now
   managed using astobj2, and it is no longer possible to crash Asterisk by
   issuing a reload that destroys tone zones while they are in use.

3) The API documentation has been filled out.

4) The API has been updated to follow our naming conventions.

5) Various bits of code throughout the tree have been updated to account
   for the API update.

6) Configuration parsing has been mostly re-written.

7) "Code cleanup"

The code is from svn/asterisk/team/russell/indications/.

Review: http://reviewboard.digium.com/r/149/

........

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

16 years agoMerged revisions 176557 via svnmerge from
Russell Bryant [Tue, 17 Feb 2009 17:38:47 +0000 (17:38 +0000)] 
Merged revisions 176557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r176557 | russell | 2009-02-17 11:33:38 -0600 (Tue, 17 Feb 2009) | 12 lines

Fix a race condition that caused device states to become incorrect for hints.

The problem here is that the hint processing code was subscribed to the wrong
event type.  So, it started processing state for a hint too soon, before the
device state cache had been updated.

Also, fix a similar bug in app_queue, as it was also subscribed to the wrong
event type.

(closes issue #14461)
Reported by: alecdavis

........

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

16 years agoMerged revisions 176501 via svnmerge from
Tilghman Lesher [Tue, 17 Feb 2009 14:48:01 +0000 (14:48 +0000)] 
Merged revisions 176501 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176501 | tilghman | 2009-02-17 08:39:36 -0600 (Tue, 17 Feb 2009) | 3 lines

  In this version, we can combine the queries, because we support dropping
  nonexistent columns.
........

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

16 years agoMerged revisions 176459 via svnmerge from
Tilghman Lesher [Tue, 17 Feb 2009 02:07:18 +0000 (02:07 +0000)] 
Merged revisions 176459 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176459 | tilghman | 2009-02-16 19:58:39 -0600 (Mon, 16 Feb 2009) | 17 lines

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

  ........
    r176426 | tilghman | 2009-02-16 18:49:22 -0600 (Mon, 16 Feb 2009) | 10 lines

    After a 'sip reload', qualifies for realtime peers weren't immediately
    restarted, instead waiting until the next registration.  We're now
    caching the qualify across a reload/restart and starting the qualify
    immediately upon loading the peer.
    (closes issue #14196)
     Reported by: pdf
     Patches:
           20090120__bug14196_1.4.diff.txt uploaded by pdf (license 663)
     Tested by: pdf
  ........
................

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

16 years agoMerged revisions 176355 via svnmerge from
David Vossel [Mon, 16 Feb 2009 23:57:11 +0000 (23:57 +0000)] 
Merged revisions 176355 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176355 | dvossel | 2009-02-16 17:33:55 -0600 (Mon, 16 Feb 2009) | 13 lines

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

  ........
    r176354 | dvossel | 2009-02-16 17:30:52 -0600 (Mon, 16 Feb 2009) | 8 lines

    Fixes issue with AST_CONTROL_SRCUPDATE not being relayed correctly during bridging

    This should have been committed with rev176247, but I missed it.  srcupdate frames no longer break out of the native bridge, but are not being sent to the other call leg either.  This fixs that.

    issue #13749
  ........
................

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

16 years agoBlocked revisions 176360 via svnmerge
Tilghman Lesher [Mon, 16 Feb 2009 23:49:43 +0000 (23:49 +0000)] 
Blocked revisions 176360 via svnmerge

........
  r176360 | tilghman | 2009-02-16 17:48:54 -0600 (Mon, 16 Feb 2009) | 4 lines

  Might want to update the buffer pointer after a realloc (or we crash)
  (closes issue #14485)
   Reported by: davevg
........

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

16 years agoBlocked revisions 176356 via svnmerge
Kevin P. Fleming [Mon, 16 Feb 2009 23:38:17 +0000 (23:38 +0000)] 
Blocked revisions 176356 via svnmerge

........
  r176356 | kpfleming | 2009-02-16 17:37:37 -0600 (Mon, 16 Feb 2009) | 3 lines

  add support for Siren7 and Siren14 flavors of prompts and music on hold
........

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

16 years agoMerged revisions 176320 via svnmerge from
Tilghman Lesher [Mon, 16 Feb 2009 23:17:01 +0000 (23:17 +0000)] 
Merged revisions 176320 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176320 | tilghman | 2009-02-16 17:14:08 -0600 (Mon, 16 Feb 2009) | 7 lines

  Use the correct list macros for deleting an item from the middle of a list.
  (issue #13777)
   Reported by: pj
   Patches:
         20090203__bug13777.diff.txt uploaded by Corydon76 (license 14)
   Tested by: pj
........

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

16 years agoMerged revisions 176255 via svnmerge from
Kevin P. Fleming [Mon, 16 Feb 2009 22:00:56 +0000 (22:00 +0000)] 
Merged revisions 176255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176255 | kpfleming | 2009-02-16 15:45:54 -0600 (Mon, 16 Feb 2009) | 13 lines

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

  ........
    r176216 | kpfleming | 2009-02-16 15:10:38 -0600 (Mon, 16 Feb 2009) | 3 lines

    fix a flaw in the ast_string_field_build() family of API calls; these functions made no attempt to reuse the space already allocated to a field, so every time the field was written it would allocate new space, leading to what appeared to be a memory leak.
  ........
    r176254 | kpfleming | 2009-02-16 15:41:46 -0600 (Mon, 16 Feb 2009) | 3 lines

    correct a logic error in the last stringfields commit... don't mark additional space as allocated if the string was built using already-allocated space
  ........
................

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

16 years agoMerged revisions 176253 via svnmerge from
Mark Michelson [Mon, 16 Feb 2009 21:50:31 +0000 (21:50 +0000)] 
Merged revisions 176253 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176253 | mmichelson | 2009-02-16 15:40:40 -0600 (Mon, 16 Feb 2009) | 24 lines

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

  ........
    r176249 | mmichelson | 2009-02-16 15:34:27 -0600 (Mon, 16 Feb 2009) | 14 lines

    Open the DAHDI pseudo device and set it to be nonblocking atomically

    Apparently on FreeBSD, attempting to set the O_NONBLOCKING flag separately
    from opening the file was causing an "inappropriate ioctl for device" error.
    While I cannot fathom why this would be happening, I certainly am not opposed
    to making the code a bit more compact/efficient if it also fixes a bug.

    (closes issue #14482)
    Reported by: ys
    Patches:
          meetme.patch uploaded by ys (license 281)
    Tested by: ys
  ........
    r176252 | mmichelson | 2009-02-16 15:39:21 -0600 (Mon, 16 Feb 2009) | 3 lines

    Remove unused variable and make dev-mode compilation happy
  ........
................

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

16 years agoMerged revisions 176248 via svnmerge from
David Vossel [Mon, 16 Feb 2009 21:36:07 +0000 (21:36 +0000)] 
Merged revisions 176248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176248 | dvossel | 2009-02-16 15:30:17 -0600 (Mon, 16 Feb 2009) | 11 lines

  Merged revisions 175597 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/trunk

  ........
    r175597 | dvossel | 2009-02-13 14:11:55 -0600 (Fri, 13 Feb 2009) | 4 lines

    Fixed iax2 key rotation backwards compatibility

    Turns key rotation back on by default.  Added bit into encryption IE to indicate whether or not key rotation is supported or not. If it is not supported then it is not enabled, which insures backwards compatibility.  This eliminates the need for the keyrotate option in iax.conf, so it has been removed.
  ........
................

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

16 years agoMerged revisions 176174 via svnmerge from
Mark Michelson [Mon, 16 Feb 2009 18:38:00 +0000 (18:38 +0000)] 
Merged revisions 176174 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r176174 | mmichelson | 2009-02-16 12:25:57 -0600 (Mon, 16 Feb 2009) | 11 lines

  Assist proper thread synchronization when stopping the logger thread.

  I was finding that on my dev box, occasionally attempting to "stop now" in
  trunk would cause Asterisk to hang. I traced this to the fact that the logger
  thread was waiting on a condition which had already been signalled. The logger
  thread also need to be sure to check the value of the close_logger_thread variable.

  The close_logger_thread variable is only checked when the list of logmessages is empty.
  This allows for the logger thread to print and free any pending messages before exiting.
........

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

16 years agoBlocked revisions 176138 via svnmerge
Tilghman Lesher [Mon, 16 Feb 2009 17:47:12 +0000 (17:47 +0000)] 
Blocked revisions 176138 via svnmerge

........
  r176138 | tilghman | 2009-02-16 11:44:51 -0600 (Mon, 16 Feb 2009) | 2 lines

  Can't set debug level 2 (intense debugging) unless the syntax matches
........

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

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

........
r176100 | russell | 2009-02-16 11:09:24 -0600 (Mon, 16 Feb 2009) | 4 lines

Remove chan_features.

Review: http://reviewboard.digium.com/r/161/

........

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

16 years agoEliminate mention of a variable which exists only in trunk.
Tilghman Lesher [Mon, 16 Feb 2009 17:07:57 +0000 (17:07 +0000)] 
Eliminate mention of a variable which exists only in trunk.
(Thanks, jsmith)

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

16 years agoMerged revisions 176030 via svnmerge from
Joshua Colp [Mon, 16 Feb 2009 15:38:20 +0000 (15:38 +0000)] 
Merged revisions 176030 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r176030 | file | 2009-02-16 11:36:19 -0400 (Mon, 16 Feb 2009) | 16 lines

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

  ........
    r176029 | file | 2009-02-16 11:33:53 -0400 (Mon, 16 Feb 2009) | 9 lines

    Don't have the Via header stored as a stringfield as it can change often during the lifetime of a dialog.

    This issue crept up with subscriptions on the AA50. When an outgoing NOTIFY is sent a new branch value
    is created and the Via header is changed to reflect it. Since this was a stringfield a new spot in the
    pool was used for the value while the old was left untouched/unused. If the current pool was full a new
    pool was created. This would cause memory usage to increase steadily.

    (issue #AA50-2332)
  ........
................

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

16 years agoMerged revisions 175952 via svnmerge from
Michiel van Baak [Mon, 16 Feb 2009 09:42:46 +0000 (09:42 +0000)] 
Merged revisions 175952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r175952 | mvanbaak | 2009-02-16 01:26:59 +0100 (Mon, 16 Feb 2009) | 10 lines

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

  ........
    r175921 | mvanbaak | 2009-02-16 00:37:03 +0100 (Mon, 16 Feb 2009) | 3 lines

    fix mis-spelling of the word registered.
    Reported by De_Mon on #asterisk-dev.
  ........
................

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

16 years agoBlocked revisions 175983 via svnmerge
Russell Bryant [Mon, 16 Feb 2009 02:55:39 +0000 (02:55 +0000)] 
Blocked revisions 175983 via svnmerge

........
r175983 | russell | 2009-02-15 20:54:42 -0600 (Sun, 15 Feb 2009) | 2 lines

Make the causes array static, and remove the type name as it is not needed.

........

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

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

........
r175882 | russell | 2009-02-15 15:27:33 -0600 (Sun, 15 Feb 2009) | 2 lines

Make ast_sched_report() and ast_sched_dump() thread safe.

........

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

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

........
r175829 | russell | 2009-02-15 14:56:27 -0600 (Sun, 15 Feb 2009) | 14 lines

Fix a number of problems with ast_sched_report().

1) It had numerous coding guidelines violations with regards to formatting.

2) It allocated memory using ast_calloc() that was never freed.

3) It didn't check for failure from the allocation.

4) It used sprintf() and strcat() to build the result, doing zero checking to
   prevent writing past the end of the provided buffer.

The function also lacks API documentation, but that has not been addressed in
this commit.

........

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

16 years agoBlocked revisions 175663 via svnmerge
Mark Michelson [Fri, 13 Feb 2009 21:00:18 +0000 (21:00 +0000)] 
Blocked revisions 175663 via svnmerge

........
  r175663 | mmichelson | 2009-02-13 14:57:37 -0600 (Fri, 13 Feb 2009) | 12 lines

  Merge queue-reset branch to Asterisk

  From a user point-of-view, this adds new CLI commands and Manager Actions to
  better facilitate the reloading of queues and the resetting of their statistics.

  The new CLI commands are the "queue reload" and "queue reset stats" commands.

  The new manager actions are the QueueReload and QueueReset commands.

  Review: http://reviewboard.digium.com/r/115
........

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

16 years agoMerged revisions 175597 via svnmerge from
David Vossel [Fri, 13 Feb 2009 20:48:47 +0000 (20:48 +0000)] 
Merged revisions 175597 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r175597 | dvossel | 2009-02-13 14:11:55 -0600 (Fri, 13 Feb 2009) | 4 lines

  Fixed iax2 key rotation backwards compatibility

  Turns key rotation back on by default.  Added bit into encryption IE to indicate whether or not key rotation is supported or not. If it is not supported then it is not enabled, which insures backwards compatibility.  This eliminates the need for the keyrotate option in iax.conf, so it has been removed.
........

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

16 years agoBlocked revisions 175655 via svnmerge
Mark Michelson [Fri, 13 Feb 2009 20:36:27 +0000 (20:36 +0000)] 
Blocked revisions 175655 via svnmerge

........
  r175655 | mmichelson | 2009-02-13 14:35:26 -0600 (Fri, 13 Feb 2009) | 8 lines

  Add manager events for chanspy starting or stopping

  (closes issue #14469)
  Reported by: caio1982
  Patches:
        chanspy_events2.diff uploaded by caio1982 (license 22)
........

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

16 years agoBlocked revisions 175623,175636 via svnmerge
Russell Bryant [Fri, 13 Feb 2009 20:27:54 +0000 (20:27 +0000)] 
Blocked revisions 175623,175636 via svnmerge

........
r175623 | russell | 2009-02-13 14:23:39 -0600 (Fri, 13 Feb 2009) | 1 line

add missing </para>
........
r175636 | russell | 2009-02-13 14:26:49 -0600 (Fri, 13 Feb 2009) | 1 line

fix a few more XML documentation problems
........

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

16 years agoMerged revisions 175591 via svnmerge from
Mark Michelson [Fri, 13 Feb 2009 19:52:03 +0000 (19:52 +0000)] 
Merged revisions 175591 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r175591 | mmichelson | 2009-02-13 13:49:38 -0600 (Fri, 13 Feb 2009) | 22 lines

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

  ........
    r175590 | mmichelson | 2009-02-13 13:47:48 -0600 (Fri, 13 Feb 2009) | 16 lines

    Fix a potential crash situation when using IMAP voicemail

    If calling into VoiceMailMain when using IMAP storage, it was
    possible to crash Asterisk by hanging up the phone when prompted
    for a voicemail mailbox. This patch fixes the issue.

    While it may appear that this patch is superficial, it allows code
    execution to continue to the failure case just below the IMAP_STORAGE
    code block where this patch has been applied

    (closes issue #14473)
    Reported by: dwpaul
    Patches:
          voicemail_imap_crash_no_mailbox.patch uploaded by dwpaul (license 689)
  ........
................

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

16 years agoMerged revisions 175549 via svnmerge from
Joshua Colp [Fri, 13 Feb 2009 16:44:37 +0000 (16:44 +0000)] 
Merged revisions 175549 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r175549 | file | 2009-02-13 12:41:15 -0400 (Fri, 13 Feb 2009) | 4 lines

  Add an option to keep the recorded file upon hangup.
  (closes issue #14341)
  Reported by: fnordian
........

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

16 years agoBlocked revisions 175512 via svnmerge
Kevin P. Fleming [Fri, 13 Feb 2009 13:42:13 +0000 (13:42 +0000)] 
Blocked revisions 175512 via svnmerge

........
  r175512 | kpfleming | 2009-02-13 07:41:52 -0600 (Fri, 13 Feb 2009) | 3 lines

  document G.722.1/.1C support
........

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

16 years agoBlocked revisions 175508 via svnmerge
Kevin P. Fleming [Fri, 13 Feb 2009 13:37:31 +0000 (13:37 +0000)] 
Blocked revisions 175508 via svnmerge

........
  r175508 | kpfleming | 2009-02-13 07:35:24 -0600 (Fri, 13 Feb 2009) | 15 lines

  Add basic (passthrough, playback, record) support for ITU G.722.1 and G.722.1C (also known as Siren7 and Siren14)

  This patch adds passthrough, file recording and file playback support for the codecs listed above, with negotiation over SIP/SDP supported. Due to Asterisk's current limitation of treating a codec/bitrate combination as a unique codec, only G.722.1 at 32 kbps and G.722.1C at 48 kbps are supported.

  Along the way, some related work was done:

  1) The rtpPayloadType structure definition, used as a return result for an API call in rtp.h, was moved from rtp.c to rtp.h so that the API call was actually usable. The only previous used of the API all was chan_h323.c, which had a duplicate of the structure definition instead of doing it the right way.

  2) The hardcoded SDP sample rates for various codecs in chan_sip.c were removed, in favor of storing these sample rates in rtp.c along with the codec definitions there. A new API call was added to allow retrieval of the sample rate for a given codec.

  3) Some basic 'a=fmtp' parsing for SDP was added to chan_sip, because chan_sip *must* decline any media streams offered for these codecs that are not at the bitrates that we support (otherwise Bad Things (TM) would result).

  Review: http://reviewboard.digium.com/r/158/
........

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

16 years agoBlocked revisions 175475 via svnmerge
Dwayne M. Hubbard [Fri, 13 Feb 2009 04:28:12 +0000 (04:28 +0000)] 
Blocked revisions 175475 via svnmerge

........
  r175475 | dhubbard | 2009-02-12 22:22:35 -0600 (Thu, 12 Feb 2009) | 1 line

  add 'faxbuffers' configuration option information to CHANGES
........

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

16 years agoBlocked revisions 175411 via svnmerge
Dwayne M. Hubbard [Fri, 13 Feb 2009 03:59:12 +0000 (03:59 +0000)] 
Blocked revisions 175411 via svnmerge

........
  r175411 | dhubbard | 2009-02-12 18:13:38 -0600 (Thu, 12 Feb 2009) | 13 lines

  Add dynamic fax buffer configuration option to chan_dahdi.conf

  When the 'faxdetect' configuration option is used, one may also want to use
  the 'faxbuffers' configuration option in chan_dahdi.conf.  This option will
  dynamically use the configured 'faxbuffers' buffer policy on a channel for
  the life of the call following the detection of fax tones.  The faxbuffers
  buffer policy will be reverted during call teardown.

  An example use of 'faxbuffers' is below.  This example would switch to using
  6 buffers with a full buffer policy.

  faxbuffers=>6,full
........

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

16 years agoBlocked revisions 175408 via svnmerge
Mark Michelson [Thu, 12 Feb 2009 23:24:35 +0000 (23:24 +0000)] 
Blocked revisions 175408 via svnmerge

................
  r175408 | mmichelson | 2009-02-12 17:23:47 -0600 (Thu, 12 Feb 2009) | 17 lines

  Blocked revisions 175407 via svnmerge

  ........
    r175407 | mmichelson | 2009-02-12 17:22:44 -0600 (Thu, 12 Feb 2009) | 12 lines

    Fix a place where filestreams were not refcounted properly

    This section was already present in trunk and other branches,
    but did not exist in 1.4.

    (closes issue #14395)
    Reported by: ZX81
    Patches:
          14395.patch uploaded by putnopvut (license 60)
    Tested by: ZX81
  ........
................

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

16 years agoMerged revisions 175368 via svnmerge from
Russell Bryant [Thu, 12 Feb 2009 21:41:36 +0000 (21:41 +0000)] 
Merged revisions 175368 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r175368 | russell | 2009-02-12 15:41:01 -0600 (Thu, 12 Feb 2009) | 2 lines

Remove useless string copy, and make sscanf safe again

........

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

16 years agoBlocked revisions 175344 via svnmerge
David Vossel [Thu, 12 Feb 2009 21:34:07 +0000 (21:34 +0000)] 
Blocked revisions 175344 via svnmerge

........
  r175344 | dvossel | 2009-02-12 15:27:11 -0600 (Thu, 12 Feb 2009) | 10 lines

  Adds force encryption option to iax.conf

  This patch adds forceencryption=yes as an iax.conf option.  When force encryption is enabled, no unencrypted connections are allowed.  This insures all connections are encrypted.  This is a new feature, so CHANGES and iax.conf.sample are updated as well.

  (closes issue #13285)
  Reported by: sgofferj
  Tested by: russell
  Review: http://reviewboard.digium.com/r/150/
........

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

16 years agoMerged revisions 175334 via svnmerge from
Tilghman Lesher [Thu, 12 Feb 2009 21:27:03 +0000 (21:27 +0000)] 
Merged revisions 175334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r175334 | tilghman | 2009-02-12 15:25:14 -0600 (Thu, 12 Feb 2009) | 16 lines

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

  ........
    r175311 | tilghman | 2009-02-12 15:19:40 -0600 (Thu, 12 Feb 2009) | 9 lines

    Fix crashes when receiving certain T.38 packets.  Also, increase the maximum
    size of T.38 packets and warn users when they try to set the limits above those
    maximums.
    (closes issue #13050)
     Reported by: schern
     Patches:
           20090212__bug13050.diff.txt uploaded by Corydon76 (license 14)
     Tested by: schern
  ........
................

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

16 years agoMerged revisions 175298 via svnmerge from
Jeff Peeler [Thu, 12 Feb 2009 20:51:45 +0000 (20:51 +0000)] 
Merged revisions 175298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r175298 | jpeeler | 2009-02-12 14:48:56 -0600 (Thu, 12 Feb 2009) | 15 lines

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

  ........
    r175294 | jpeeler | 2009-02-12 14:34:36 -0600 (Thu, 12 Feb 2009) | 9 lines

    Fix ParkedCall event information for From field in the case of a blind transfer

    If the parker information can not be obtained from the peer, try and see if
    the BLINDTRANSFER channel variable has been set. Previously, a blind transfer
    to the ParkAndAnnounce app would return nothing for the From.

    Closes AST-189
  ........
................

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

16 years agoMerged revisions 175295 via svnmerge from
Russell Bryant [Thu, 12 Feb 2009 20:48:13 +0000 (20:48 +0000)] 
Merged revisions 175295 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r175295 | russell | 2009-02-12 14:45:47 -0600 (Thu, 12 Feb 2009) | 2 lines

Avoid using ast_strdupa() in a loop.

........

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

16 years agoMerged revisions 175255 via svnmerge from
Russell Bryant [Thu, 12 Feb 2009 19:12:06 +0000 (19:12 +0000)] 
Merged revisions 175255 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r175255 | russell | 2009-02-12 13:11:08 -0600 (Thu, 12 Feb 2009) | 4 lines

Don't enable something by default that has a dependency on something _not_ enabled by default.

menuselect was not happy with this.

........

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

16 years agoMerged revisions 175250 via svnmerge from
Kevin P. Fleming [Thu, 12 Feb 2009 18:50:04 +0000 (18:50 +0000)] 
Merged revisions 175250 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r175250 | kpfleming | 2009-02-12 12:48:52 -0600 (Thu, 12 Feb 2009) | 1 line

  correct warning message to not refer specifically to DAHDI
........

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

16 years agoMerged revisions 175188 via svnmerge from
Jeff Peeler [Thu, 12 Feb 2009 18:01:54 +0000 (18:01 +0000)] 
Merged revisions 175188 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r175188 | jpeeler | 2009-02-12 12:00:11 -0600 (Thu, 12 Feb 2009) | 12 lines

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

  ........
    r175187 | jpeeler | 2009-02-12 11:57:10 -0600 (Thu, 12 Feb 2009) | 6 lines

    Fix crash in event of failed attempt to transfer to parking

    The peer may not necessarily exist, such as in the case of a transfer to
    ParkAndAnnounce. In this case don't try to play a sound to it.
  ........
................

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

16 years agoMerged revisions 175127 via svnmerge from
David Vossel [Thu, 12 Feb 2009 17:09:55 +0000 (17:09 +0000)] 
Merged revisions 175127 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r175127 | dvossel | 2009-02-12 11:07:17 -0600 (Thu, 12 Feb 2009) | 4 lines

  Setting key rotation to be off by default

  Key rotation breaks compatibility between (trunk/1.6.1) and (1.2/1.4/1.6.0).  As a follow up to this, I am investigating possible ways to allow key rotation to be on by default and not affect the other branches, but for now it must be turned off.
........

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

16 years agoMerged revisions 175125 via svnmerge from
Russell Bryant [Thu, 12 Feb 2009 17:08:25 +0000 (17:08 +0000)] 
Merged revisions 175125 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r175125 | russell | 2009-02-12 10:57:25 -0600 (Thu, 12 Feb 2009) | 35 lines

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

........
r175124 | russell | 2009-02-12 10:51:13 -0600 (Thu, 12 Feb 2009) | 27 lines

Don't send DTMF for infinite time if we do not receive an END event.

I thought that this was going to end up being a pretty gnarly fix, but it turns
out that there was actually already a configuration option in rtp.conf,
dtmftimeout, that was intended to handle this situation.  However, in between
Asterisk 1.2 and Asterisk 1.4, the code that processed the option got lost.
So, this commit brings it back to life.

The default timeout is 3 seconds.  However, it is worth noting that having
this be configurable at all is not really the recommended behavior in RFC 2833.
From Section 3.5 of RFC 2833:

      Limiting the time period of extending the tone is necessary
      to avoid that a tone "gets stuck". Regardless of the
      algorithm used, the tone SHOULD NOT be extended by more than
      three packet interarrival times. A slight extension of tone
      durations and shortening of pauses is generally harmless.

Three seconds will pretty much _always_ be far more than three packet
interarrival times.  However, that behavior is not required, so I'm going to
leave it with our legacy behavior for now.

Code from svn/asterisk/team/russell/issue_14460

(closes issue #14460)
Reported by: moliveras

........

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

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

16 years agoMerged revisions 175121 via svnmerge from
Mark Michelson [Thu, 12 Feb 2009 16:35:30 +0000 (16:35 +0000)] 
Merged revisions 175121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r175121 | mmichelson | 2009-02-12 10:28:06 -0600 (Thu, 12 Feb 2009) | 11 lines

  Make lock information for ao2_trylock be more useful and gnarly

  Core show locks information involving an ao2_trylock did not
  show the function that called ao2_trylock, but would instead
  show ao2_trylock as the source of the lock. This is not useful
  when trying to debug locking issues.

  One bizarre note is that this logic is already in 1.4 but somehow
  did not get merged to trunk or the 1.6.X branches.
........

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

16 years agoMerged revisions 174951 via svnmerge from
Mark Michelson [Wed, 11 Feb 2009 23:13:21 +0000 (23:13 +0000)] 
Merged revisions 174951 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174951 | mmichelson | 2009-02-11 17:12:57 -0600 (Wed, 11 Feb 2009) | 3 lines

  Fix a bit of odd logic for announcing position. Sync with 1.6.0's logic
........

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

16 years agoMerged revisions 174948 via svnmerge from
Mark Michelson [Wed, 11 Feb 2009 23:11:33 +0000 (23:11 +0000)] 
Merged revisions 174948 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174948 | mmichelson | 2009-02-11 17:03:08 -0600 (Wed, 11 Feb 2009) | 20 lines

  Fix odd "thank you" sound playing behavior in app_queue.c

  If someone has configured the queue to play an position or holdtime
  announcement, then it is odd and potentially unexpected to hear a
  "Thank you for your patience" sound when no position or holdtime
  was actually announced.

  This fixes the announcement so that the "thanks" sound is only played
  in the case that a position or holdtime was actually announced.

  There is a way that the "thank you" sound can be played without a
  position or holdtime, and that is to set announce-frequency to a value
  but keep announce-position and announce-holdtime both turned off.

  (closes issue #14227)
  Reported by: caspy
  Patches:
        14227_v3.patch uploaded by putnopvut (license 60)
  Tested by: caspy
........

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

16 years agoMerged revisions 174945 via svnmerge from
Mark Michelson [Wed, 11 Feb 2009 22:55:16 +0000 (22:55 +0000)] 
Merged revisions 174945 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174945 | mmichelson | 2009-02-11 16:41:01 -0600 (Wed, 11 Feb 2009) | 29 lines

  Fix 'd' option for app_dial and add new option to Answer application

  The 'd' option would not work for channel types which use RTP to transport
  DTMF digits. The only way to allow for this to work was to answer the channel
  if we saw that this option was enabled.

  I realized that this may cause issues with CDRs, specifically with giving false
  dispositions and answer times. I therefore modified ast_answer to take another
  parameter which would tell if the CDR should be marked answered.

  I also extended this to the Answer application so that the channel may be answered
  but not CDRified if desired.

  I also modified app_dictate and app_waitforsilence to only answer the channel if it
  is not already up, to help not allow for faulty CDR answer times.

  All of these changes are going into Asterisk trunk. For 1.6.0 and 1.6.1, however, all
  the changes except for the change to the Answer application will go in since we do
  not introduce new features into stable branches

  (closes issue #14164)
  Reported by: DennisD
  Patches:
        14164.patch uploaded by putnopvut (license 60)
  Tested by: putnopvut

  Review: http://reviewboard.digium.com/r/145
........

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

16 years agoMerged revisions 174844 via svnmerge from
Joshua Colp [Wed, 11 Feb 2009 14:46:13 +0000 (14:46 +0000)] 
Merged revisions 174844 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174844 | file | 2009-02-11 10:44:47 -0400 (Wed, 11 Feb 2009) | 10 lines

  Tell the device state core a change happened when a channel is freed but not a specific state.
  We need to do this because while we know that the freeing of the channel may cause something to become
  not in use we do not know this for sure. There may be another channel that is still up which would cause
  it to be in use.
  (closes issue #13238)
  Reported by: kowalma
  Patches:
        20090121__bug13238.diff.txt uploaded by Corydon76 (license 14)
  Tested by: alecdavis
........

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

16 years agoMerged revisions 174805 via svnmerge from
Mark Michelson [Tue, 10 Feb 2009 23:21:03 +0000 (23:21 +0000)] 
Merged revisions 174805 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r174805 | mmichelson | 2009-02-10 17:17:03 -0600 (Tue, 10 Feb 2009) | 11 lines

Fix potential for stack overflows in app_chanspy.c

When using the 'g' or 'e' options, the stack allocations that
were used could cause a stack overflow if a spyer stayed on the
line long enough without actually successfully spying on anyone.

The problem has been corrected by using static buffers and copying
the contents of the appropriate strings into them instead of using
functions like alloca or ast_strdupa

........

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

16 years agoMerged revisions 174764 via svnmerge from
Mark Michelson [Tue, 10 Feb 2009 21:54:45 +0000 (21:54 +0000)] 
Merged revisions 174764 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r174764 | mmichelson | 2009-02-10 15:45:14 -0600 (Tue, 10 Feb 2009) | 21 lines

Fix an fd leak that would occur in HTTP AMI sessions

The explanation behind this fix is a bit complicated, and I've already
typed it up in the code as a huge comment inside of manager.c, so I'll
give the abridged version here.

We needed a way to separate action-specific data from session-specific data.
Unfortunately, the only way to maintain API compatibility and to not have to
change every single manager action was to rename the current mansession structure
and wrap it inside a new mansession structure which actually contains action-
specific data.

(closes issue #14364)
Reported by: awk
Patches:
      14364_better.patch uploaded by putnopvut (license 60)
Tested by: putnopvut

Review: http://reviewboard.digium.com/r/148/

........

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

16 years agoMerged revisions 174710 via svnmerge from
Joshua Colp [Tue, 10 Feb 2009 20:17:43 +0000 (20:17 +0000)] 
Merged revisions 174710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174710 | file | 2009-02-10 16:15:43 -0400 (Tue, 10 Feb 2009) | 4 lines

  Only decrease inringing count if above zero.
  (issue #13238)
  Reported by: kowalma
........

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

16 years agoMerged revisions 174584 via svnmerge from
Matthew Nicholson [Tue, 10 Feb 2009 18:18:23 +0000 (18:18 +0000)] 
Merged revisions 174584 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r174584 | mnicholson | 2009-02-10 12:16:31 -0600 (Tue, 10 Feb 2009) | 25 lines

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

  ........
    r174583 | mnicholson | 2009-02-10 11:52:42 -0600 (Tue, 10 Feb 2009) | 18 lines

    Improve behavior of jitterbuffer when maxjitterbuffer is set.

    This change improves the way the jitterbuffer handles maxjitterbuffer and
    dramatically reduces the number of frames dropped when maxjitterbuffer is
    exceeded.  In the previous jitterbuffer, when maxjitterbuffer was exceeded, all
    new frames were dropped until the jitterbuffer is empty.  This change modifies
    the code to only drop frames until maxjitterbuffer is no longer exceeded.

    Also, previously when maxjitterbuffer was exceeded, dropped frames were not
    tracked causing stats for dropped frames to be incorrect, this change also
    addresses that problem.

    (closes issue #14044)
    Patches:
          bug14044-1.diff uploaded by mnicholson (license 96)
    Tested by: mnicholson
    Review: http://reviewboard.digium.com/r/144/
  ........
................

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

16 years agoMerged revisions 174580 via svnmerge from
Joshua Colp [Tue, 10 Feb 2009 17:49:45 +0000 (17:49 +0000)] 
Merged revisions 174580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174580 | file | 2009-02-10 13:48:29 -0400 (Tue, 10 Feb 2009) | 4 lines

  Set the type for the peer structure to be a peer as the default.
  (closes issue #14447)
  Reported by: triccyx
........

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

16 years agoMerged revisions 174543 via svnmerge from
Joshua Colp [Tue, 10 Feb 2009 15:39:53 +0000 (15:39 +0000)] 
Merged revisions 174543 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174543 | file | 2009-02-10 11:37:07 -0400 (Tue, 10 Feb 2009) | 6 lines

  Make the logic for inuse and inringing manipluation match that of 1.4. The old broken logic would reset the values back to 0 during certain scenarios causing the wrong state to be reported.
  (closes issue #14399)
  Reported by: caspy
  (issue #13238)
  Reported by: kowalma
........

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

16 years agoMerged revisions 174503 via svnmerge from
Tilghman Lesher [Tue, 10 Feb 2009 07:07:30 +0000 (07:07 +0000)] 
Merged revisions 174503 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174503 | tilghman | 2009-02-10 01:06:29 -0600 (Tue, 10 Feb 2009) | 2 lines

  Fix0ring build
........

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

16 years agoMerged revisions 174470 via svnmerge from
Tilghman Lesher [Tue, 10 Feb 2009 05:42:52 +0000 (05:42 +0000)] 
Merged revisions 174470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174470 | tilghman | 2009-02-09 23:39:33 -0600 (Mon, 09 Feb 2009) | 2 lines

  Remove the usage of the KeepAlive app, as it no longer exists.
........

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

16 years agoThis patch corrects warnings which seem to appear
Steve Murphy [Tue, 10 Feb 2009 05:13:15 +0000 (05:13 +0000)] 
This patch corrects warnings which seem to appear
only on 64-bit compilers, gcc-4.3.2.

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

16 years agoOne final fix in the 1.6.1 release only; some variables the compiler
Steve Murphy [Tue, 10 Feb 2009 05:03:18 +0000 (05:03 +0000)] 
One final fix in the 1.6.1 release only; some variables the compiler
worries "may not be initialized".

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

16 years agoMerged revisions 174435 via svnmerge from
Steve Murphy [Tue, 10 Feb 2009 04:57:40 +0000 (04:57 +0000)] 
Merged revisions 174435 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r174435 | murf | 2009-02-09 21:49:02 -0700 (Mon, 09 Feb 2009) | 8 lines

This patch removes the use of AST_PBX_KEEPALIVE
from app_rpt.c.

(closes issue #14435)
Reported by: D_McNaul

........

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

16 years agoMerged revisions 174432 via svnmerge from
Steve Murphy [Tue, 10 Feb 2009 04:46:17 +0000 (04:46 +0000)] 
Merged revisions 174432 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r174432 | murf | 2009-02-09 21:36:22 -0700 (Mon, 09 Feb 2009) | 3 lines

More intptr_t work.

........

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

16 years agoMerged revisions 174370 via svnmerge from
Steve Murphy [Tue, 10 Feb 2009 04:09:42 +0000 (04:09 +0000)] 
Merged revisions 174370 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r174370 | murf | 2009-02-09 19:45:56 -0700 (Mon, 09 Feb 2009) | 10 lines

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

  ........
    r174369 | murf | 2009-02-09 19:27:40 -0700 (Mon, 09 Feb 2009) | 5 lines

    This patch solves some compiler complaints
    in both 32 and 64-bit environments.
  ........
................

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

16 years agoMerged revisions 174325 via svnmerge from
David Vossel [Mon, 9 Feb 2009 17:47:27 +0000 (17:47 +0000)] 
Merged revisions 174325 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174325 | dvossel | 2009-02-09 11:26:02 -0600 (Mon, 09 Feb 2009) | 9 lines

  Fixes issue with hangups not being sent and external process never terminating.

  The ignore_hangup, run_dead, and noanswer flags were never initilized to zero causing hangups to never be issued.  If the external script expects to be notified of a hangup and never receives one, it runs indefinitely.

  (closes issue #14251)
  Reported by: chris-mac
  Tested by: dvossel
........

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

16 years agoMerged revisions 174327 via svnmerge from
Mark Michelson [Mon, 9 Feb 2009 17:30:33 +0000 (17:30 +0000)] 
Merged revisions 174327 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r174327 | mmichelson | 2009-02-09 11:27:32 -0600 (Mon, 09 Feb 2009) | 3 lines

Fix something I messed up in the merge I just did

........

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

16 years agoMerged revisions 174301 via svnmerge from
Mark Michelson [Mon, 9 Feb 2009 17:26:39 +0000 (17:26 +0000)] 
Merged revisions 174301 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r174301 | mmichelson | 2009-02-09 11:20:55 -0600 (Mon, 09 Feb 2009) | 20 lines

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

........
r174282 | mmichelson | 2009-02-09 11:11:05 -0600 (Mon, 09 Feb 2009) | 12 lines

Don't do an SRV lookup if a port is specified

RFC 3263 says to do A record lookups on a hostname
if a port has been specified, so that's what we're
going to do. See section 4.2.

(closes issue #14419)
Reported by: klaus3000
Patches:
      patch_chan_sip_nosrvifport_1.4.23.txt uploaded by klaus3000 (license 65)

........

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

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

16 years agoMerged revisions 174219 via svnmerge from
Joshua Colp [Mon, 9 Feb 2009 14:50:50 +0000 (14:50 +0000)] 
Merged revisions 174219 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r174219 | file | 2009-02-09 10:49:24 -0400 (Mon, 09 Feb 2009) | 11 lines

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

  ........
    r174218 | file | 2009-02-09 10:48:21 -0400 (Mon, 09 Feb 2009) | 4 lines

    Don't overwrite our pointer to the music class when music on hold stops. We will use this if it starts again to see if we can resume the music where it left off.
    (closes issue #14407)
    Reported by: mostyn
  ........
................

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

16 years agoMerged revisions 174149 via svnmerge from
Russell Bryant [Sat, 7 Feb 2009 16:18:02 +0000 (16:18 +0000)] 
Merged revisions 174149 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r174149 | russell | 2009-02-07 10:16:50 -0600 (Sat, 07 Feb 2009) | 10 lines

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

........
r174148 | russell | 2009-02-07 10:15:07 -0600 (Sat, 07 Feb 2009) | 2 lines

Fix a race condition that could cause a crash.

........

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

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

16 years agoMerged revisions 174084 via svnmerge from
Dwayne M. Hubbard [Sat, 7 Feb 2009 00:09:08 +0000 (00:09 +0000)] 
Merged revisions 174084 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r174084 | dhubbard | 2009-02-06 17:51:56 -0600 (Fri, 06 Feb 2009) | 13 lines

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

........
r174082 | dhubbard | 2009-02-06 17:36:03 -0600 (Fri, 06 Feb 2009) | 5 lines

check ast_strlen_zero() before calling ast_strdupa() in sip_uri_headers_cmp()
and sip_uri_params_cmp()

The reporter didn't actually upload a properly-formed patch, instead a
modified chan_sip.c file was uploaded.  I created a patch to determine the
changes, then modified the suggested changes to create a proper fix.  The
summary above is a complete description of the changes.

(closes issue #13547)
Reported by: tecnoxarxa
Patches:
      chan_sip.c.gz uploaded by tecnoxarxa (license 258)
Tested by: tecnoxarxa

........

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

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

16 years agoBlocked revisions 174046 via svnmerge
David Vossel [Fri, 6 Feb 2009 20:29:58 +0000 (20:29 +0000)] 
Blocked revisions 174046 via svnmerge

........
  r174046 | dvossel | 2009-02-06 14:12:33 -0600 (Fri, 06 Feb 2009) | 12 lines

  Adds immediate yes/no option to iax.conf

  This is very similar to the DAHDI immediate=yes option.  When the phone is picked up, instead of giving a dialtone it connects directly to the "s" extension.  Changes where implemented in chan_iax2.c to directly connect to the "s" extension in the appropriate context when this option is enabled.  Examples explaining its use are added to iax2.conf.sample.  CHANGES has been updated as well.

  (closes issue #14266)
  Reported by: jcovert
  Patches:
        chan_iax2.c.patch-trunk uploaded by jcovert (license 551)
        iax.conf.sample.patch uploaded by jcovert (license 551)
  Tested by: jcovert, dvossel
  Review: http://reviewboard.digium.com/r/143/
........

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

16 years agoMerged revisions 174041 via svnmerge from
Joshua Colp [Fri, 6 Feb 2009 19:30:29 +0000 (19:30 +0000)] 
Merged revisions 174041 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r174041 | file | 2009-02-06 15:28:53 -0400 (Fri, 06 Feb 2009) | 4 lines

  Don't subscribe to a mailbox on pseudo channels. It is futile. This solves an issue where duplicated pseudo channels would cause a crash because the first one would unsubscribe and the next one would also try to unsubscribe the same subscription.
  (closes issue #14322)
  Reported by: amessina
........

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

16 years agoMerged revisions 173974 via svnmerge from
Joshua Colp [Fri, 6 Feb 2009 17:22:56 +0000 (17:22 +0000)] 
Merged revisions 173974 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r173974 | file | 2009-02-06 13:18:35 -0400 (Fri, 06 Feb 2009) | 15 lines

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

  ........
    r173967 | file | 2009-02-06 13:14:15 -0400 (Fri, 06 Feb 2009) | 4 lines

    Some clients do not put the call-id for replaces at the beginning, so support it being anywhere in the string.
    (closes issue #14350)
    Reported by: fhackenberger
  ........
    r173968 | file | 2009-02-06 13:15:01 -0400 (Fri, 06 Feb 2009) | 2 lines

    Remove a debug message I put in by accident.
  ........
................

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

16 years agoMerged revisions 173952 via svnmerge from
Matthew Nicholson [Fri, 6 Feb 2009 17:05:05 +0000 (17:05 +0000)] 
Merged revisions 173952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r173952 | mnicholson | 2009-02-06 10:28:19 -0600 (Fri, 06 Feb 2009) | 14 lines

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

  ........
    r173917 | mnicholson | 2009-02-06 10:20:23 -0600 (Fri, 06 Feb 2009) | 7 lines

    Limit the addition of the Contact header in SIP responses according to various
    SIP RFCs.

    (closes issue #13602)
    Reported by: hjourdain
    Tested by: mnicholson
  ........
................

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

16 years agorevert revision 173964
Matthew Nicholson [Fri, 6 Feb 2009 17:04:04 +0000 (17:04 +0000)] 
revert revision 173964

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

16 years agoMerged revisions 173952 via svnmerge from
Matthew Nicholson [Fri, 6 Feb 2009 16:39:21 +0000 (16:39 +0000)] 
Merged revisions 173952 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r173952 | mnicholson | 2009-02-06 10:28:19 -0600 (Fri, 06 Feb 2009) | 14 lines

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

  ........
    r173917 | mnicholson | 2009-02-06 10:20:23 -0600 (Fri, 06 Feb 2009) | 7 lines

    Limit the addition of the Contact header in SIP responses according to various
    SIP RFCs.

    (closes issue #13602)
    Reported by: hjourdain
    Tested by: mnicholson
  ........
................

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

16 years agoMerged revisions 173902 via svnmerge from
Joshua Colp [Fri, 6 Feb 2009 16:01:01 +0000 (16:01 +0000)] 
Merged revisions 173902 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r173902 | file | 2009-02-06 11:59:17 -0400 (Fri, 06 Feb 2009) | 4 lines

  Always detach and destroy the whisper and barge audiohooks. Additionally also allow an audiohook to be detached if it has not been attached.
  (closes issue #14414)
  Reported by: bluecrow76
........

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

16 years agoBlocked revisions 173858 via svnmerge
Russell Bryant [Fri, 6 Feb 2009 10:57:30 +0000 (10:57 +0000)] 
Blocked revisions 173858 via svnmerge

........
r173858 | russell | 2009-02-06 04:55:35 -0600 (Fri, 06 Feb 2009) | 13 lines

Add a common implementation of a scheduler context with a dedicated thread.

This commit expands the Asterisk scheduler API to include a common implementation
of a scheduler context being processed by a dedicated thread.  chan_iax2 has been
updated to use this new code.  Also, as a result, this resolves some race
conditions related to the previous chan_iax2 scheduler handling.

Related to rev 171452 which resolved the same issues in 1.4.

Code from team/russell/sched_thread2

Review: http://reviewboard.digium.com/r/129/

........

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

16 years agoMerged revisions 173848 via svnmerge from
Russell Bryant [Fri, 6 Feb 2009 10:26:18 +0000 (10:26 +0000)] 
Merged revisions 173848 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r173848 | russell | 2009-02-06 04:25:09 -0600 (Fri, 06 Feb 2009) | 2 lines

Resolve a memory leak that would occur on an invalid channel given to Action: Status

........

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