]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoBlocked revisions 182362 via svnmerge
Russell Bryant [Mon, 16 Mar 2009 20:54:01 +0000 (20:54 +0000)] 
Blocked revisions 182362 via svnmerge

........
r182362 | russell | 2009-03-16 15:53:21 -0500 (Mon, 16 Mar 2009) | 2 lines

Update UPGRADE.txt and CHANGES for 1.6.3

........

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

16 years agoBlocked revisions 182355 via svnmerge
Russell Bryant [Mon, 16 Mar 2009 20:39:34 +0000 (20:39 +0000)] 
Blocked revisions 182355 via svnmerge

........
r182355 | russell | 2009-03-16 15:35:58 -0500 (Mon, 16 Mar 2009) | 29 lines

Add MFC/R2 support for chan_dahdi.

This commit introduces official support for R2 signaling in chan_dahdi.  The
modifications to chan_dahdi, and the supporting library, LibOpenR2, were both
written by Moises Silva.

Many users are using this code, or a variant of it, in Asterisk 1.2, 1.4 and 1.6
in Brazil, México and Argentina. An unknown number of users (but at least 1)
are using it in each of the following countries: Colombia, Nepal, Thailand,
Venezuela, Perú, and probably others.

To use this code, LibOpenR2 must be installed from http://www.libopenr2.org/.
Information about configuration can be found in configs/chan_dahdi.conf.sample.

The code committed is the most up to date version, which was being maintained
in svn/asterisk/team/moy/mfcr2/.

I would also like to include a Thank You to the many others that tested this
code beyond those listed in this commit message.  These are the names that I
could find in the mantis issue.

