]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
16 years agoMerged revisions 184762 via svnmerge from
Kevin P. Fleming [Fri, 27 Mar 2009 19:17:22 +0000 (19:17 +0000)] 
Merged revisions 184762 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184762 | kpfleming | 2009-03-27 14:10:32 -0500 (Fri, 27 Mar 2009) | 12 lines

  Improve timing interface to remember which provider provided a timer

  The ability to load/unload timing interfaces is nice, but it means that when a timer is allocated, it may come from provider A, but later provider B becomes the 'preferred' provider. If this happens, all timer API calls on the timer that was provided by provider A will actually be handed to provider B, which will say WTF and return an error.

  This patch changes the timer API to include a pointer to the provider of the timer handle so that future operations on the timer will be forwarded to the proper provider.

  (closes issue #14697)
  Reported by: moy

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

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

16 years agoMerged revisions 184726 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 18:09:49 +0000 (18:09 +0000)] 
Merged revisions 184726 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184726 | russell | 2009-03-27 13:04:43 -0500 (Fri, 27 Mar 2009) | 2 lines

Use ast_random() instead of rand() to ensure we use the best RNG available.

........

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

16 years agoMerged revisions 184673 via svnmerge from
Joshua Colp [Fri, 27 Mar 2009 15:54:22 +0000 (15:54 +0000)] 
Merged revisions 184673 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184673 | file | 2009-03-27 12:46:46 -0300 (Fri, 27 Mar 2009) | 7 lines

  Fix speech structure leak in the AGI speech recognition integration.

  The AGI dialplan applications did not destroy the speech structure automatically
  if it was not destroyed by the running AGI script. They will now do this.

  (issue LUMENVOX-15)
........

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

16 years agoMerged revisions 184630 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 14:04:56 +0000 (14:04 +0000)] 
Merged revisions 184630 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184630 | russell | 2009-03-27 09:00:18 -0500 (Fri, 27 Mar 2009) | 2 lines

Change g_eid to ast_eid_default.

........

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

16 years agoMerged revisions 184566 via svnmerge from
Joshua Colp [Fri, 27 Mar 2009 13:22:32 +0000 (13:22 +0000)] 
Merged revisions 184566 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184566 | file | 2009-03-27 10:15:26 -0300 (Fri, 27 Mar 2009) | 16 lines

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

  ........
    r184565 | file | 2009-03-27 10:06:45 -0300 (Fri, 27 Mar 2009) | 9 lines

    Fix an issue where nat=yes would not always take effect for the RTP session on outgoing calls.

    If calls were placed using an IP address or hostname the global nat setting was copied over
    but was not set on the RTP session itself. This caused the RTP stack to not perform symmetric RTP
    actions.

    (closes issue #14546)
    Reported by: acunningham
  ........
................

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

16 years agoMerged revisions 184531 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 02:25:31 +0000 (02:25 +0000)] 
Merged revisions 184531 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184531 | russell | 2009-03-26 21:20:23 -0500 (Thu, 26 Mar 2009) | 20 lines

Fix some issues with rwlock corruption that caused deadlock like symptoms.

When dvossel and I were doing some load testing last week, we noticed that we
could make Asterisk trunk lock up instantly when we started generating a bunch
of calls.  The backtraces of locked threads were bizarre, and many were stuck
on an _unlock_ of an rwlock.

The changes are:

1) Fix a number of places where a backtrace would be loaded into an invalid
   index of the backtrace array.  It's an off by one error, which ends up
   writing over the rwlock itself.

2) Ensure that in the array of held locks, we NULL out an index once it is
   not being used so that it's not confusing when analyzing its contents.

3) Remove a bunch of logging referring to an rwlock operating being done
   with "deep reentrancy".  It is normal for _many_ threads to hold a
   read lock on an rwlock.

........

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

16 years agoMerged revisions 184515 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 01:44:09 +0000 (01:44 +0000)] 
Merged revisions 184515 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184515 | russell | 2009-03-26 20:40:28 -0500 (Thu, 26 Mar 2009) | 2 lines

