Commit Graph

3086 Commits

Author SHA1 Message Date
Matthew Nicholson
f5bc72d34f Merged revisions 287119 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287119 | mnicholson | 2010-09-16 15:06:16 -0500 (Thu, 16 Sep 2010) | 15 lines
  
  Merged revisions 287118 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287118 | mnicholson | 2010-09-16 15:04:46 -0500 (Thu, 16 Sep 2010) | 8 lines
    
    Don't limit hint processing in ast_hint_state_changed() to AST_MAX_EXTENSION length strings.
    
    (closes issue #17928)
    Reported by: mdu113
    Patches:
          20100831__issue17928.diff.txt uploaded by tilghman (license 14)
    Tested by: mdu113
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-16 20:07:38 +00:00
Matthew Nicholson
26c46e8db4 Merged revisions 287115 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287115 | mnicholson | 2010-09-16 14:53:41 -0500 (Thu, 16 Sep 2010) | 15 lines
  
  Merged revisions 287114 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287114 | mnicholson | 2010-09-16 14:52:39 -0500 (Thu, 16 Sep 2010) | 8 lines
    
    Don't stop printing cdr variables if we encounter one with a blank name or value.
    
    (closes issue #17900)
    Reported by: under
    Patches:
          core-show-channel-cdr-fix1.diff uploaded by mnicholson (license 96)
    Tested by: mnicholson
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287116 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-16 19:54:48 +00:00
Jeff Peeler
08ed487a61 fix uninintialized variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-15 20:58:39 +00:00
Jeff Peeler
c9bfde6afd Add parking extension for non-default parking lots.
This is a new feature that allows for parking to custom parking lots to be
accessed directly, rather than with channel variables or by changing the
default parking lot. The extension is set with the parkext option just as the
default parking lot is done. Also, the manager action has been updated to
optionally allow a specified parking lot.

(closes issue #14882)
Reported by: vmikhnevych
Patches: 
      patch_14882.txt uploaded by mnick (license 874)
      modified by me

Review: https://reviewboard.asterisk.org/r/884/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-15 19:22:15 +00:00
Matthew Nicholson
985d92c074 Merged revisions 286681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r286681 | mnicholson | 2010-09-14 13:02:24 -0500 (Tue, 14 Sep 2010) | 14 lines
  
  Merged revisions 286679 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r286679 | mnicholson | 2010-09-14 13:00:01 -0500 (Tue, 14 Sep 2010) | 7 lines
    
    Only drop duplicate answer frames if the channel is bridged.
    
    Back in r3710 ast_read() was modified to drop answer frames on channels that were in the UP state.  This modification prevented bridges that were up before the answer from being broken and reestablished by an ANSWER control frame.  That change also prevents pickup of channels called from the ast_dial framework from working properly.  The ast_dial framework expects to see an ANSWER frame after dialing and the pickup code queues one but ast_read() drops it.  This new change only drops ANSWER frames when the channel is bridged, allowing the answer queued by the pickup code to properly pass through ast_read() on to the ast_dial framework.
    
    ABE-2473
    (related to issue #2342)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-14 18:04:21 +00:00
Tilghman Lesher
371e0c6d70 Merged revisions 286557 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r286557 | tilghman | 2010-09-13 18:48:51 -0500 (Mon, 13 Sep 2010) | 2 lines
  
  C precedence got me
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286558 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-13 23:50:34 +00:00
Tilghman Lesher
9cbcaec026 Merged revisions 286527 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r286527 | tilghman | 2010-09-13 18:03:26 -0500 (Mon, 13 Sep 2010) | 2 lines
  
  Refactor conversion to ast_poll() to fix callparking regression.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-13 23:12:21 +00:00
Olle Johansson
7a7d65839f Merged revisions 286268 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r286268 | oej | 2010-09-11 19:05:16 +0200 (Lör, 11 Sep 2010) | 11 lines
  
  Merged revisions 286267 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r286267 | oej | 2010-09-11 18:59:20 +0200 (Lör, 11 Sep 2010) | 4 lines
    
    Handle error response when we can't make file compatible
    
    Review: https://reviewboard.asterisk.org/r/911/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-11 17:09:22 +00:00
Russell Bryant
3ceb0f6fe2 Rate limit calls to fsync() to 1 per second after astdb updates.
Astdb was determined to be one of the most significant bottlenecks in SIP
registration processing.  This patch improved the speed of an astdb load
test by 50000% (yes, Fifty-Thousand Percent).  On this particular load test
setup, this doubled the number of SIP registrations the server could handle.

Review: https://reviewboard.asterisk.org/r/825/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@286112 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-10 20:31:58 +00:00
Jason Parker
85a04d3597 Merged revisions 285744 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r285744 | qwell | 2010-09-09 15:09:23 -0500 (Thu, 09 Sep 2010) | 16 lines
  
  Merged revisions 285742 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r285742 | qwell | 2010-09-09 15:06:31 -0500 (Thu, 09 Sep 2010) | 9 lines
    
    Transmit silence when reading DTMF in ast_readstring.
    
    Otherwise, you could get issues with DTMF timeouts causing hangups.
    
    (closes issue #17370)
    Reported by: makoto
    Patches: 
          channel-readstring-silence-generator.patch uploaded by makoto (license 38)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-09 20:11:06 +00:00
Brett Bryant
c8f5e73601 Merged revisions 285710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r285710 | bbryant | 2010-09-09 14:50:13 -0400 (Thu, 09 Sep 2010) | 8 lines
  
  Fixes an issue with dialplan pattern matching where the specificity for pattern ranges and pattern special characters was inconsistent.
  
  (closes issue #16903)
  Reported by: Nick_Lewis
  Patches: 
        pbx.c-specificity.patch uploaded by Nick Lewis (license 657)
  Tested by: Nick_Lewis
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-09 18:51:52 +00:00
Richard Mudgett
e18b30c95c Fix cut-n-paste error.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-07 21:08:35 +00:00
Tilghman Lesher
6df1f446c9 Merged revisions 285267 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r285267 | tilghman | 2010-09-07 14:07:17 -0500 (Tue, 07 Sep 2010) | 11 lines
  
  Merged revisions 285266 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r285266 | tilghman | 2010-09-07 14:04:50 -0500 (Tue, 07 Sep 2010) | 4 lines
    
    Use poll, if indicated to do so, in the ast_poll2 implementation.
    
    This fixes the unit tests on FreeBSD 8.0.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@285268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-07 19:08:09 +00:00
Brett Bryant
781978c65e Merged revisions 284778 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r284778 | bbryant | 2010-09-02 16:54:33 -0400 (Thu, 02 Sep 2010) | 14 lines
  
  Merged revisions 284777 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r284777 | bbryant | 2010-09-02 16:25:03 -0400 (Thu, 02 Sep 2010) | 7 lines
    
    Fixes a bug in manager.c where the default configuration values weren't reset when the manager configuration was reloaded.
    
    (closes issue #17917)
    Reported by: lmadsen
    
    Review: https://reviewboard.asterisk.org/r/883/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@284781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-02 21:04:51 +00:00
Tilghman Lesher
7e3f95e00a When optional_api is non-optional, force dependent modules to be loaded.
(closes issue #17707)
 Reported by: ira
 Patches: 
       20100819__issue17707__asterisk1.8.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman
 
Review: https://reviewboard.asterisk.org/r/876/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@284610 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-02 05:20:59 +00:00
Tilghman Lesher
6c61e312c6 Merged revisions 284593,284595 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r284593 | tilghman | 2010-09-01 17:59:50 -0500 (Wed, 01 Sep 2010) | 18 lines
  
  Merged revisions 284478 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r284478 | tilghman | 2010-09-01 13:49:11 -0500 (Wed, 01 Sep 2010) | 11 lines
    
    Ensure that all areas that previously used select(2) now use poll(2), with implementations that need poll(2) implemented with select(2) safe against 1024-bit overflows.
    
    This is a followup to the fix for the pthread timer in 1.6.2 and beyond, fixing
    a potential crash bug in all supported releases.
    
    (closes issue #17678)
     Reported by: russell
    Branch: https://origsvn.digium.com/svn/asterisk/team/tilghman/ast_select 
    
    Review: https://reviewboard.asterisk.org/r/824/
  ........
................
  r284595 | tilghman | 2010-09-01 22:57:43 -0500 (Wed, 01 Sep 2010) | 2 lines
  
  Failed to rerun bootstrap.sh after last commit
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@284597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-02 05:00:34 +00:00
Terry Wilson
8a112de270 Fix SRTP for changing SSRC and multiple a=crypto SDP lines
Adding code to Asterisk that changed the SSRC during bridges and masquerades
broke SRTP functionality. Also broken was handling the situation where an
incoming INVITE had more than one crypto offer. This patch caches the SRTP
policies the we use so that we can change the ssrc and inform libsrtp of the
new streams. It also uses the first acceptable a=crypto line from the incoming
INVITE.

(closes issue #17563)
Reported by: Alexcr
Patches: 
      srtp.diff uploaded by twilson (license 396)
Tested by: twilson

Review: https://reviewboard.asterisk.org/r/878/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@284477 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-01 18:44:36 +00:00
Russell Bryant
8629c83f71 Be more flexible with whitespace on AMI action headers.
Previously, this code required exactly one space to be after the ':' in headers
for an AMI action.  This now makes whitespace optional, and allows whitespace that
is there to vary in amount.

(closes issue #17862)
Reported by: cmoye
Patches:
      manager.c.patch_trunk uploaded by cmoye (license 858)
      manager.c.patch_1.8 uploaded by cmoye (license 858)
Tested by: cmoye


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@284065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-28 21:29:45 +00:00
Jason Parker
1aec6b69ba Merged revisions 283881 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r283881 | qwell | 2010-08-27 15:30:27 -0500 (Fri, 27 Aug 2010) | 15 lines
  
  Merged revisions 283880 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r283880 | qwell | 2010-08-27 15:29:11 -0500 (Fri, 27 Aug 2010) | 8 lines
    
    Fix issue with decoding ^-escaped characters in realtime.
    
    (closes issue #17790)
    Reported by: denzs
    Patches: 
          17790-chunky.diff uploaded by qwell (license 4)
    Tested by: qwell, denzs
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@283882 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-27 20:31:55 +00:00
Russell Bryant
b246f8691e Make the AST_CEL_AMA enum match up with the AST_CDR_ ama flag values.
Really, having 2 enums for this is silly and error prone, demonstrated by
the crash that I hit because there was an assumption in the code that the
values in each matched up.  However, this is a quick fix to get them to
match up so it will work.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@283230 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-23 13:23:12 +00:00
Russell Bryant
a5dbf66ea1 Don't blow up on an invalid AMA flag.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@283209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-23 13:06:57 +00:00
Tilghman Lesher
c20e1d3f3f Only output debugging if the debug level is on.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282826 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-19 14:44:51 +00:00
Terry Wilson
e3075ea015 Merged revisions 282467 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r282467 | twilson | 2010-08-16 12:32:01 -0500 (Mon, 16 Aug 2010) | 23 lines
  
  Merged revisions 282430 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r282430 | twilson | 2010-08-16 12:06:37 -0500 (Mon, 16 Aug 2010) | 16 lines
    
    Send a SRCCHANGE indication when we masquerade
    
    Masquerading a channel means that the src of the audio is potentially
    changing, so send a SRCCHANGE so that RTP-based media streams can get
    a new SSRC generated to reflect the change. Original patch by addix
    (along with lots of testing--thanks!).
    
    (closes issue #17007)
    Reported by: addix
    Patches: 
          1001-reset-SSRC-original-channel.diff uploaded by addix (license 1006)
          srcchange.diff uploaded by twilson (license 396)
    Tested by: addix, twilson
    
    Review: https://reviewboard.asterisk.org/r/862/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282468 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-16 17:53:44 +00:00
Richard Mudgett
89872aac58 Separate call completion config parameter allocation and default initialization.
If you ever have a need to reset the call completion config parameters
to defaults, now you can.

And no Virginia, C++ idioms do not always work in C.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 22:06:06 +00:00
Russell Bryant
c794db0b00 Add a "core reload" CLI command.
Review: https://reviewboard.asterisk.org/r/859/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282066 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 20:41:17 +00:00
David Vossel
44bc8cd334 improved translation paths for wideband codecs
The problem I'm addressing is that Asterisk's current
method of building the least cost translation paths
between codecs does not take into account sample rate.
For instance, it was possible for siren14 (a 32khz codec),
to contain the a translation path to siren7 (a 16khz
audio codec) that goes through slin at 8khz.  In this
case Asterisk takes a 32khz codec, down samples it to
8khz and then up samples it to 16khz which is terrible
regardless if it is computationally less expensive.  This
patch now builds translation paths that give priority to
maintaining the best possible sample rate before taking
into consideration computational cost.  This patch also
adds cli commands to expose what translation paths are
actually being used.

Changes:
1. Translation paths will never contain a step that changes
the sample rate unless absolutely necessary.
2. When choosing the best codec to make two channels compatible.
Shared codecs with the highest sample rate are given priority.
3. A new cli command to show all translation paths available
for a specific codec 'core show translation paths [codec name]'
has been added.
4. 'core show translation' which displays the translation
matrix now includes the new higher bit audio codecs in the table.
5. 'core show channel [channel name]'  now displays the
translation paths if translation is used.

(closes issue #16841)
Reported by: dvossel

Review: https://reviewboard.asterisk.org/r/842/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 20:15:41 +00:00
Russell Bryant
b61de7561f Put back pointer value output for ast_debug(), such that it is only removed for verbose output.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282015 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 18:03:56 +00:00
Russell Bryant
7ea5e3e62e Remove debugging output from verbose messages.
Pointer values to internal objects is not terribly useful to users in the
verbose messages about adding extensions and contexts.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 16:33:30 +00:00
Jeff Peeler
99b178fafa Merged revisions 281912 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r281912 | jpeeler | 2010-08-11 22:01:38 -0500 (Wed, 11 Aug 2010) | 27 lines
  
  Merged revisions 281911 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r281911 | jpeeler | 2010-08-11 22:00:14 -0500 (Wed, 11 Aug 2010) | 20 lines
    
    Ensure SSRC is changed when media source is changed to resolve audio delay.
    
    This change causes the SSRC to change right before the channels are bridged,
    which is what used to happen. It seems that fixes were made to attempt limiting
    SSRC changes, targeted mainly at sending DTMF. DTMF is not affecting the SSRC
    with this change.
    
    There are two other control frames sent in ast_channel_bridge that probably
    should also be changed to AST_CONTROL_SRCCHANGE as well, but I'm going to leave
    this change up to the discretion of resolving issue #17007.
    
    For reference - old review implementing new control frame SRCCHANGE:
    https://reviewboard.asterisk.org/r/540
    
    (closes issue #17404)
    Reported by: sdolloff
    Patches: 
          bug17404.patch uploaded by jpeeler (license 325)
    Tested by: sdolloff
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281913 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-12 03:03:37 +00:00
5c1c1b35bd Fix parsing of IPv6 address literals in outboundproxy
(closes issue #17757)
Reported by: oej
Patches:
      17757.diff uploaded by sperreault (license 252)
      sip.conf.diff uploaded by sperreault (license 252)
Tested by: oej


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-11 13:30:59 +00:00
Russell Bryant
c11fb1b855 Merged revisions 281574 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r281574 | russell | 2010-08-10 13:04:32 -0500 (Tue, 10 Aug 2010) | 9 lines
  
  Don't move the time threshold for running scheduled events on every iteration.
  
  Instead, only calculate the time threshold each time ast_sched_runq() is called.
  
  (closes issue #17742)
  Reported by: schmidts
  Patches:
        sched.c.patch uploaded by schmidts (license 1077)
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-10 18:05:07 +00:00
Russell Bryant
960fb7fd3a Resolve a problem with channel name tab completion.
Hitting tab without typing any part of a channel name resulted in no results.
This now results in getting a full list of active channels, just as it did
in previous versions of Asterisk.

Review: https://reviewboard.asterisk.org/r/818/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281529 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-10 16:21:58 +00:00
Tilghman Lesher
ab050f313d Fix alignment of stringfields on the SPARC architecture
(closes issue #17789)
 Reported by: Ian Mason
 Patches: 
       20100806__issue17789__2.diff.txt uploaded by tilghman (license 14)
 Tested by: Ian_Mason


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281085 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-06 18:57:10 +00:00
Russell Bryant
cdd1943c89 Merged revisions 281051 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r281051 | russell | 2010-08-05 08:11:32 -0500 (Thu, 05 Aug 2010) | 9 lines
  
  Cleanup default option value handling for cdr.conf [general].
  
  The default values would differ depending on whether or not cdr.conf exists.
  That is no longer the case.
  
  Apply a default value to the unanswered option.
  
  Define all default values as named constants.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@281052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-05 13:16:11 +00:00
Tilghman Lesher
20582d0a6d Merged revisions 280983 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r280983 | tilghman | 2010-08-05 02:40:47 -0500 (Thu, 05 Aug 2010) | 15 lines
  
  Merged revisions 280982 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r280982 | tilghman | 2010-08-05 02:28:33 -0500 (Thu, 05 Aug 2010) | 8 lines
    
    Change context lock back to a mutex, because functionality depends upon the lock being recursive.
    
    (closes issue #17643)
     Reported by: zerohalo
     Patches: 
           20100726__issue17643.diff.txt uploaded by tilghman (license 14)
     Tested by: zerohalo
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280984 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-05 07:46:36 +00:00
Tilghman Lesher
ad3167c134 Make this a little more deterministic... we want the latest value, not just a 1 somewhere.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280628 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-02 14:41:46 +00:00
Tilghman Lesher
2290e2d22a Apparently, the values in makeopts are sometimes 1:1 and sometimes 1. Compensate for this.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280624 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-08-02 14:27:20 +00:00
David Vossel
a00f7cf2aa Merged revisions 280449 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r280449 | dvossel | 2010-07-29 14:05:25 -0500 (Thu, 29 Jul 2010) | 18 lines
  
  Merged revisions 280448 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r280448 | dvossel | 2010-07-29 14:04:23 -0500 (Thu, 29 Jul 2010) | 12 lines
    
    fixes issue with translator frame not getting freed
    
    A translator frame even if it local storage so the translation path
    can be freed.  This issue prevented g729 licenses from being freed up.
    
    (closes issue #17630)
    Reported by: manvirr
    Patches:
          encoder_fix.diff uploaded by dvossel (license 671)
    Tested by: manvirr, dvossel
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280450 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 19:13:27 +00:00
Russell Bryant
4f12b1c77f Don't blow up if get_codec() was not provided in the RTP glue.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 16:25:43 +00:00
Matthew Nicholson
bb4178a14a Merged revisions 280306 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r280306 | mnicholson | 2010-07-29 08:45:11 -0500 (Thu, 29 Jul 2010) | 2 lines
  
  Implement support for ast_channel_queryoption on local channels.  Currently only AST_OPTION_T38_STATE is supported.

  ABE-2229
  Review: https://reviewboard.asterisk.org/r/813/
........

Additionally, pass AST_CONTROL_T38_PARAMETERS control frames through generic bridges.  This change appears to have been unintentionally left out of rev 203699.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-29 13:56:35 +00:00
Sean Bright
0140af581e Revert r280019 for now - This was poorly executed.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 22:30:38 +00:00
Sean Bright
5fb5c90b89 Add ability to use system libedit and update bundled libedit.
The version of libedit that is bundled with asterisk is old and has some bugs.
This patch updates the bundled version of libedit within asterisk, and also
updates asterisk to use the system libedit instead if one is available (and
pkg-config is available).  This review integrates several patches from other
users specifically kkm and tzafrir.

(closes issue #15929)
Reported by: kkm
Patches:
      015929-astcli-editrc-trunk.240324.diff uploaded by kkm (license 888)

(issue #16858)
Reported by: jw-asterisk

(closes issue #17039)
Reported by: tzafrir
Patches:
      0001-allow-using-system-copy-of-libedit.patch uploaded by tzafrir (license 46)

Review: https://reviewboard.asterisk.org/r/807/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@280019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 21:57:07 +00:00
David Vossel
df89f8da6a Merged revisions 279946 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r279946 | dvossel | 2010-07-27 15:54:32 -0500 (Tue, 27 Jul 2010) | 24 lines
  
  Merged revisions 279945 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r279945 | dvossel | 2010-07-27 15:33:40 -0500 (Tue, 27 Jul 2010) | 19 lines
    
    remove empty audiohook write list on channel
    
    If a channel has an audiohook write list created on it, that
    list stays on the channel until the channel is destroyed.  There
    is no reason to keep that list on the channel if it becomes empty.
    If it is empty that just means we are doing needless translating
    for every ast_read and ast_write.  This patch removes the audiohook
    list from the channel once it is detected to be empty on either a
    read or write.  If a audiohook is added back to the channel after
    this list is destroyed, the list just gets recreated as if it never
    existed to begin with.
    
    (closes issue #17630)
    Reported by: manvirr
    
    Review: https://reviewboard.asterisk.org/r/799/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 20:57:00 +00:00
David Vossel
ab374d0446 fix sip transaction match with authentication, fix confusing log message when using getaddrinfo
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 16:09:15 +00:00
Paul Belanger
9f553c797e Use ast_sockaddr_setnull() when http is not enabled.
Otherwise, ast_tcptls_server_start() will still start http. 

(closes issue #17708)
Reported by: pabelanger
Patches:
      http.patch uploaded by pabelanger (license 224)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-27 01:53:38 +00:00
Russell Bryant
d3700923db Ignore a control subclass of -1 in ast_waitfordigit_full().
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-26 21:53:30 +00:00
Tilghman Lesher
a3cb74fcd4 Don't assume qlog is open.
(closes issue #17704)
 Reported by: vrban
 Patches: 
       issue17704.patch uploaded by pabelanger (license 224)
 Tested by: vrban


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-25 17:32:21 +00:00
Paul Belanger
16921385e3 Default sin_family to AF_INET for TCP / TLS Bindaddress.
Otherwise, 'manager show settings' will generate errors
if manager is not enabled.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@279273 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-24 17:36:42 +00:00
Tilghman Lesher
ec482eac9c Merged revisions 278981 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r278981 | tilghman | 2010-07-23 11:42:25 -0500 (Fri, 23 Jul 2010) | 8 lines
  
  Avoid race with consolethread on shutdown (on parallel processors).
  
  (closes issue #17080)
   Reported by: sybasesql
   Patches: 
         20100721__issue17080.diff.txt uploaded by tilghman (license 14)
   Tested by: sybasesql
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278982 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:43:34 +00:00
Tilghman Lesher
3ab0041118 Merge the realtime failover branch
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@278957 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-07-23 16:19:21 +00:00