(closes issue #12509)
Reported by: moy
Patches:
      chan_zap-mfr2.patch uploaded by moy (license 222)
Tested by: moy, korihor, viniciusfontes, Skarmeth, loloski, asbestoshead, titogarrido, heliocoelhojr, konsultex, ncorrare, ecarruda, rtorresduque, PTorres, ychen

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

........

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

16 years agoMerged revisions 182282 via svnmerge from
David Vossel [Mon, 16 Mar 2009 17:53:54 +0000 (17:53 +0000)] 
Merged revisions 182282 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182282 | dvossel | 2009-03-16 12:49:58 -0500 (Mon, 16 Mar 2009) | 13 lines

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

  ........
    r182281 | dvossel | 2009-03-16 12:47:42 -0500 (Mon, 16 Mar 2009) | 7 lines

    Randomize IAX2 encryption padding

    The 16-32 byte random padding at the beginning of an encrypted IAX2 frame turns out to not be all that random at all.  This patch calls ast_random to fill the padding buffer with random data.  The padding is randomized at the beginning of every encrypted call and for every encrypted retransmit frame.

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

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

16 years agoMerged revisions 182211,182278 via svnmerge from
Tilghman Lesher [Mon, 16 Mar 2009 17:38:50 +0000 (17:38 +0000)] 
Merged revisions 182211,182278 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182211 | tilghman | 2009-03-16 10:50:55 -0500 (Mon, 16 Mar 2009) | 14 lines

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

  ........
    r182208 | tilghman | 2009-03-16 10:39:15 -0500 (Mon, 16 Mar 2009) | 7 lines

    Fixup glare detection, to fix a memory leak of a local pvt structure.
    (closes issue #14656)
     Reported by: caspy
     Patches:
           20090313__bug14656__2.diff.txt uploaded by tilghman (license 14)
     Tested by: caspy
  ........
................
  r182278 | tilghman | 2009-03-16 12:33:38 -0500 (Mon, 16 Mar 2009) | 7 lines

  Fix an off-by-one error in the FILE() function, and extend FILE()'s length parameter to work like variable substitution.
  Previously, FILE() returned one less character than specified, due to the
  terminating NULL.  Both the offset and length parameters now behave
  identically to the way variable substitution offsets and lengths also work.
  (closes issue #14670)
   Reported by: BMC
................

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

16 years agoMerged revisions 182171 via svnmerge from
Joshua Colp [Mon, 16 Mar 2009 14:00:21 +0000 (14:00 +0000)] 
Merged revisions 182171 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182171 | file | 2009-03-16 10:58:24 -0300 (Mon, 16 Mar 2009) | 7 lines

  Fix a memory leak in the ast_answer / __ast_answer API call.

  For a channel that is not yet answered this API call will wait
  until a voice frame is received on the channel before returning.
  It does this by waiting for frames on the channel and reading them
  in. The frames read in were not freed when they should have been.
........

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

16 years agoMerged revisions 182121 via svnmerge from
Mark Michelson [Fri, 13 Mar 2009 21:27:08 +0000 (21:27 +0000)] 
Merged revisions 182121 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182121 | mmichelson | 2009-03-13 16:26:20 -0500 (Fri, 13 Mar 2009) | 6 lines

  Change faulty comparison used when announcing average hold minutes and seconds

  (closes issue #14227)
  Reported by: caspy
........

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

16 years agoBlocked revisions 182071 via svnmerge
Mark Michelson [Fri, 13 Mar 2009 17:49:52 +0000 (17:49 +0000)] 
Blocked revisions 182071 via svnmerge

........
  r182071 | mmichelson | 2009-03-13 12:49:01 -0500 (Fri, 13 Mar 2009) | 3 lines

  Remove ast_ prefix from functions which are not public.
........

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

16 years agoMerged revisions 182029 via svnmerge from
Mark Michelson [Fri, 13 Mar 2009 17:39:49 +0000 (17:39 +0000)] 
Merged revisions 182029 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182029 | mmichelson | 2009-03-13 12:26:43 -0500 (Fri, 13 Mar 2009) | 41 lines

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

  ........
    r181990 | mmichelson | 2009-03-13 12:12:32 -0500 (Fri, 13 Mar 2009) | 35 lines

    Check the DYNAMIC_FEATURES of both the chan and peer when interpreting DTMF.

    Dynamic features defined in the applicationmap section of features.conf allow
    one to specify whether the caller, callee, or both have the ability to use the
    feature. The documentation in the features.conf.sample file could be interpreted
    to mean that one only needs to set the DYNAMIC_FEATURES channel variable on the
    calling channel in order to allow for the callee to be able to use the features
    which he should have permission to use. However, the DYNAMIC_FEATURES variable
    would only be read from the channel of the participant that pressed the DTMF
    sequence to activate the feature. The result of this was that the callee was
    unable to use dynamic features unless the dialplan writer had taken measures
    to be sure that the DYNAMIC_FEATURES variable was set on the callee's channel.

    This commit changes the behavior of ast_feature_interpret to concatenate the
    values of DYNAMIC_FEATURES from both parties involved in the bridge. The features
    themselves determine who has permission to use them, so there is no reason to believe
    that one side of the bridge could gain the ability to perform an action that they
    should not have the ability to perform.

    Kevin Fleming pointed out on the asterisk-users list that the typical way that this
    was worked around in the past was by setting _DYNAMIC_FEATURES on the calling channel
    so that the value would be inherited by the called channel. While this works, the
    documentation alone is not enough to figure out why this is necessary for the callee
    to be able to use dynamic features. In this particular case, changing the code to match
    the documentation is safe, easy, and will generally make things easier for people for
    future installations.

    This bug was originally reported on the asterisk-users list by David Ruggles.

    (closes issue #14657)
    Reported by: mmichelson
    Patches:
          14657.patch uploaded by mmichelson (license 60)
  ........
................

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

16 years agoMerged revisions 182022 via svnmerge from
Joshua Colp [Fri, 13 Mar 2009 17:29:26 +0000 (17:29 +0000)] 
Merged revisions 182022 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182022 | file | 2009-03-13 14:25:09 -0300 (Fri, 13 Mar 2009) | 7 lines

  Fix an issue with requesting a T38 reinvite before the call is answered.

  The code responsible for sending the T38 reinvite did not check if an INVITE was
  already being handled. This caused things to get confused and the call to fail.
  The code now defers sending the T38 reinvite until the current INVITE is done being
  handled.

  (issue AST-191)
........

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

16 years agoMerged revisions 181985 via svnmerge from
Kevin P. Fleming [Fri, 13 Mar 2009 16:58:00 +0000 (16:58 +0000)] 
Merged revisions 181985 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181985 | kpfleming | 2009-03-13 11:55:38 -0500 (Fri, 13 Mar 2009) | 1 line

  improve a bit of suboptimal code
........

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

16 years agoMerged revisions 181846 via svnmerge from
Mark Michelson [Thu, 12 Mar 2009 21:45:48 +0000 (21:45 +0000)] 
Merged revisions 181846 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181846 | mmichelson | 2009-03-12 16:43:51 -0500 (Thu, 12 Mar 2009) | 3 lines

  Run the macro on the queue member's channel when he answers, not the caller's channel.
........

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

16 years agoMerged revisions 181769 via svnmerge from
Mark Michelson [Thu, 12 Mar 2009 18:36:34 +0000 (18:36 +0000)] 
Merged revisions 181769 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181769 | mmichelson | 2009-03-12 13:30:58 -0500 (Thu, 12 Mar 2009) | 28 lines

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

  ........
    r181768 | mmichelson | 2009-03-12 13:29:48 -0500 (Thu, 12 Mar 2009) | 22 lines

    Properly send a 487 on an INVITE we have not responded to if we receive a BYE.

    If we receive an INVITE from an endpoint and then later receive a BYE from that
    same endpoint before we have sent a final response for the INVITE, then we need
    to respond to the INVITE with a 487.

    There was logic in the code prior to this commit which seemed to exist solely to
    handle this situation, but there was one condition in an if statement which
    was incorrect. The only way we would send a 487 was if the sip_pvt had no owner
    channel. This made no sense since we created the owner channel when we received
    the INVITE, meaning that the majority of the time we would never send the 487.
    The 487 being sent should not rely on whether we have created a channel. Its
    delivery should be dependent on the current state of the initial INVITE transaction.
    With this commit, that logic is now correctly in place.

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

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

16 years agoMerged revisions 181731 via svnmerge from
Tilghman Lesher [Thu, 12 Mar 2009 18:07:51 +0000 (18:07 +0000)] 
Merged revisions 181731 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181731 | tilghman | 2009-03-12 12:32:13 -0500 (Thu, 12 Mar 2009) | 9 lines

  Adjust translation table column widths based upon the translation times.
  Previously, only 5 columns were displayed, and if a translation time exceeded
  99,999 useconds, it would be displayed as 0, instead of its actual time.
  (closes issue #14532)
   Reported by: pj
   Patches:
         20090311__bug14532.diff.txt uploaded by tilghman (license 14)
   Tested by: pj
........

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

16 years agoMerged revisions 181665 via svnmerge from
Joshua Colp [Thu, 12 Mar 2009 16:58:22 +0000 (16:58 +0000)] 
Merged revisions 181665 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181665 | file | 2009-03-12 13:56:58 -0300 (Thu, 12 Mar 2009) | 9 lines

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

  ........
    r181664 | file | 2009-03-12 13:56:20 -0300 (Thu, 12 Mar 2009) | 2 lines

    Fix incorrect usage of strncasecmp... I really meant to use strcasecmp.
  ........
................

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

16 years agoMerged revisions 181661 via svnmerge from
Joshua Colp [Thu, 12 Mar 2009 16:55:17 +0000 (16:55 +0000)] 
Merged revisions 181661 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181661 | file | 2009-03-12 13:53:52 -0300 (Thu, 12 Mar 2009) | 19 lines

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

  ........
    r181659 | file | 2009-03-12 13:50:37 -0300 (Thu, 12 Mar 2009) | 8 lines

    Fix another scenario where depending on configuration the stream would not get read.

    For custom commands we don't know whether the audio is coming from a stream or not
    so we are going to have to read the data despite no channels.

    (closes issue #14416)
    Reported by: caspy
  ........
    r181660 | file | 2009-03-12 13:52:45 -0300 (Thu, 12 Mar 2009) | 2 lines

    Fix logic flaw in previous commit.
  ........
................

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

16 years agoMerged revisions 181656 via svnmerge from
Joshua Colp [Thu, 12 Mar 2009 16:34:41 +0000 (16:34 +0000)] 
Merged revisions 181656 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181656 | file | 2009-03-12 13:32:20 -0300 (Thu, 12 Mar 2009) | 17 lines

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

  ........
    r181655 | file | 2009-03-12 13:29:19 -0300 (Thu, 12 Mar 2009) | 10 lines

    Fix issue with streaming MOH failing if nobody is listening.

    When a music class is setup to actually provide music on hold
    from a stream we need to constantly read audio from it since it
    will constantly be providing audio. This is now done despite there
    being no channels listening to it.

    (closes issue #14416)
    Reported by: caspy
  ........
................

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

16 years agoMerged revisions 181612 via svnmerge from
Joshua Colp [Thu, 12 Mar 2009 13:28:39 +0000 (13:28 +0000)] 
Merged revisions 181612 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181612 | file | 2009-03-12 10:24:12 -0300 (Thu, 12 Mar 2009) | 5 lines

  Fix crash when sleep and retries argument was not given to RetryDial application.

  (closes issue #14647)
  Reported by: sherpya
........

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

16 years agoMerged revisions 181542 via svnmerge from
Richard Mudgett [Thu, 12 Mar 2009 01:05:19 +0000 (01:05 +0000)] 
Merged revisions 181542 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181542 | rmudgett | 2009-03-11 20:00:29 -0500 (Wed, 11 Mar 2009) | 1 line

  Use the correct branch integrated property when generating the version string
........

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

16 years agoMerged revisions 181499 via svnmerge from
Michiel van Baak [Wed, 11 Mar 2009 23:21:59 +0000 (23:21 +0000)] 
Merged revisions 181499 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

Provide correct hint to debug SIP trouble in the default config
(closes issue #14646)
Reported by: strk

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

16 years agoMerged revisions 181465 via svnmerge from
Russell Bryant [Wed, 11 Mar 2009 22:27:40 +0000 (22:27 +0000)] 
Merged revisions 181465 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r181465 | russell | 2009-03-11 17:25:57 -0500 (Wed, 11 Mar 2009) | 2 lines

Make handling of the BRIDGE_PLAY_SOUND variable thread-safe.

........

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

16 years agoMerged revisions 181444 via svnmerge from
Jason Parker [Wed, 11 Mar 2009 22:23:48 +0000 (22:23 +0000)] 
Merged revisions 181444 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181444 | qwell | 2009-03-11 17:20:13 -0500 (Wed, 11 Mar 2009) | 11 lines

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

  ........
    r181436 | qwell | 2009-03-11 17:18:42 -0500 (Wed, 11 Mar 2009) | 4 lines

    Allow prefix to set localstatedir (when used and different from the default).

    This is similar to the /etc change that was made for the non-FreeBSD case.
  ........
................

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

16 years agoMerged revisions 181428 via svnmerge from
Russell Bryant [Wed, 11 Mar 2009 22:16:12 +0000 (22:16 +0000)] 
Merged revisions 181428 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r181428 | russell | 2009-03-11 17:14:55 -0500 (Wed, 11 Mar 2009) | 2 lines

Make handling of the BRIDGEPVTCALLID variable thread-safe.

........

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

16 years agoMerged revisions 181424 via svnmerge from
Russell Bryant [Wed, 11 Mar 2009 22:01:46 +0000 (22:01 +0000)] 
Merged revisions 181424 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r181424 | russell | 2009-03-11 16:49:29 -0500 (Wed, 11 Mar 2009) | 17 lines

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

........
r181423 | russell | 2009-03-11 16:42:58 -0500 (Wed, 11 Mar 2009) | 9 lines

Make code that updates BRIDGEPEER variable thread-safe.

It is not safe to read the name field of an ast_channel without the channel
locked.  This patch fixes some places in channel.c where this was being done,
and lead to crashes related to masquerades.

(closes issue #14623)
Reported by: guillecabeza

........

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

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

16 years agoMerged revisions 181371 via svnmerge from
David Vossel [Wed, 11 Mar 2009 17:40:10 +0000 (17:40 +0000)] 
Merged revisions 181371 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181371 | dvossel | 2009-03-11 12:34:57 -0500 (Wed, 11 Mar 2009) | 17 lines

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

  ........
    r181340 | dvossel | 2009-03-11 12:25:31 -0500 (Wed, 11 Mar 2009) | 11 lines

    encrypted IAX2 during packet loss causes decryption to fail on retransmitted frames

    If an iax channel is encrypted, and a retransmit frame is sent, that packet's iseqno is updated while it is encrypted.  This causes the entire frame to be corrupted.  When the corrupted frame is sent, the other side decrypts it and sends a VNAK back because the decrypted frame doesn't make any sense.  When we get the VNAK, we look through the sent queue and send the same corrupted frame causing a loop.  To fix this, encrypted frames requiring retransmission are decrypted, updated, then re-encrypted.  Since key-rotation may change the key held by the pvt struct, the keys used for encryption/decryption are held within the iax_frame to guarantee they remain correct.

    (closes issue #14607)
    Reported by: stevenla
    Tested by: dvossel

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

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

16 years agoMerged revisions 181345 via svnmerge from
Joshua Colp [Wed, 11 Mar 2009 17:29:45 +0000 (17:29 +0000)] 
Merged revisions 181345 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181345 | file | 2009-03-11 14:26:40 -0300 (Wed, 11 Mar 2009) | 21 lines

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

  ........
    r181328 | file | 2009-03-11 14:22:52 -0300 (Wed, 11 Mar 2009) | 14 lines

    Fix issue where an attended transfer could not be completed under a rare scenario.

    When completing an attended transfer chan_sip does a check to make sure the extension
    in the URI portion of the Refer-To header is a local valid extension. We don't actually
    need to check this since we know for sure the other channel is already up and talking to
    the extension. Some devices do not put the extension in the Refer-To header either, which
    can cause the extension check to fail. We now no longer do this check if it is an attended
    transfer.

    (closes issue #14628)
    Reported by: sverre
    Patches:
          14628.diff uploaded by file (license 11)
  ........
................

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

16 years agoMerged revisions 181296 via svnmerge from
Joshua Colp [Wed, 11 Mar 2009 16:43:51 +0000 (16:43 +0000)] 
Merged revisions 181296 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181296 | file | 2009-03-11 13:40:48 -0300 (Wed, 11 Mar 2009) | 16 lines

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

  ........
    r181295 | file | 2009-03-11 13:36:50 -0300 (Wed, 11 Mar 2009) | 9 lines

    Fix a problem with inband DTMF detection on outgoing SIP calls when dtmfmode=auto.

    When dtmfmode was set to auto the inband DTMF detector was not setup
    on outgoing SIP calls. This caused inband DTMF detection to fail.
    The inband DTMF detector is now setup for both dtmfmode inband and auto.

    (closes issue #13713)
    Reported by: makoto
  ........
................

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

16 years agoBlocked revisions 181292 via svnmerge
Russell Bryant [Wed, 11 Mar 2009 16:21:25 +0000 (16:21 +0000)] 
Blocked revisions 181292 via svnmerge

........
r181292 | russell | 2009-03-11 11:19:38 -0500 (Wed, 11 Mar 2009) | 2 lines

Replace contents of this doc with a pointer to its new home

........

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

16 years agoadd missing header file
Jeff Peeler [Wed, 11 Mar 2009 15:54:38 +0000 (15:54 +0000)] 
add missing header file

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

16 years agoBlocked revisions 181244 via svnmerge
Mark Michelson [Wed, 11 Mar 2009 14:30:10 +0000 (14:30 +0000)] 
Blocked revisions 181244 via svnmerge

........
  r181244 | mmichelson | 2009-03-11 09:28:40 -0500 (Wed, 11 Mar 2009) | 11 lines

  Fix segfault when dialing a typo'd queue

  If trying to dial a non-existent queue, there would
  be a segfault when attempting to access q->weight, even
  though q was NULL. This problem was introduced during
  the queue-reset merge and thus only affects trunk.

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

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

16 years agoBlocked revisions 181210 via svnmerge
Joshua Colp [Wed, 11 Mar 2009 13:46:40 +0000 (13:46 +0000)] 
Blocked revisions 181210 via svnmerge

........
  r181210 | file | 2009-03-11 10:44:42 -0300 (Wed, 11 Mar 2009) | 3 lines

  Don't play the "you are about to be placed into the conference" and "the leader has left the conference" sounds if the quiet
  option is enabled. (reported by Vadim Lebedev on the asterisk-dev list)
........

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

16 years agoMerged revisions 181135 via svnmerge from
Jeff Peeler [Wed, 11 Mar 2009 04:33:29 +0000 (04:33 +0000)] 
Merged revisions 181135 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r181135 | jpeeler | 2009-03-10 23:06:44 -0500 (Tue, 10 Mar 2009) | 20 lines

  Fix malloc debug macros to work properly with h323.

  The main problem here was that cstdlib was undefining free thereby causing the
  proper debug macros to not be used. ast_h323.cxx has been changed to call
  ast_free instead to avoid the issue.

  A few other issues were addressed:
  - There were a few instances of functions improperly passing ast_free instead
  of ast_free_ptr.
  - Some clean up was done to avoid the debug macros intentionally being redefined.
  (copied below from Kevin's commit, appreciate the help)
  - disable astmm.h from doing anything when STANDALONE is defined, which is used
  by the tools in the utils/ directory that use parts of Asterisk header files in
  hackish ways; also ensure that utils/extconf.c and utils/conf2ael.c are
  compiled with STANDALONE defined.

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

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

16 years agoBlocked revisions 181099 via svnmerge
Russell Bryant [Wed, 11 Mar 2009 02:26:21 +0000 (02:26 +0000)] 
Blocked revisions 181099 via svnmerge

........
r181099 | russell | 2009-03-10 21:25:24 -0500 (Tue, 10 Mar 2009) | 2 lines

tabs to spaces

........

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

16 years agoMerged revisions 181032-181033 via svnmerge from
Mark Michelson [Wed, 11 Mar 2009 01:04:04 +0000 (01:04 +0000)] 
Merged revisions 181032-181033 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r181032 | mmichelson | 2009-03-10 19:46:47 -0500 (Tue, 10 Mar 2009) | 19 lines

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

  ........
    r181029 | mmichelson | 2009-03-10 19:30:26 -0500 (Tue, 10 Mar 2009) | 9 lines

    Fix incorrect tag checking on transfers when pedantic=yes is enabled.

    (closes issue #14611)
    Reported by: klaus3000
    Patches:
          patch_chan_sip_attended_transfer_1.4.23.txt uploaded by klaus3000 (license 65)
    Tested by: klaus3000
  ........
    r181031 | mmichelson | 2009-03-10 19:32:40 -0500 (Tue, 10 Mar 2009) | 3 lines

    Remove unused variables.
  ........
................
  r181033 | mmichelson | 2009-03-10 19:49:00 -0500 (Tue, 10 Mar 2009) | 3 lines

  Add missing comment that quotes RFC 3891
................

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

16 years agoBlocked revisions 181027-181028 via svnmerge
Tilghman Lesher [Wed, 11 Mar 2009 00:30:55 +0000 (00:30 +0000)] 
Blocked revisions 181027-181028 via svnmerge

........
  r181027 | tilghman | 2009-03-10 19:28:28 -0500 (Tue, 10 Mar 2009) | 2 lines

  Spacing changes only
........
  r181028 | tilghman | 2009-03-10 19:29:59 -0500 (Tue, 10 Mar 2009) | 3 lines

  Add MALLOC_DEBUG to various utility APIs, so that memory leaks can be tracked back to their source.
  (related to issue #14636)
........

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

16 years agoMerged revisions 180944 via svnmerge from
Jason Parker [Tue, 10 Mar 2009 22:07:18 +0000 (22:07 +0000)] 
Merged revisions 180944 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180944 | qwell | 2009-03-10 17:03:41 -0500 (Tue, 10 Mar 2009) | 9 lines

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

  ........
    r180941 | qwell | 2009-03-10 17:02:18 -0500 (Tue, 10 Mar 2009) | 1 line

    Make things happier when using autoconf 2.62+
  ........
................

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

16 years agoBlocked revisions 180942 via svnmerge
Russell Bryant [Tue, 10 Mar 2009 22:03:45 +0000 (22:03 +0000)] 
Blocked revisions 180942 via svnmerge

........
r180942 | russell | 2009-03-10 17:03:16 -0500 (Tue, 10 Mar 2009) | 2 lines

Add some notes on getting in contact with the dev community

........

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

16 years agoBlocked revisions 180938 via svnmerge
Russell Bryant [Tue, 10 Mar 2009 21:56:17 +0000 (21:56 +0000)] 
Blocked revisions 180938 via svnmerge

........
r180938 | russell | 2009-03-10 16:55:49 -0500 (Tue, 10 Mar 2009) | 2 lines

Remove difficulty and language specifiers

........

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

16 years agoBlocked revisions 180935 via svnmerge
Russell Bryant [Tue, 10 Mar 2009 21:50:31 +0000 (21:50 +0000)] 
Blocked revisions 180935 via svnmerge

........
r180935 | russell | 2009-03-10 16:45:54 -0500 (Tue, 10 Mar 2009) | 2 lines

Expand upon documentation of manager event project

........

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

16 years agoBlocked revisions 180898 via svnmerge
Michiel van Baak [Tue, 10 Mar 2009 21:17:41 +0000 (21:17 +0000)] 
Blocked revisions 180898 via svnmerge

........
  r180898 | mvanbaak | 2009-03-10 22:15:29 +0100 (Tue, 10 Mar 2009) | 10 lines

  list the move of the astvarrundir from /var/run to /var/run/asterisk
  (actually its $(localstatedir)/run/asterisk

  Makes setups with asterisk as non-root easier to manage because you can
  setup permissions on this dir instead of touching a file and setting
  permissions on that.
  Files that come to mind are asterisk.pid and asterisk.ctl socket.

  Prodded by and ok @russell
........

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

16 years agoBlocked revisions 180862 via svnmerge
Russell Bryant [Tue, 10 Mar 2009 19:37:04 +0000 (19:37 +0000)] 
Blocked revisions 180862 via svnmerge

........
r180862 | russell | 2009-03-10 14:36:21 -0500 (Tue, 10 Mar 2009) | 1 line

add more projects
........

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

16 years agoBlocked revisions 180859 via svnmerge
Russell Bryant [Tue, 10 Mar 2009 19:25:16 +0000 (19:25 +0000)] 
Blocked revisions 180859 via svnmerge

........
r180859 | russell | 2009-03-10 14:23:41 -0500 (Tue, 10 Mar 2009) | 1 line

add more project ideas
........

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

16 years agoMerged revisions 180800 via svnmerge from
Joshua Colp [Tue, 10 Mar 2009 14:42:18 +0000 (14:42 +0000)] 
Merged revisions 180800 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r180800 | file | 2009-03-10 11:40:38 -0300 (Tue, 10 Mar 2009) | 5 lines

  Reset the thread local string buffer when handling the UserEvent action.

  (closes issue #14593)
  Reported by: JimDickenson
........

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

16 years agoBlocked revisions 180750 via svnmerge
Russell Bryant [Mon, 9 Mar 2009 22:01:33 +0000 (22:01 +0000)] 
Blocked revisions 180750 via svnmerge

........
r180750 | russell | 2009-03-09 17:00:42 -0500 (Mon, 09 Mar 2009) | 4 lines

Add current mentors list, and first pass on a project list broken out of "PineMango"

I will work on adding projects that have been sent to be via email tomorrow.

........

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

16 years agoMerged revisions 180719 via svnmerge from
Jeff Peeler [Mon, 9 Mar 2009 21:22:42 +0000 (21:22 +0000)] 
Merged revisions 180719 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r180719 | jpeeler | 2009-03-09 15:58:17 -0500 (Mon, 09 Mar 2009) | 16 lines

  Add Doxygen documentation for API changes from 1.6.0 to 1.6.1

  Copied from my review board description:
  This is a continuation of the API changes documentation started for describing
  changes between releases. Most of the API changes were pretty simple needing
  only to be brought to attention via the new "Asterisk API Changes" list.
  However, if you see anything that needs further explanation feel free to
  supplement what is there. The current method of documenting is to add (in the
  header file): \version <ver number> <description of changes> and then to add
  the function to the change list in doxyref.h on the AstAPIChanges page. I also
  made sure all the functions that were newly added were tagged with \since
  1.6.1. I think this is a good habit to start both for the historical aspect as
  well as for the future ability to easily add a "New Asterisk API" page.

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

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

16 years agoBlocked revisions 180684 via svnmerge
Russell Bryant [Mon, 9 Mar 2009 14:15:08 +0000 (14:15 +0000)] 
Blocked revisions 180684 via svnmerge

........
r180684 | russell | 2009-03-09 09:14:34 -0500 (Mon, 09 Mar 2009) | 2 lines

Add skeleton for GSoC ideas list

........

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

16 years agoBlocked revisions 180641 via svnmerge
Russell Bryant [Sat, 7 Mar 2009 15:36:50 +0000 (15:36 +0000)] 
Blocked revisions 180641 via svnmerge

........
r180641 | russell | 2009-03-07 09:36:00 -0600 (Sat, 07 Mar 2009) | 7 lines

Make some minor updates to the doxygen configuration

- add bridges directory to be processed
- add some res/ subdirs
- alphabetize subdirs
- use consistent indentation

........

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

16 years agoMerged revisions 180579 via svnmerge from
Mark Michelson [Fri, 6 Mar 2009 18:26:55 +0000 (18:26 +0000)] 
Merged revisions 180579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180579 | mmichelson | 2009-03-06 12:25:44 -0600 (Fri, 06 Mar 2009) | 9 lines

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

  ........
    r180567 | mmichelson | 2009-03-06 12:23:09 -0600 (Fri, 06 Mar 2009) | 2 lines

    Make compilation succeed in dev-mode when IMAP storage is enabled.
  ........
................

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

16 years agoMerged revisions 180534 via svnmerge from
David Vossel [Fri, 6 Mar 2009 17:35:37 +0000 (17:35 +0000)] 
Merged revisions 180534 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180534 | dvossel | 2009-03-06 11:26:38 -0600 (Fri, 06 Mar 2009) | 15 lines

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

  ........
    r180532 | dvossel | 2009-03-06 11:19:55 -0600 (Fri, 06 Mar 2009) | 9 lines

    Fix handling of backreferences for ENUM lookups

    enum.c did not handle regex backtraces correctly.  The '\1' in the regex is a backreference that requires a pattern match to be inserted.  The way the code used to work is that it would find the backreference and insert the entire input string minus the '+'.  This is incorrect.  The regexec() function takes in a variable called pmatch which is an array of structs containing the start and end indexes for each backreference substring.  The original code actually passed the pmatch array pointer into regexec but never did anything with it.  Now when a backtrace is found, the backtrace number is looked up in the pmatch array and the correct substring is inserted.

    (closes issue #14576)
    Reported by: chris-mac
    Review: http://reviewboard.digium.com/r/187/
  ........
................

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

16 years agoMerged revisions 180465 via svnmerge from
Mark Michelson [Thu, 5 Mar 2009 23:28:33 +0000 (23:28 +0000)] 
Merged revisions 180465 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180465 | mmichelson | 2009-03-05 17:26:58 -0600 (Thu, 05 Mar 2009) | 22 lines

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

  ........
    r180464 | mmichelson | 2009-03-05 17:26:11 -0600 (Thu, 05 Mar 2009) | 16 lines

    [IMAP] Fix message retrieval issues when identical mailbox names were defined in separate contexts.

    There was a fix put in a while back so that an X-Asterisk-VM-Context message header was
    added to stored IMAP voicemails. This would allow for us to differentiate if the same
    mailbox name was used in multiple contexts. The problem still left was that not all places
    where messages were retrieved actually attempted to use this header for information when
    retrieving messages. This commit fixes that so that MWI and message retrieval from VoiceMailMain
    work as expected.

    (closes issue #13853)
    Reported by: vicks1
    Patches:
          13853_v2.patch uploaded by mmichelson (license 60)
    Tested by: lmadsen
  ........
................

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

16 years agoMerged revisions 180383 via svnmerge from
Mark Michelson [Thu, 5 Mar 2009 19:27:07 +0000 (19:27 +0000)] 
Merged revisions 180383 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180383 | mmichelson | 2009-03-05 13:14:14 -0600 (Thu, 05 Mar 2009) | 31 lines

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

  ........
    r180380 | mmichelson | 2009-03-05 12:58:48 -0600 (Thu, 05 Mar 2009) | 25 lines

    Fix broken mailbox parsing when searchcontexts option is enabled.

    When using the searchcontexts option in voicemail.conf, the code
    made the assumption that all mailbox names defined were unique across
    all contexts. However, the code did nothing to actually enforce this
    assumption, nor did it do anything to alert a user that he may have
    created an ambiguity in his voicemail.conf file by defining the same
    mailbox name in multiple contexts.

    With this change, we now will issue a nice long warning if searchcontexts
    is on and we encounter the same mailbox name in multiple contexts and ignore
    any duplicates after the first box. Whether searchcontexts is enabled or not,
    if we come across a duplicate mailbox in the same context, then we will issue
    a warning and ignore the duplicated mailbox. I have also added a small note
    to voicemail.conf.sample in the explanation for searchcontexts explaining
    that you cannot define the same mailbox in multiple contexts if you have
    enabled the option.

    (closes issue #14599)
    Reported by: lmadsen
    Patches:
          14599.patch uploaded by mmichelson (license 60) (with slight modification)
    Tested by: lmadsen
  ........
................

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

16 years agoBlocked revisions 180382 via svnmerge
Michiel van Baak [Thu, 5 Mar 2009 19:18:34 +0000 (19:18 +0000)] 
Blocked revisions 180382 via svnmerge

........
  r180382 | mvanbaak | 2009-03-05 20:05:20 +0100 (Thu, 05 Mar 2009) | 2 lines

  Make sure we terminate the first s| command so we can actually produce correct files.
........

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

16 years agoMerged revisions 180373 via svnmerge from
Kevin P. Fleming [Thu, 5 Mar 2009 18:40:32 +0000 (18:40 +0000)] 
Merged revisions 180373 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180373 | kpfleming | 2009-03-05 12:29:38 -0600 (Thu, 05 Mar 2009) | 15 lines

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

  ........
    r180372 | kpfleming | 2009-03-05 12:22:16 -0600 (Thu, 05 Mar 2009) | 9 lines

    Fix problems when RTP packet frame size is changed

    During some code analysis, I found that calling ast_rtp_codec_setpref() on an ast_rtp session does not work as expected; it does not adjust the smoother that may on the RTP session, in fact it summarily drops it, even if it has data in it, even if the current format's framing size has not changed. This is not good.

    This patch changes this behavior, so that if the packetization size for the current format changes, any existing smoother is safely updated to use the new size, and if no smoother was present, one is created. A new API call for smoothers, ast_smoother_reconfigure(), was required to implement these changes.

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

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

16 years agoBlocked revisions 180369 via svnmerge
Joshua Colp [Thu, 5 Mar 2009 18:19:34 +0000 (18:19 +0000)] 
Blocked revisions 180369 via svnmerge

........
  r180369 | file | 2009-03-05 14:18:27 -0400 (Thu, 05 Mar 2009) | 13 lines

  Merge phase 1 support for the new bridging architecture.

  This commit brings in the bridging core, bridging technologies,
  and the ConfBridge application.

  For usage information on the ConfBridge application please see
  the output of "core show application ConfBridge" from the CLI.

  For API documentation please see the doxygen page describing the
  architecture and the documentation for each API call.

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

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

16 years agoMerged revisions 180261 via svnmerge from
Russell Bryant [Wed, 4 Mar 2009 21:09:13 +0000 (21:09 +0000)] 
Merged revisions 180261 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r180261 | russell | 2009-03-04 15:01:05 -0600 (Wed, 04 Mar 2009) | 54 lines

Resolve object matching issues related to the removal of the sip_user object.

Previously, chan_sip had both sip_peer and sip_user objects in memory.  A
patch went in to remove sip_user to simplify the code, since everything
could be done with just sip_peer.  This patch resolves some regressions
found that were introduced by those changes.

This code comes from svn/asterisk/team/group/sip-object-matching/.

Here is a list of the changes that have been made:

1) When doing a match by name with the find_peer() function, make it much
   easier to specify which objects should be matched by having a parameter
   that specifies exactly which object types should be considered.  Also,
   update find_by_name() to handle this parameter.  Finally, update all
   code to use the new option values.

2) When looking up an object for an outbound request by name, consider
   peers only.  (create_addr())

3) Only match peers on an incoming registration request.

4) When doing authentication (except for SUBSCRIBE), look up users
   by name, instead of all objects by name.

5) When doing authentication (except for SUBSCRIBE), after looking for
   a user by name, look for a peer by IP address, instead of all objects
   by IP address.

6) When handling the SIP qualify CLI command or manager action, look for
   a peer by name, instead of any object by name.

7) When handling the SIP unregister CLI command, look for a peer by name,
   instead of any object by name.

9) In sip_do_debug_peer(), search for a peer by name, instead of any object
   by name.

9) When handling the SIPPEER() dialplan function, search for a peer by name,
   instead of any object by name.

10) In the following session timer related functions, st_get_se(),
    st_get_refresher(), and st_get_mode(), when looking for an object for a
    given sip_pvt using pvt->peername, look for a peer by name, instead of any
    object by name.

11) Fix build_peer() to properly handle the case where separate type=peer and
    type=user entries were specified in sip.conf.

(closes issue #14505)
Reported by: lmadsen

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

........

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

16 years agoBlocked revisions 180259 via svnmerge
Tilghman Lesher [Wed, 4 Mar 2009 20:53:31 +0000 (20:53 +0000)] 
Blocked revisions 180259 via svnmerge

........
  r180259 | tilghman | 2009-03-04 14:48:42 -0600 (Wed, 04 Mar 2009) | 2 lines

  Spacing changes only
........

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

16 years agoMerged revisions 180195 via svnmerge from
Joshua Colp [Wed, 4 Mar 2009 19:27:00 +0000 (19:27 +0000)] 
Merged revisions 180195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180195 | file | 2009-03-04 15:24:59 -0400 (Wed, 04 Mar 2009) | 11 lines

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

  ........
    r180194 | file | 2009-03-04 15:22:50 -0400 (Wed, 04 Mar 2009) | 4 lines

    Look for the number in a callerid string starting from the end. This way a value using <> can exist in the name portion.

    (issue #AST-194)
  ........
................

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

16 years agoBlocked revisions 180155 via svnmerge
Mark Michelson [Wed, 4 Mar 2009 17:29:46 +0000 (17:29 +0000)] 
Blocked revisions 180155 via svnmerge

........
  r180155 | mmichelson | 2009-03-04 11:03:32 -0600 (Wed, 04 Mar 2009) | 14 lines

  Allow for "magic" pickups to work when we wish to ignore the context

  When the subscription context for a call pickup subscription differs
  from the context of the call pickup target, there's not an easy way
  to divine what context should be used for the pickup. The way to work
  around this is to use PICKUPMARK as the context for the pickup.

  This has been documented in the sip.conf.sample file

  (ABE-1708)

  closes issue #14567
  submitted by: alecdavis
........

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

16 years agoMerged revisions 180120 via svnmerge from
Joshua Colp [Wed, 4 Mar 2009 14:41:03 +0000 (14:41 +0000)] 
Merged revisions 180120 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r180120 | file | 2009-03-04 10:39:28 -0400 (Wed, 04 Mar 2009) | 7 lines

  Remove duplicate 'k' and 'K' Dial options.

  (closes issue #14601)
  Reported by: alecdavis
  Patches:
        app_dial.optionk.diff.txt uploaded by alecdavis (license 585)
........

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

16 years agoBlocked revisions 180079 via svnmerge
Steve Murphy [Tue, 3 Mar 2009 23:48:19 +0000 (23:48 +0000)] 
Blocked revisions 180079 via svnmerge

........
  r180079 | murf | 2009-03-03 16:35:26 -0700 (Tue, 03 Mar 2009) | 1 line

  My bad! left check_expr2 in the ALL_UTILS list by mistake. Already done to 1.6.x
........

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

16 years agoMerged revisions 180032 via svnmerge from
David Vossel [Tue, 3 Mar 2009 23:39:25 +0000 (23:39 +0000)] 
Merged revisions 180032 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r180032 | dvossel | 2009-03-03 17:21:18 -0600 (Tue, 03 Mar 2009) | 14 lines

  app_read does not break from prompt loop with user terminated empty string

  In app.c, ast_app_getdata is called to stream the prompts and receive DTMF input.  If ast_app_getdata() receives an empty string caused by the user inputing the end of string character, in this case '#', it should break from the prompt loop and return to app_read, but instead it cycles through all the prompts.  I've added a return value for this special case in ast_readstring() which uses an enum I've delcared in apps.h.  This enum is now used as a return value for ast_app_getdata().

  (closes issue #14279)
  Reported by: Marquis
  Patches:
   fix_app_read.patch uploaded by Marquis (license 32)
   read-ampersanmd.patch2 uploaded by dvossel (license 671)
  Tested by: Marquis, dvossel
  Review: http://reviewboard.digium.com/r/177/
........

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

16 years agoMerged revisions 179973 via svnmerge from
Steve Murphy [Tue, 3 Mar 2009 23:31:54 +0000 (23:31 +0000)] 
Merged revisions 179973 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179973 | murf | 2009-03-03 15:12:02 -0700 (Tue, 03 Mar 2009) | 33 lines

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

  I had some work to do to port these changes to trunk; the
  check_expr stuff hasn't been updated here for quite some
  time, it appears. I added some more tests to the check_expr2
  suite. I had to play around with the makefile a bit, etc.

  I added STANDALONE2 #ifdefs to ast_expr2.y so as not to
  conflict structure with aelparse.

  ........
    r179807 | murf | 2009-03-03 11:11:34 -0700 (Tue, 03 Mar 2009) | 19 lines

    These changes allow AEL to better check ${} constructs within $[...], that are concatenated with text.

    I modified and added rules in ast_expr2.fl to better handle
    the concatenations.

    I added some default routines to ast_expr2.y so the standalone would
    compile. It also looks like I haven't run this thru bison since 2.1, so
    it's good to get this updated.

    The Makefile has comments added now for check_expr2 and check_expr to
    explain what they are for, and how to run them.

    The testexpr2s stuff has been removed, in favor of check_expr2.

    expr2.testinput has been updated to include the two expressions
    that inspired these changes (from mcnobody on #asterisk this morning)
    The regression has been run and all looks well.
  ........
................

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

16 years agoMerged revisions 180007 via svnmerge from
Mark Michelson [Tue, 3 Mar 2009 22:49:51 +0000 (22:49 +0000)] 
Merged revisions 180007 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r180007 | mmichelson | 2009-03-03 16:49:07 -0600 (Tue, 03 Mar 2009) | 22 lines

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

  ........
    r180006 | mmichelson | 2009-03-03 16:48:18 -0600 (Tue, 03 Mar 2009) | 17 lines

    Clarify some documentation of queues.conf.sample

    It had always been possible to explicitly specify a "blank"
    value for a sound file in queues.conf and have no sound played
    back. The problem with this is that it would result in some ugly
    CLI warnings from file.c.

    This commit introduces a check when playing a file in app_queue
    to see if the name of the file is zero-length and return early if
    that is the case. Also, the ability to specify the blank sound
    files in queues.conf is now mentioned more clearly in queues.conf.sample

    (closes issue #14227)
    Reported by: caspy
  ........
................

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

16 years agoBlocked revisions 179972 via svnmerge
David Vossel [Tue, 3 Mar 2009 22:22:59 +0000 (22:22 +0000)] 
Blocked revisions 179972 via svnmerge

........
  r179972 | dvossel | 2009-03-03 16:01:24 -0600 (Tue, 03 Mar 2009) | 13 lines

  app_meetme not setting filename and fileformat correctly for realtime

  When app_meetme finds a realtime conference, it doesn't get the filename and fileformat correctly when 'r' is set.  Now app_meetme first checks to see if fileformat and filename are declared in the db, if they're not it checks the .conf file, if its not declared there either it then uses defaults.

  (closes issue #14545)
  Reported by: dalbaech
  Patches:
   app_meetme-realtime5.patch uploaded by dvossel (license 671)
   Realtime_Conference_Record_workaround.txt uploaded by dalbaech (license 705)
  Tested by: dvossel, dalbaech
  Review: http://reviewboard.digium.com/r/180/
........

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

16 years agoMerged revisions 179937 via svnmerge from
Mark Michelson [Tue, 3 Mar 2009 21:00:46 +0000 (21:00 +0000)] 
Merged revisions 179937 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179937 | mmichelson | 2009-03-03 14:59:16 -0600 (Tue, 03 Mar 2009) | 20 lines

  Add documentation for timing modules used in Asterisk

  This document specifies the timing modules available in Asterisk beginning
  with Asterisk 1.6.1. The document goes into detail about the differences
  between each and gives a general overview of what timing is used for in
  Asterisk. There is also a section which can be used to help customize
  your setup or to troubleshoot timing issues you may have.

  I also added messages to the DAHDI timing test used in res_timing_dahdi.c
  that points to this new documentation if people experience problems.

  Big thanks to all who contributed comments on this.

  (closes issue #14490)
  Reported by: mmichelson
  Patches:
        timing.txt uploaded by mmichelson (license 60)

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

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

16 years agoMerged revisions 179903 via svnmerge from
Russell Bryant [Tue, 3 Mar 2009 20:09:59 +0000 (20:09 +0000)] 
Merged revisions 179903 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r179903 | bmd | 2009-03-03 14:02:20 -0600 (Tue, 03 Mar 2009) | 1 line

fix a leaked channel lock (and future deadlock) when we try to pick up our own channel
........

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

16 years agoMerged revisions 179841 via svnmerge from
Joshua Colp [Tue, 3 Mar 2009 18:30:47 +0000 (18:30 +0000)] 
Merged revisions 179841 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179841 | file | 2009-03-03 14:28:46 -0400 (Tue, 03 Mar 2009) | 16 lines

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

  ........
    r179840 | file | 2009-03-03 14:27:09 -0400 (Tue, 03 Mar 2009) | 9 lines

    Do not assume that the bridge_cdr is still attached to the channel when the 'h' exten is finished executing.

    It is possible for a masquerade operation to occur when the 'h' exten is operating. This operation moves
    the CDR records around causing the bridge_cdr to no longer exist on the channel where it is expected to.
    We can not safely modify it afterwards because of this, so don't even try.

    (closes issue #14564)
    Reported by: meric
  ........
................

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

16 years agoBlocked revisions 179745 via svnmerge
Mark Michelson [Tue, 3 Mar 2009 17:04:37 +0000 (17:04 +0000)] 
Blocked revisions 179745 via svnmerge

........
  r179745 | mmichelson | 2009-03-03 11:03:47 -0600 (Tue, 03 Mar 2009) | 8 lines

  Convert pbx_spool to use string fields instead of statically-sized buffers.

  In tests run after making this conversion, I noticed an approximate 85%
  reduction in memory usage for call file processing.

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

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

16 years agoMerged revisions 179742 via svnmerge from
Russell Bryant [Tue, 3 Mar 2009 16:48:50 +0000 (16:48 +0000)] 
Merged revisions 179742 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r179742 | russell | 2009-03-03 10:47:28 -0600 (Tue, 03 Mar 2009) | 14 lines

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

........
r179741 | russell | 2009-03-03 10:45:46 -0600 (Tue, 03 Mar 2009) | 6 lines

Ensure chan->fdno always gets reset to -1 after handling a channel fd event.

Since setting fdno to -1 had to be moved, a couple of other code paths that
do process an fd event return early and do not pass through the code path
where it was moved to.  So, set it to -1 in a few other places, too.

........

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

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

16 years agoMerged revisions 179672 via svnmerge from
Joshua Colp [Tue, 3 Mar 2009 14:41:57 +0000 (14:41 +0000)] 
Merged revisions 179672 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179672 | file | 2009-03-03 10:40:04 -0400 (Tue, 03 Mar 2009) | 10 lines

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

  ........
    r179671 | file | 2009-03-03 10:38:09 -0400 (Tue, 03 Mar 2009) | 3 lines

    Move where fdno is set to the default value to *after* the read callback of the channel driver is called.
    We have to do this as the underlying channel driver may need the fdno value to determine what to read.
  ........
................

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

16 years agoMerged revisions 179609 via svnmerge from
Russell Bryant [Tue, 3 Mar 2009 13:56:06 +0000 (13:56 +0000)] 
Merged revisions 179609 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r179609 | russell | 2009-03-03 07:54:41 -0600 (Tue, 03 Mar 2009) | 17 lines

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

........
r179608 | russell | 2009-03-03 07:53:52 -0600 (Tue, 03 Mar 2009) | 9 lines

Make it easier to detect an improper call to ast_read().

When you call ast_waitfor() on a channel, the index into the channel fds array
that holds the file descriptor that poll() determines has input available is
stored in fdno.  This patch clears out this value after a call to ast_read()
and also reports errors if ast_read() is called without an fdno set.

From a discussion on the asterisk-dev list.

........

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

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

16 years agoMerged revisions 179537 via svnmerge from
Jeff Peeler [Tue, 3 Mar 2009 00:04:10 +0000 (00:04 +0000)] 
Merged revisions 179537 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179537 | jpeeler | 2009-03-02 18:01:51 -0600 (Mon, 02 Mar 2009) | 21 lines

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

  ........
    r179536 | jpeeler | 2009-03-02 17:54:39 -0600 (Mon, 02 Mar 2009) | 15 lines

    Fix bridging regression from commit 176701

    This fixes a bad regression where the bridge would exit after an attended
    transfer was made. The problem was due to nexteventts getting set after the
    masquerade which caused the bridge to return AST_BRIDGE_COMPLETE.

    (closes issue #14315)
    Reported by: tim_ringenbach
  ........
................

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

16 years agoMerged revisions 179533 via svnmerge from
Russell Bryant [Mon, 2 Mar 2009 23:39:56 +0000 (23:39 +0000)] 
Merged revisions 179533 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r179533 | russell | 2009-03-02 17:36:38 -0600 (Mon, 02 Mar 2009) | 48 lines

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

........
r179532 | russell | 2009-03-02 17:34:13 -0600 (Mon, 02 Mar 2009) | 40 lines

Move ast_waitfor() down to avoid the results of the API call becoming stale.

This call to ast_waitfor() was being done way too soon in this section of code.
Specifically, there was code in between the call to waitfor and the code that
uses the result that puts the channel in autoservice.  By putting the channel
in autoservice, the previous results of ast_waitfor() become meaningless,
as the autoservice thread will do it's own ast_waitfor() and ast_read()
on the channel.

So, when we came back out of autoservice and eventually hit the block of code
that calls ast_read() on the channel, there may not actually be any input on
the channel available.  Even though the previous call to ast_waitfor() in
app_meetme said there was input, the autoservice thread has since serviced
the channel for some period of time.

This bug manifested itself while dvossel was doing some testing of MeetMe in
Asterisk trunk.  He was using the timerfd timing module.  When the code hit
ast_read() erroneously, it determined that it must have been called because of
input on the timer fd, as chan->fdno was set to AST_TIMING_FD, since that was
the cause of the last legitimate call to ast_read() done by autoservice.

In this test, an IAX2 channel was calling into the MeetMe conference.  It was
_much_ more likely to be seen with an IAX2 channel because of the way audio
is handled.  Every audio frame that comes in results in a call to
ast_queue_frame(), which then uses ast_timer_enable_continuous() to notify
the channel thread that a frame is waiting to be handled.  So, the chances
of ast_waitfor() indicating that a channel needs servicing due to a timer
event on an IAX2 event is very high.

Finally, it is interesting to note that if a different timing interface was
being used, this bug would probably not be noticed.  When ast_read() is called
and erroneously thinks that there is a timer event to handle, it calls the
ast_timer_ack() function.  The pthread and dahdi timing modules handle the
ack() function being called when there is no event by simply ignoring it.
In the case of the timerfd module, it results in a read() on the timer fd
that will block forever, as there is no data to read.  This caused Asterisk
to lock up very quickly.

Thanks to dvossel and mmichelson for the fun debugging session.  :-)

........

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

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

16 years agoMerged revisions 179469 via svnmerge from
Tilghman Lesher [Mon, 2 Mar 2009 23:12:15 +0000 (23:12 +0000)] 
Merged revisions 179469 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179469 | tilghman | 2009-03-02 17:10:18 -0600 (Mon, 02 Mar 2009) | 17 lines

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

  ........
    r179468 | tilghman | 2009-03-02 17:09:01 -0600 (Mon, 02 Mar 2009) | 10 lines

    When ending a recording with silence detection, remember to reduce the duration.
    The end of the recording is correspondingly trimmed, but the duration was not
    trimmed by the number of seconds trimmed, so the saved duration was necessarily
    longer than the actual soundfile duration.
    (closes issue #14406)
     Reported by: sasargen
     Patches:
           20090226__bug14406.diff.txt uploaded by tilghman (license 14)
     Tested by: sasargen
  ........
................

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

16 years agoBlocked revisions 179465 via svnmerge
Russell Bryant [Mon, 2 Mar 2009 23:07:13 +0000 (23:07 +0000)] 
Blocked revisions 179465 via svnmerge

........
r179465 | russell | 2009-03-02 17:06:16 -0600 (Mon, 02 Mar 2009) | 4 lines

Fix a reference leak in timerfd_set_rate().

(found during a debugging session with dvossel and mmichelson.)

........

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

16 years agoMerged revisions 179462 via svnmerge from
Russell Bryant [Mon, 2 Mar 2009 23:04:18 +0000 (23:04 +0000)] 
Merged revisions 179462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r179462 | russell | 2009-03-02 17:00:30 -0600 (Mon, 02 Mar 2009) | 16 lines

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

........
r179461 | russell | 2009-03-02 16:58:18 -0600 (Mon, 02 Mar 2009) | 8 lines

Ensure that only one thread is calling ast_settimeout() on a channel at a time.

For example, with an IAX2 channel, you can have both the channel thread and the
chan_iax2 processing threads calling this function, and doing so twice at the
same time is a bad thing.

(Found in a debugging session with dvossel and mmichelson)

........

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

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

16 years agoMerged revisions 179396 via svnmerge from
Jason Parker [Mon, 2 Mar 2009 20:18:39 +0000 (20:18 +0000)] 
Merged revisions 179396 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r179396 | qwell | 2009-03-02 14:16:51 -0600 (Mon, 02 Mar 2009) | 9 lines

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

  ........
    r179395 | qwell | 2009-03-02 14:14:57 -0600 (Mon, 02 Mar 2009) | 1 line

    Remove several silly warnings in editline.  One about a broken preprocessor directive, and another about strlcpy/strlcat.

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

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

16 years agoMerged revisions 179361 via svnmerge from
Tilghman Lesher [Mon, 2 Mar 2009 17:19:41 +0000 (17:19 +0000)] 
Merged revisions 179361 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179361 | tilghman | 2009-03-02 11:18:48 -0600 (Mon, 02 Mar 2009) | 2 lines

  Backport 1.6.0 fix to trunk (failsafe if db is not loaded)
........

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

16 years agoBlocked revisions 179323 via svnmerge
Joshua Colp [Mon, 2 Mar 2009 14:29:23 +0000 (14:29 +0000)] 
Blocked revisions 179323 via svnmerge

........
  r179323 | file | 2009-03-02 10:28:09 -0400 (Mon, 02 Mar 2009) | 5 lines

  Do not try to remove a registration scheduled item if the scheduler context has already been destroyed.

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

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

16 years agoMerged revisions 179291 via svnmerge from
Joshua Colp [Mon, 2 Mar 2009 14:14:51 +0000 (14:14 +0000)] 
Merged revisions 179291 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179291 | file | 2009-03-02 10:13:45 -0400 (Mon, 02 Mar 2009) | 7 lines

  Fix issue where changing the volume of both directions of audio did not work.

  (closes issue #14574)
  Reported by: KNK
  Patches:
        audiohook_volume_fix.diff uploaded by KNK (license 545)
........

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

16 years agoMerged revisions 179254 via svnmerge from
Mark Michelson [Sun, 1 Mar 2009 23:28:19 +0000 (23:28 +0000)] 
Merged revisions 179254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179254 | mmichelson | 2009-03-01 17:25:23 -0600 (Sun, 01 Mar 2009) | 5 lines

  Swap reversed timevals.

  This was pointed out by ScribbleJ in #asterisk-dev. Thanks very much, ScribbleJ!
........

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

16 years agoMerged revisions 179219 via svnmerge from
Mark Michelson [Sun, 1 Mar 2009 21:57:18 +0000 (21:57 +0000)] 
Merged revisions 179219 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179219 | mmichelson | 2009-03-01 15:45:08 -0600 (Sun, 01 Mar 2009) | 18 lines

  Properly free memory and remove scheduler entries when a transmission failure occurs.

  Previously, only the "data" field of the sip_pkt created during __sip_reliable_xmit
  was freed when XMIT_ERROR was returned by __sip_xmit. When retrans_pkt was called,
  this inevitably resulted in the reading and writing of freed memory.

  XMIT_ERROR is a condition meaning that we don't want to attempt resending the packet
  at all. The proper action to take is to remove the scheduler entry we just created,
  free the packet's data as well as the packet itself, and unlink it from the list of
  packets on the sip_pvt structure.

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

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

16 years agoMerged revisions 179164 via svnmerge from
Russell Bryant [Fri, 27 Feb 2009 21:48:00 +0000 (21:48 +0000)] 
Merged revisions 179164 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r179164 | russell | 2009-02-27 15:47:18 -0600 (Fri, 27 Feb 2009) | 2 lines

Mark res_ais as experimental, as the binary event format is subject to change.

........

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

16 years agoMerged revisions 179161 via svnmerge from
Tilghman Lesher [Fri, 27 Feb 2009 21:34:10 +0000 (21:34 +0000)] 
Merged revisions 179161 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179161 | tilghman | 2009-02-27 15:32:13 -0600 (Fri, 27 Feb 2009) | 3 lines

  If config file is blank, don't load module.
  (Closes issue #14563)
........

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

16 years agoMerged revisions 179154 via svnmerge from
Russell Bryant [Fri, 27 Feb 2009 21:25:10 +0000 (21:25 +0000)] 
Merged revisions 179154 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r179154 | russell | 2009-02-27 15:23:12 -0600 (Fri, 27 Feb 2009) | 2 lines

Add a note about the ordering of entries in sip.conf in 1.6.1.

........

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

16 years agoBlocked revisions 179122 via svnmerge
Michiel van Baak [Fri, 27 Feb 2009 20:38:41 +0000 (20:38 +0000)] 
Blocked revisions 179122 via svnmerge

........
  r179122 | mvanbaak | 2009-02-27 21:34:00 +0100 (Fri, 27 Feb 2009) | 16 lines

  Add reload support to chan_skinny.

  Special thanks goes to DEA who had to redo this patch twice
  because we first put unload/load support in and later redid the way
  we configure devices and lines.

  (closes issue #10297)
  Reported by: DEA
  Patches:
        skinny-reload-trunkv2.diff uploaded by wedhorn (license 30)
        skinny-reload-trunk-v4.txt uploaded by DEA (license 3)
     With mods by me based on feedback from wedhorn and Russell and seanbright
  Tested by: DEA, mvanbaak, pj

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

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

16 years agoMerged revisions 179057 via svnmerge from
Jason Parker [Fri, 27 Feb 2009 19:06:18 +0000 (19:06 +0000)] 
Merged revisions 179057 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r179057 | qwell | 2009-02-27 13:04:57 -0600 (Fri, 27 Feb 2009) | 8 lines

  Update documentation for DIALEDTIME and ANSWEREDTIME variables.

  (closes issue #14566)
  Reported by: klaus3000
  Patches:
        ANSWEREDTIME-1.4-patch.txt uploaded by klaus3000 (license 65)
        ANSWEREDTIME-trunk-patch.txt uploaded by klaus3000 (license 65)
........

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

16 years agoBlocked revisions 179021 via svnmerge
Russell Bryant [Fri, 27 Feb 2009 15:52:44 +0000 (15:52 +0000)] 
Blocked revisions 179021 via svnmerge

........
r179021 | russell | 2009-02-27 09:51:56 -0600 (Fri, 27 Feb 2009) | 7 lines

Fix downloading SIREN7 and SIREN14 sound packages.

In passing, also fix downloading SLIN16 extra sound packages.

(closes issue #14565)
Reported by: jtodd

........

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

16 years agoMerged revisions 178986 via svnmerge from
Steve Murphy [Fri, 27 Feb 2009 03:56:58 +0000 (03:56 +0000)] 
Merged revisions 178986 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r178986 | murf | 2009-02-26 20:45:58 -0700 (Thu, 26 Feb 2009) | 26 lines

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

  In this case, it's just a matter of reducing the default timeouts from 2000
  to 1000 msec, as the max def feature digit timeout is no longer halved.

  ........
    r178956 | murf | 2009-02-26 14:27:32 -0700 (Thu, 26 Feb 2009) | 18 lines

    This change moves the default feature digit timeout to 1000 ms from the previous default of 500.

    As per bug 14515, a dev discussion arrived at a "mediated concensus"
    of a default feature digit timeout of 1.0 sec. Some voted for 1300;
    ctooley thought 1500 for distracted phone users in phone booths;
    kpfleming put his foot down at 1.0 sec.

    Users who found the previous default max delay of 250 msec perfect,
    are welcome to override the new default. Notice that I said that
    250 msec was the default; wait a minute, you might say, the config
    file said it was 500 msec!; well, because of the bug fix for 14515,
    we found that 500 msec was actually enforcing a max of 250. The bug
    fix would restore 500 msec, but we felt even that was a bit tight
    for most users... 2000 msec was pushed earlier by mmichelson, so
    that reduces to 1000 msec after the bug fix. Enjoy!
  ........
................

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

16 years agoBlocked revisions 178919 via svnmerge
Tilghman Lesher [Thu, 26 Feb 2009 18:44:55 +0000 (18:44 +0000)] 
Blocked revisions 178919 via svnmerge

........
  r178919 | tilghman | 2009-02-26 12:41:28 -0600 (Thu, 26 Feb 2009) | 8 lines

  Sound confirmation of call pickup success.
  (closes issue #13826)
   Reported by: azielke
   Patches:
         pickupsound2-trunk.patch uploaded by azielke (license 548)
         __20081124_bug_13826_updated.patch uploaded by lmadsen (license 10)
   Tested by: lmadsen
........

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

16 years agoMerged revisions 178871 via svnmerge from
David Vossel [Thu, 26 Feb 2009 17:50:51 +0000 (17:50 +0000)] 
Merged revisions 178871 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r178871 | dvossel | 2009-02-26 11:46:12 -0600 (Thu, 26 Feb 2009) | 6 lines

  IAX2 prune realtime, minor tweak to last fix

  A return statement was missing which caused unexpected cli output.

  issue #14479
........

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

16 years agoBlocked revisions 178870 via svnmerge
Steve Murphy [Thu, 26 Feb 2009 17:48:08 +0000 (17:48 +0000)] 
Blocked revisions 178870 via svnmerge

........
  r178870 | murf | 2009-02-26 10:45:22 -0700 (Thu, 26 Feb 2009) | 1 line

  These small fixes prevent compiler warnings with ubuntu 8.10's gcc-4.3.2, which tend to break my dev-mode build. Not a problem in 1.6.x.
........

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

16 years agoMerged revisions 178828 via svnmerge from
Steve Murphy [Thu, 26 Feb 2009 17:38:16 +0000 (17:38 +0000)] 
Merged revisions 178828 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r178828 | murf | 2009-02-26 10:22:11 -0700 (Thu, 26 Feb 2009) | 34 lines

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

  ........
    r178804 | murf | 2009-02-26 10:09:03 -0700 (Thu, 26 Feb 2009) | 28 lines

    This patch prevents the feature detection timeout from being cut in half.

    Because the ast_channel_bridge() call will return 0 and pass
    a frame pointer for both DTMF_BEGIN and DTMF_END, the feature_timer
    field in hte config struct is getting decremented twice, which
    effectively cuts the digittimeout in half. I added conditions
    to the if statement to only let DTMF_END frames to flow thru,
    which solved the problem. Also, when the frame pointer is null,
    let control flow thru-- this usually happens on timeouts. I added
    a comment to the code to explain what's going on and why.

    Many thanks to sodom for reporting this problem. Personnally, it always seemed
    like something was wrong with the featuredigittimeout, but I never
    could quite decide what... and was too busy to investigate.
    This bug forced the issue, and now we know.

    Sodom had other issues in 14515, but I couldn't reproduce them. If
    he still has problems, and wants to get them solved, he is welcome
    to reopen 14515.

    (closes issue #14515)
    Reported by: sodom
    Patches:
          14515.patch uploaded by murf (license 17)
    Tested by: murf, sodom
  ........
................

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

16 years agoMerged revisions 178801 via svnmerge from
Joshua Colp [Thu, 26 Feb 2009 16:44:54 +0000 (16:44 +0000)] 
Merged revisions 178801 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

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

16 years agoMerged revisions 178767 via svnmerge from
David Vossel [Thu, 26 Feb 2009 16:07:08 +0000 (16:07 +0000)] 
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.1@178769 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 178764 via svnmerge
Joshua Colp [Thu, 26 Feb 2009 15:43:01 +0000 (15:43 +0000)] 
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.1@178766 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoBlocked revisions 178607 via svnmerge
Tilghman Lesher [Wed, 25 Feb 2009 19:50:16 +0000 (19:50 +0000)] 
Blocked revisions 178607 via svnmerge

........
  r178607 | tilghman | 2009-02-25 13:49:46 -0600 (Wed, 25 Feb 2009) | 2 lines

  Picky, picky buildbots
........

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

16 years agoBlocked revisions 178605 via svnmerge
Tilghman Lesher [Wed, 25 Feb 2009 19:41:09 +0000 (19:41 +0000)] 
Blocked revisions 178605 via svnmerge

........
  r178605 | tilghman | 2009-02-25 13:24:44 -0600 (Wed, 25 Feb 2009) | 9 lines

  Use notification when timezone files change and re-scan then.
  (closes issue #14300)
   Reported by: jamessan
   Patches:
         20090127__bug14300.diff.txt uploaded by tilghman (license 14)
         20090224__bug14300.diff uploaded by jamessan (license 246)
   Tested by: jamessan
   Review: http://reviewboard.digium.com/r/136/
........

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

16 years agoBlocked revisions 178573 via svnmerge
Tilghman Lesher [Wed, 25 Feb 2009 19:05:09 +0000 (19:05 +0000)] 
Blocked revisions 178573 via svnmerge

........
  r178573 | tilghman | 2009-02-25 13:03:35 -0600 (Wed, 25 Feb 2009) | 2 lines

  Oops, wrong direction of command
........

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

16 years agoMerged revisions 178509 via svnmerge from
Russell Bryant [Wed, 25 Feb 2009 12:46:51 +0000 (12:46 +0000)] 
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.1@178511 65c4cc65-6c06-0410-ace0-fbb531ad65f3

16 years agoMerged revisions 178446 via svnmerge from
Tilghman Lesher [Tue, 24 Feb 2009 23:28:48 +0000 (23:28 +0000)] 
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.1@178448 65c4cc65-6c06-0410-ace0-fbb531ad65f3