Don't act surprised if we get a -1 indication.

........

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

16 years agoMerged revisions 184512 via svnmerge from
Russell Bryant [Fri, 27 Mar 2009 01:36:42 +0000 (01:36 +0000)] 
Merged revisions 184512 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r184512 | russell | 2009-03-26 20:35:56 -0500 (Thu, 26 Mar 2009) | 2 lines

Pass more useful information through to lock tracking when DEBUG_THREADS is on.

........

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

16 years agoMerged revisions 184448 via svnmerge from
Kevin P. Fleming [Thu, 26 Mar 2009 22:19:02 +0000 (22:19 +0000)] 
Merged revisions 184448 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184448 | kpfleming | 2009-03-26 17:18:14 -0500 (Thu, 26 Mar 2009) | 9 lines

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

  ........
    r184447 | kpfleming | 2009-03-26 17:17:32 -0500 (Thu, 26 Mar 2009) | 3 lines

    use new, improved 8kHz prompts
  ........
................

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

16 years agoMerged revisions 184389 via svnmerge from
David Vossel [Thu, 26 Mar 2009 21:18:39 +0000 (21:18 +0000)] 
Merged revisions 184389 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184389 | dvossel | 2009-03-26 16:09:37 -0500 (Thu, 26 Mar 2009) | 14 lines

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

  ........
    r184388 | dvossel | 2009-03-26 16:07:32 -0500 (Thu, 26 Mar 2009) | 8 lines

    pri loop TestClient/TestServer fails: server SEND DTMF 8

    app_test was failing when sending the last DTMF digit, 8, because of the 100ms pause issued after DTMF is sent.  During this pause the other side would hang up causing the test to look like it failed. Now the other side waits a second before hanging up.

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

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

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

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

Remove unneeded AST_LIST_ENTRY() and comment on the purpose of ast_event_ref.

........

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

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

........
r184339 | russell | 2009-03-25 16:57:19 -0500 (Wed, 25 Mar 2009) | 35 lines

Improve performance of the ast_event cache functionality.

This code comes from svn/asterisk/team/russell/event_performance/.

Here is a summary of the changes that have been made, in order of both
invasiveness and performance impact, from smallest to largest.

1) Asterisk 1.6.1 introduces some additional logic to be able to handle
   distributed device state.  This functionality comes at a cost.
   One relatively minor change in this patch is that the extra processing
   required for distributed device state is now completely bypassed if
   it's not needed.

2) One of the things that I noticed when profiling this code was that a
   _lot_ of time was spent doing string comparisons.  I changed the way
   strings are represented in an event to include a hash value at the front.
   So, before doing a string comparison, we do an integer comparison on the
   hash.

3) Finally, the code that handles the event cache has been re-written.
   I tried to do this in a such a way that it had minimal impact on the API.
   I did have to change one API call, though - ast_event_queue_and_cache().
   However, the way it works now is nicer, IMO.  Each type of event that
   can be cached (MWI, device state) has its own hash table and rules for
   hashing and comparing objects.  This by far made the biggest impact on
   performance.

For additional details regarding this code and how it was tested, please see the
review request.

(closes issue #14738)
Reported by: russell

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

........

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

16 years agoadd reviewboard:url property.
Russell Bryant [Wed, 25 Mar 2009 20:32:55 +0000 (20:32 +0000)] 
add reviewboard:url property.

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

16 years agoMerged revisions 184280 via svnmerge from
Joshua Colp [Wed, 25 Mar 2009 19:26:04 +0000 (19:26 +0000)] 
Merged revisions 184280 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r184280 | file | 2009-03-25 16:22:06 -0300 (Wed, 25 Mar 2009) | 5 lines

  Fix issue with a T38 reinvite being sent even if not configured to do so.

  If we receive a T38 request negotiate control frame we should only attempt to do so
  if the option is enabled on the dialog.
........

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

16 years agoMerged revisions 184220 via svnmerge from
Eliel C. Sardanons [Wed, 25 Mar 2009 15:12:08 +0000 (15:12 +0000)] 
Merged revisions 184220 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184220 | eliel | 2009-03-25 10:38:19 -0400 (Wed, 25 Mar 2009) | 19 lines

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

  ........
    r184188 | eliel | 2009-03-25 10:12:54 -0400 (Wed, 25 Mar 2009) | 13 lines

    Avoid destroying the CLI line when moving the cursor backward and trying to autocomplete.

    When moving the cursor backward and pressing TAB to autocomplete, a NULL is put
    in the line and we are loosing what we have already wrote after the actual
    cursor position.

    (closes issue #14373)
    Reported by: eliel
    Patches:
          asterisk.c.patch uploaded by eliel (license 64)
          Tested by: lmadsen
  ........
................

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

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

........
  r184147 | russell | 2009-03-24 20:42:10 -0500 (Tue, 24 Mar 2009) | 5 lines

  Fix build issues on Mac OSX.

  (closes issue #14714)
  Reported by: ygor
........

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

16 years agoMerged revisions 184079 via svnmerge from
Mark Michelson [Tue, 24 Mar 2009 22:42:00 +0000 (22:42 +0000)] 
Merged revisions 184079 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r184079 | mmichelson | 2009-03-24 17:40:39 -0500 (Tue, 24 Mar 2009) | 15 lines

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

  ........
    r184078 | mmichelson | 2009-03-24 17:34:45 -0500 (Tue, 24 Mar 2009) | 9 lines

    Change NULL pointer check to be ast_strlen_zero.

    The 'digit' variable is guaranteed to be non-NULL, so the if
    statement could never evaluate true. Changing to ast_strlen_zero
    makes the logic correct.

    This was found while reviewing ast_channel_ao2 code review.
  ........
................

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

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

........
r184037 | russell | 2009-03-24 16:40:44 -0500 (Tue, 24 Mar 2009) | 6 lines

Exclude slin16, siren7, and siren14 from bandwidth=low and =medium

The default codec configuration for chan_iax2 is bandwidth=low.  I noticed
slin16 being negotiated as the codec in some test calls, but that no longer
happens after this change.

........

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

16 years agoMerged revisions 183914 via svnmerge from
Tilghman Lesher [Tue, 24 Mar 2009 15:28:21 +0000 (15:28 +0000)] 
Merged revisions 183914 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183914 | tilghman | 2009-03-24 10:26:42 -0500 (Tue, 24 Mar 2009) | 10 lines

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

  ........
    r183913 | tilghman | 2009-03-24 10:25:42 -0500 (Tue, 24 Mar 2009) | 3 lines

    Additionally note that the operator option needs an 'o' extension.
    (Related to issue #14731)
  ........
................

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

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

........
  r183865 | tilghman | 2009-03-23 18:28:20 -0500 (Mon, 23 Mar 2009) | 2 lines

  Allow browsers to cache images and other static content.
  (This is a regression over 1.4)
........

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

16 years agoMerged revisions 183766 via svnmerge from
Mark Michelson [Mon, 23 Mar 2009 18:59:30 +0000 (18:59 +0000)] 
Merged revisions 183766 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183766 | mmichelson | 2009-03-23 13:58:03 -0500 (Mon, 23 Mar 2009) | 13 lines

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

  ........
    r183700 | mmichelson | 2009-03-23 12:59:28 -0500 (Mon, 23 Mar 2009) | 7 lines

    Fix a memory leak in res_monitor.c

    The only way that this leak would occur is if Monitor were started
    using the Manager interface and no File: header were given. Discovered
    while reviewing the ast_channel_ao2 review request.
  ........
................

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

16 years agoMerged revisions 183701 via svnmerge from
Leif Madsen [Mon, 23 Mar 2009 18:12:10 +0000 (18:12 +0000)] 
Merged revisions 183701 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183701 | lmadsen | 2009-03-23 14:06:40 -0400 (Mon, 23 Mar 2009) | 7 lines

  Fixes a documentation error introduced during the CLI cleanup at AstriDevCon 2008.

  (closes issue #14655)
  Reported by: ulogic
  Patches:
        chan_dahdi.patch uploaded by ulogic (license 728)
  Tested by: lmadsen
........

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

16 years agoMerged revisions 183560 via svnmerge from
Russell Bryant [Fri, 20 Mar 2009 17:08:12 +0000 (17:08 +0000)] 
Merged revisions 183560 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r183560 | russell | 2009-03-20 12:00:58 -0500 (Fri, 20 Mar 2009) | 10 lines

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

........
r183559 | russell | 2009-03-20 11:53:25 -0500 (Fri, 20 Mar 2009) | 2 lines

Fix a crash in IAX2 registration handling found during load testing with dvossel.

........

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

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

16 years agoBlocked revisions 183553-183555 via svnmerge
Mark Michelson [Fri, 20 Mar 2009 16:32:39 +0000 (16:32 +0000)] 
Blocked revisions 183553-183555 via svnmerge

........
  r183553 | mmichelson | 2009-03-20 11:19:53 -0500 (Fri, 20 Mar 2009) | 5 lines

  Add some missing symbols to main/asterisk.exports

  Hey! chan_sip.so loads now!
........
  r183554 | mmichelson | 2009-03-20 11:24:20 -0500 (Fri, 20 Mar 2009) | 3 lines

  Remove symbols I just added to main/asterisk.exports and instead rename the functions.
........
  r183555 | mmichelson | 2009-03-20 11:25:17 -0500 (Fri, 20 Mar 2009) | 3 lines

  Fix chan_sip so it builds.
........

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

16 years agoBlocked revisions 183511 via svnmerge
Eliel C. Sardanons [Fri, 20 Mar 2009 12:25:52 +0000 (12:25 +0000)] 
Blocked revisions 183511 via svnmerge

........
  r183511 | eliel | 2009-03-20 08:12:49 -0400 (Fri, 20 Mar 2009) | 2 lines

  Remove duplicate <description> inside the xml documentation.
........

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

16 years agoMerged revisions 183436 via svnmerge from
David Vossel [Thu, 19 Mar 2009 20:33:19 +0000 (20:33 +0000)] 
Merged revisions 183436 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183436 | dvossel | 2009-03-19 15:30:39 -0500 (Thu, 19 Mar 2009) | 13 lines

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

  ........
    r183386 | dvossel | 2009-03-19 14:40:07 -0500 (Thu, 19 Mar 2009) | 6 lines

    Cleaning up a few things in detect disconnect patch

    Initialized ast_call_feature in detect_disconnect to avoid accessing uninitialized memory.  Cleaned up /param tags in features.h.  No longer send dynamic features in ast_feature_detect.

    issue #11583
  ........
................

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

16 years agoMerged revisions 183321 via svnmerge from
Tilghman Lesher [Thu, 19 Mar 2009 19:19:28 +0000 (19:19 +0000)] 
Merged revisions 183321 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183321 | tilghman | 2009-03-19 14:17:31 -0500 (Thu, 19 Mar 2009) | 15 lines

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

  ........
    r183319 | tilghman | 2009-03-19 14:15:33 -0500 (Thu, 19 Mar 2009) | 8 lines

    Delay signalling progress until a PRI channel really signals progress.
    (closes issue #13034)
     Reported by: klaus3000
     Patches:
           20090316__bug13034.diff.txt uploaded by tilghman (license 14)
           patch_trunk_183progress_klaus3000.txt uploaded by klaus3000 (license 65)
     Tested by: klaus3000
  ........
................

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

16 years agoMerged revisions 183242 via svnmerge from
Russell Bryant [Thu, 19 Mar 2009 18:14:55 +0000 (18:14 +0000)] 
Merged revisions 183242 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r183242 | russell | 2009-03-19 13:00:15 -0500 (Thu, 19 Mar 2009) | 10 lines

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

........
r183241 | russell | 2009-03-19 12:52:52 -0500 (Thu, 19 Mar 2009) | 2 lines

Remove the use of RTLD_NOLOAD, as it is not behaving like expected.

........

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

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

16 years agoMerged revisions 183244 via svnmerge from
Mark Michelson [Thu, 19 Mar 2009 18:11:41 +0000 (18:11 +0000)] 
Merged revisions 183244 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183244 | mmichelson | 2009-03-19 13:10:34 -0500 (Thu, 19 Mar 2009) | 16 lines

  Fix a memory leak associated with queues.

  For every attempt that app_queue made to place an outbound call to a queue member,
  we would allocate a queue_end_bridge structure. When the bridge for the call had
  completed, we would free the structure. Unfortunately not all call attempts actually
  end up bridged to a member, so we need to be more selective of when to allocate
  the structure. With this change, the allocation occurs in an area where we can
  guarantee that the call will be bridged.

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

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

16 years agoMerged revisions 183172 via svnmerge from
David Vossel [Thu, 19 Mar 2009 17:08:23 +0000 (17:08 +0000)] 
Merged revisions 183172 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r183172 | dvossel | 2009-03-19 11:28:33 -0500 (Thu, 19 Mar 2009) | 20 lines

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

  ........
    r183126 | dvossel | 2009-03-19 11:15:16 -0500 (Thu, 19 Mar 2009) | 17 lines

    Allow disconnect feature before a call is bridged

    feature.conf has a disconnect option.  By default this option is set to '*', but it could be anything.  If a user wishes to disconnect a call before the other side answers, only '*' will work, regardless if the disconnect option is set to something else.  This is because features are unavailable until bridging takes place.  The default disconnect option, '*', was hardcoded in app_dial, which doesn't make any sense from a user perspective since they may expect it to be something different.  This patch allows features to be detected from outside of the bridge, but not operated on.  In this case, the disconnect feature can be detected before briding and handled outside of features.c.

    (closes issue #11583)
    Reported by: sobomax
    Patches:
     patch-apps__app_dial.c uploaded by sobomax (license 359)
     11583.latest-patch uploaded by murf (license 17)
     detect_disconnect.diff uploaded by dvossel (license 671)
    Tested by: sobomax, dvossel
    Review: http://reviewboard.digium.com/r/195/
  ........
................

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

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

................
  r183117 | mmichelson | 2009-03-19 11:07:54 -0500 (Thu, 19 Mar 2009) | 20 lines

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

  ........
    r183115 | mmichelson | 2009-03-19 11:04:02 -0500 (Thu, 19 Mar 2009) | 14 lines

    Fix an issue where cancelled outgoing SIP calls would erroneously report the device as "in use."

    A user was having an issue where if an outgoing SIP call was canceled, the SIP device
    would remain in use if we had not received any response to the initial INVITE we sent out.
    The SIP device would remain in use until the autocongestion timer was exhausted.

    I tracked down the cause of this to be the section of code I am removing here. I asked several
    people what the purpose of this code was meant to be, but no one could give me any sort of
    answer as to why this was here. The person who was having this issue has been using this patch
    for several months and it has stopped the problems they have had.

    AST-196
  ........
................

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

16 years agoMerged revisions 183108 via svnmerge from
Joshua Colp [Thu, 19 Mar 2009 15:43:16 +0000 (15:43 +0000)] 
Merged revisions 183108 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183108 | file | 2009-03-19 12:37:23 -0300 (Thu, 19 Mar 2009) | 11 lines

  Improve our triggering of a T38 switchover internally when triggered by a received reinvite.

  Previously we reached across the channel bridge to get the other party's SIP dialog
  structure in order to trigger an outgoing reinvite. This is extremely dangerous to do
  and only works if bridged to another SIP channel. This patch changes this to use the
  T38 control frame method of requesting a switchover. This change also causes the SIP
  channel driver to propogate back whether the switchover worked or not instead of blindly
  accepting the incoming T38 reinvite.

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

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

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

........
  r183057 | file | 2009-03-18 19:22:56 -0300 (Wed, 18 Mar 2009) | 6 lines

  Fix an issue where a T38 control frame would get dropped.

  If two channels were bridged together using a generic bridge the T38
  control frame would get passed up instead of being indicated on the
  other channel.
........

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

16 years agoMerged revisions 183028 via svnmerge from
Jeff Peeler [Wed, 18 Mar 2009 21:19:27 +0000 (21:19 +0000)] 
Merged revisions 183028 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r183028 | jpeeler | 2009-03-18 16:18:27 -0500 (Wed, 18 Mar 2009) | 4 lines

  Add some code removed by mistake from commit 182722 that works around a file
  descriptor leak in versions of PWLib prior to 1.12.0.
........

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

16 years agoMerged revisions 182847 via svnmerge from
Russell Bryant [Wed, 18 Mar 2009 14:32:47 +0000 (14:32 +0000)] 
Merged revisions 182847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r182847 | russell | 2009-03-17 21:28:55 -0500 (Tue, 17 Mar 2009) | 52 lines

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

........
r182810 | russell | 2009-03-17 21:09:13 -0500 (Tue, 17 Mar 2009) | 44 lines

Fix cases where the internal poll() was not being used when it needed to be.

We have seen a number of problems caused by poll() not working properly on
Mac OSX.  If you search around, you'll find a number of references to using
select() instead of poll() to work around these issues.  In Asterisk, we've
had poll.c which implements poll() using select() internally.  However, we
were still getting reports of problems.

vadim investigated a bit and realized that at least on his system, even
though we were compiling in poll.o, the system poll() was still being used.
So, the primary purpose of this patch is to ensure that we're using the
internal poll() when we want it to be used.

The changes are:

1) Remove logic for when internal poll should be used from the Makefile.
   Instead, put it in the configure script.  The logic in the configure
   script is the same as it was in the Makefile.  Ideally, we would have
   a functionality test for the problem, but that's not actually possible,
   since we would have to be able to run an application on the _target_
   system to test poll() behavior.

2) Always include poll.o in the build, but it will be empty if AST_POLL_COMPAT
   is not defined.

3) Change uses of poll() throughout the source tree to ast_poll().  I feel
   that it is good practice to give the API call a new name when we are
   changing its behavior and not using the system version directly in all cases.
   So, normally, ast_poll() is just redefined to poll().  On systems where
   AST_POLL_COMPAT is defined, ast_poll() is redefined to ast_internal_poll().

4) Change poll() in main/poll.c to be ast_internal_poll().

It's worth noting that any code that still uses poll() directly will work fine
(if they worked fine before).  So, for example, out of tree modules that are
using poll() will not stop working or anything.  However, for modules to work
properly on Mac OSX, ast_poll() needs to be used.

(closes issue #13404)
Reported by: agalbraith
Tested by: russell, vadim

http://reviewboard.digium.com/r/198/

........

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

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

16 years agoMerged revisions 182722 via svnmerge from
Jeff Peeler [Tue, 17 Mar 2009 20:52:54 +0000 (20:52 +0000)] 
Merged revisions 182722 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182722 | jpeeler | 2009-03-17 15:47:31 -0500 (Tue, 17 Mar 2009) | 15 lines

  Allow H.323 Plus library to be used in addition to the OpenH323 library

  Chan_h323 can now be compiled against both the previously supported versions of
  OpenH323 as well as the current H.323 Plus (version 1.20.2). The configure
  script has been modified to look in the default install location of h323 to
  hopefully help avoid using the environment variables OPENH323DIR and PWLIBDIR.
  Also, the CLI command "h323 show version" has been added which indicates which
  version of h323 is in use.

  (closes issue #11261)
  Reported by: vhatz
  Patches:
        asterisk-1.6.0.6-h323plus.patch uploaded by jthurman (license 614)
........

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

16 years agoMerged revisions 182553 via svnmerge from
Russell Bryant [Tue, 17 Mar 2009 15:31:14 +0000 (15:31 +0000)] 
Merged revisions 182553 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r182553 | russell | 2009-03-17 10:22:12 -0500 (Tue, 17 Mar 2009) | 5 lines

Tweak the handling of the frame list inside of ast_answer().

This does not change any behavior, but moves the frames from the local frame
list back to the channel read queue using an O(n) algorithm instead of O(n^2).

........

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

16 years agoMerged revisions 182530 via svnmerge from
Kevin P. Fleming [Tue, 17 Mar 2009 15:00:45 +0000 (15:00 +0000)] 
Merged revisions 182530 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182530 | kpfleming | 2009-03-17 09:59:33 -0500 (Tue, 17 Mar 2009) | 2 lines

  correct logic flaw in ast_answer() changes in r182525
........

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

16 years agoMerged revisions 182525 via svnmerge from
Kevin P. Fleming [Tue, 17 Mar 2009 14:39:50 +0000 (14:39 +0000)] 
Merged revisions 182525 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r182525 | kpfleming | 2009-03-17 09:38:11 -0500 (Tue, 17 Mar 2009) | 11 lines

  Improve behavior of ast_answer() to not lose incoming frames

  ast_answer(), when supplied a delay before returning to the caller, use ast_safe_sleep() to implement the delay. Unfortunately during this time any incoming frames are discarded, which is problematic for T.38 re-INVITES and other sorts of channel operations.

  When a delay is not passed to ast_answer(), it still delays for up to 500 milliseconds, waiting for media to arrive. Again, though, it discards any control frames, or non-voice media frames.

  This patch rectifies this situation, by storing all incoming frames during the delay period on a list, and then requeuing them onto the channel before returning to the caller.

  http://reviewboard.digium.com/r/196/
........

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

16 years agoBlocked revisions 182521 via svnmerge
Sean Bright [Tue, 17 Mar 2009 14:36:51 +0000 (14:36 +0000)] 
Blocked revisions 182521 via svnmerge

........
  r182521 | seanbright | 2009-03-17 10:24:53 -0400 (Tue, 17 Mar 2009) | 3 lines

  Don't include a space before the optional extra text that may follow a help
  string.
........

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

16 years agoMerged revisions 182450 via svnmerge from
Tilghman Lesher [Tue, 17 Mar 2009 05:54:07 +0000 (05:54 +0000)] 
Merged revisions 182450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
  r182450 | tilghman | 2009-03-17 00:51:54 -0500 (Tue, 17 Mar 2009) | 14 lines

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

  ........
    r182449 | tilghman | 2009-03-17 00:50:52 -0500 (Tue, 17 Mar 2009) | 7 lines

    Fix race in astdb
    The underlying db1 implementation does not fully isolate the pages retrieved
    from astdb, so the lock protecting accesses needs to be extended until the
    copy from the shared memory structure is done.
    (closes issue #14682)
     Reported by: makoto
  ........
................

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

16 years agoBlocked revisions 182408 via svnmerge
Richard Mudgett [Tue, 17 Mar 2009 02:10:16 +0000 (02:10 +0000)] 
Blocked revisions 182408 via svnmerge

........
  r182408 | rmudgett | 2009-03-16 20:54:53 -0500 (Mon, 16 Mar 2009) | 8 lines

  OPENR2 uses an incorrect string value if the extension delimiter is not present.

  *  Fixed OPENR2 using an incorrect string value if the extension
  delimiter is not present in the Dial() function.  This was fixed for
  SS7 and PRI in trunk -r172400.
  *  Made OPENR2 stripmsd behavior the same as the SS7, PRI, and others.
  *  Removed trailing whitespace that appeared with OPENR2.
........

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

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