Commit Graph

3176 Commits

Author SHA1 Message Date
David Vossel
e735b3f28c Set TCLASS field of IPv6 header when sip qos options are set.
(closes issue #18099)
Reported by: jamesnet
Patches:
      issues_18099_v2.diff uploaded by dvossel (license 671)
Tested by: dvossel, jamesnet


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-14 22:09:32 +00:00
Jeff Peeler
c55bdb40f0 Add missing ifdefs for test framework and new locale code.
(closes issue #18137)
Reported by: ovi
Patches: 
      18137_test_framework_ifdef.patch uploaded by wdoekes (license 717)
      18137_localelist_warning.patch uploaded by wdoekes (license 717)
Tested by: ovi



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291791 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-14 18:45:02 +00:00
Paul Belanger
a37956721c Add the ability for ast_find_ourip to return IPv4, IPv6 or both.
While testing chan_gtalk I noticed jabber was using my IPv6 address
and not IPv4. When using bindaddr=0.0.0.0 it is possible for ast_find_ourip()
to return both IPv6 and IPv4 results.  Adding a family parameter gives you
the ablility to choose.

Since jabber/gtalk/h323 do not support IPv6, we should only return IPv4 results.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-14 15:15:12 +00:00
Terry Wilson
9b9204c5ae Merged revisions 291580 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r291580 | twilson | 2010-10-13 15:58:43 -0700 (Wed, 13 Oct 2010) | 28 lines
  
  Merged revisions 291577 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r291577 | twilson | 2010-10-13 15:45:15 -0700 (Wed, 13 Oct 2010) | 21 lines
    
    Don't ignore frames that have been queued when softhangup'd
    
    When an outgoing call is answered and hung up by the far end *very* quickly, we
    may not read any frames and therefor end up with a call that displays the wrong
    disposition/DIALSTATUS. The reason is because ast_queue_hangup() immediately
    sets the _softhangup flag on the channel and then queues the HANGUP control
    frame, but __ast_read refuses to read any frames if ast_check_hangup() indicates
    that a hangup request has been made (which it will if _softhangup is set). So,
    we end up losing control frames.
    
    This change makes __ast_read continue to read frames even if a soft hangup has
    been requested. It queues a hangup frame to make sure that __ast_read() will
    still eventually return NULL.
    
    Much thanks to David Vossel for all of the reviews, discussion, and help!
    
    (closes issue #16946)
    Reported by: davidw
    
    Review: https://reviewboard.asterisk.org/r/740/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291581 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-13 23:01:56 +00:00
Tilghman Lesher
c4ead286ef Merged revisions 291264 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r291264 | tilghman | 2010-10-12 12:05:31 -0500 (Tue, 12 Oct 2010) | 9 lines
  
  Merged revisions 291263 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r291263 | tilghman | 2010-10-12 11:55:30 -0500 (Tue, 12 Oct 2010) | 2 lines
    
    Oops, incorrect range (although unallocated at ARIN)
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-12 17:06:23 +00:00
David Vossel
197b033cd7 Fixes manager.c crash.
This issue was caused by improper use of the mansession lock and
manession_session lock.  These two structures are confusing to begin
with so I'm not surprised this occurred.  I fixed this by consistently
making sure we use each of these locks only to protect the data
in the corresponding structure.  We had mismatched usage of these
locks which resulted in no mutual exclusivity occurring at all.


(closes issue #17994)
Reported by: vrban
Patches:
      mansession_locking_fix.diff uploaded by dvossel (license 671)
Tested by: vrban


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-12 15:58:56 +00:00
Richard Mudgett
d6214fe55d Merged revisions 291073 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r291073 | rmudgett | 2010-10-11 11:39:17 -0500 (Mon, 11 Oct 2010) | 15 lines
  
  Fixed infinite loop in verbose/debug message output.
  
  Setting the module/filename specific message level and then changing it
  resulted in the linked list being looped on itself.  Traversing this
  linked list is an infinite loop if what you are looking for is not in the
  list.
  
  Also plugged some CLI parsing holes in the associated CLI command:
  
  * Removing a nonexistent module from the list actually added it with a
  level of zero.
  
  * Setting the non-module specific level to zero is now equivalent to
  setting it to "off" as documented.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@291075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-11 16:42:54 +00:00
Jeff Peeler
c55ebead20 Merged revisions 290863 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r290863 | jpeeler | 2010-10-07 21:45:44 -0500 (Thu, 07 Oct 2010) | 16 lines
  
  Merged revisions 290862 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r290862 | jpeeler | 2010-10-07 21:35:29 -0500 (Thu, 07 Oct 2010) | 9 lines
    
    Ensure editline cleanup occurs when Ctrl-C is pressed at control console.
    
    A recent change was made to avoid a race condition on shutdown which only called
    the end functions from the console thread. However, when pressing Ctrl-C the
    quit handler is called from the signal handler thread.
    
    (closes issue #17698)
    Reported by: jmls
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-08 02:56:24 +00:00
Russell Bryant
b61babaf58 Merged revisions 290712 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r290712 | russell | 2010-10-07 12:53:56 +0200 (Thu, 07 Oct 2010) | 4 lines
  
  Don't crash when Set() is called without a value.
  
  Review: https://reviewboard.asterisk.org/r/949/
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-07 11:00:52 +00:00
Tilghman Lesher
b112c3de5c Merged revisions 290575 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r290575 | tilghman | 2010-10-06 08:48:27 -0500 (Wed, 06 Oct 2010) | 8 lines
  
  Allow streaming audio from a pipe.
  
  (closes issue #18001)
   Reported by: jamicque
   Patches: 
         20100926__issue18001.diff.txt uploaded by tilghman (license 14)
   Tested by: jamicque
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-06 13:49:19 +00:00
Tilghman Lesher
bbc7614ac9 Merged revisions 290254 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r290254 | tilghman | 2010-10-04 18:14:59 -0500 (Mon, 04 Oct 2010) | 11 lines
  
  Change new pattern matcher to regard dashes the same as the old pattern matcher -- as visual candy to be ignored.
  
  Also change the AEL parser to not generate dashes within extensions, as those
  dashes would be ignored.  Update the AEL tests to match this behavior.
  
  (closes issue #17366)
   Reported by: murf
   Patches: 
         20100727__issue17366.diff.txt uploaded by tilghman (license 14)
   Tested by: tilghman
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@290255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-04 23:23:11 +00:00
Olle Johansson
1d937d6cea Merged revisions 289950 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289950 | oej | 2010-10-02 10:52:03 +0200 (Lör, 02 Okt 2010) | 9 lines
  
  Merged revisions 289949 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289949 | oej | 2010-10-02 10:50:05 +0200 (Lör, 02 Okt 2010) | 2 lines
    
    Add documentation for undocumented option to AMI action originate
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-02 08:56:08 +00:00
Jeff Peeler
ddebf12b88 Merged revisions 289798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289798 | jpeeler | 2010-10-01 18:01:31 -0500 (Fri, 01 Oct 2010) | 22 lines
  
  Merged revisions 289797 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289797 | jpeeler | 2010-10-01 17:58:38 -0500 (Fri, 01 Oct 2010) | 15 lines
    
    Change RFC2833 DTMF event duration on end to report actual elapsed time.
    
    The scenario here is with a non P2P early media session. The reported time
    length of DTMF presses are coming up short when sending to the remote side.
    Currently the event duration is a running total that is incremented when sending
    continuation packets. These continuation packets are only triggered upon
    incoming media from the remote side, which means that the running total probably
    is not going to end up matching the actual length of time Asterisk received
    DTMF. This patch changes the end event duration to be lengthened if it is
    detected that the end event is going to come up short.
    
    Review: https://reviewboard.asterisk.org/r/957/
    
    ABE-2476
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-10-02 02:43:45 +00:00
Tilghman Lesher
f48a6f6cfe More Solaris compatibility fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-30 17:50:52 +00:00
Jason Parker
86460af890 Merged revisions 289339 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289339 | qwell | 2010-09-29 16:03:47 -0500 (Wed, 29 Sep 2010) | 15 lines
  
  Merged revisions 289338 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289338 | qwell | 2010-09-29 15:56:26 -0500 (Wed, 29 Sep 2010) | 8 lines
    
    Allow a manager originate to succeed on forwarded devices.
    
    The timeout to wait for an answer was being set to 0 when a device forwarded to another
    extension.  We don't always need the timeout set like this, so make it an optional
    parameter, and don't use it in this case.
    
    ABE-2544
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-29 21:12:43 +00:00
Matthew Nicholson
fd8c58834e Update the CDR record when ast_channel_set_caller_event() is called
(related to issue #17569)
Reported by: tbelder


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289268 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-29 17:08:20 +00:00
Richard Mudgett
8ce2f83b20 Make development error message indicate which channel.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-29 16:16:47 +00:00
Matthew Nicholson
3d39781818 Merged revisions 289178 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289178 | mnicholson | 2010-09-29 10:04:11 -0500 (Wed, 29 Sep 2010) | 15 lines
  
  Merged revisions 289177 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289177 | mnicholson | 2010-09-29 10:03:27 -0500 (Wed, 29 Sep 2010) | 8 lines
    
    Set the caller id on CDRs when it is set on the parent channel.
    
    (closes issue #17569)
    Reported by: tbelder
    Patches:
          17569.diff uploaded by tbelder (license 618)
    Tested by: tbelder
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289179 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-29 15:04:56 +00:00
Tilghman Lesher
e00c4dcc6d Solaris compatibility fixes
Review: https://reviewboard.asterisk.org/r/942/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-28 18:18:43 +00:00
Brett Bryant
c2c707637f Merged revisions 289095 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r289095 | bbryant | 2010-09-28 14:14:19 -0400 (Tue, 28 Sep 2010) | 21 lines
  
  Merged revisions 289094 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r289094 | bbryant | 2010-09-28 14:10:19 -0400 (Tue, 28 Sep 2010) | 14 lines
    
    Fixes an issue with the Newchannel AMI event during the Masquerading process.
    
    Fixes an issue with the Newchannel AMI event during the Masquerading process,
    where no Newchannel AMI event was generated for the psuedo channel used during
    the masquerading process.
    
    (closes issue #17987)
    Reported by: RadicAlish
    Patches: 
          newchannel.patch.txt uploaded by RadicAlish (license 1122)
          Tested by: RadicAlish
    
          Review: https://reviewboard.asterisk.org/r/937/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-28 18:18:02 +00:00
Tilghman Lesher
40cda1f728 Export timersub for platforms which do not have it
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-24 03:42:37 +00:00
Tilghman Lesher
2eb6c7395d Merged revisions 288637 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288637 | tilghman | 2010-09-23 22:36:01 -0500 (Thu, 23 Sep 2010) | 9 lines
  
  Merged revisions 288636 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288636 | tilghman | 2010-09-23 22:20:24 -0500 (Thu, 23 Sep 2010) | 2 lines
    
    Solaris compatibility fixes
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-24 03:39:29 +00:00
Terry Wilson
3a3c44251a Make AMI honor enabled=no
(closes issue #18040)
Reported by: twilson

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-23 18:05:16 +00:00
Russell Bryant
19b257224c Merged revisions 288340 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288340 | russell | 2010-09-22 11:44:13 -0500 (Wed, 22 Sep 2010) | 18 lines
  
  Merged revisions 288339 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288339 | russell | 2010-09-22 11:39:16 -0500 (Wed, 22 Sep 2010) | 11 lines
    
    Fix a 100% CPU consumption problem when setting console=yes in asterisk.conf.
    
    The handling of -c and console=yes should be the same, but they were not.
    When you specify -c, it sets both a flag for console module and for asterisk
    not to fork() off into the background.  The handling of console=yes only set
    console mode, so you would end up with a background process() trying to run
    the Asterisk console and freaking out since it didn't have anything to read
    input from.
    
    Thanks to beagles for reporting and helping debug the problem!
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-22 16:45:18 +00:00
Richard Mudgett
c05d497703 Protect channel access in CONNECTED_LINE and REDIRECTING interception macro launch code.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288079 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 20:29:51 +00:00
Brett Bryant
1c4aabd5d6 Merged revisions 288006 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r288006 | bbryant | 2010-09-21 15:46:20 -0400 (Tue, 21 Sep 2010) | 14 lines
  
  Merged revisions 288005 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r288005 | bbryant | 2010-09-21 15:43:46 -0400 (Tue, 21 Sep 2010) | 8 lines
    
    Add a check to fix a rare segmentation fault you'd get if ast_frdup couldn't allocate
    memory on the first frame being queued in ast_queue_frame.
    
    (closes issue #17882)
    Reported by: seanbright
    Tested by: seanbright
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@288007 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 19:48:53 +00:00
Tilghman Lesher
74e9d2b239 Merged revisions 287934 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287934 | tilghman | 2010-09-21 14:07:53 -0500 (Tue, 21 Sep 2010) | 9 lines
  
  Merged revisions 287933 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287933 | tilghman | 2010-09-21 14:07:07 -0500 (Tue, 21 Sep 2010) | 2 lines
    
    Less than zero is an error, not any non-zero value.
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287935 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 19:08:36 +00:00
Terry Wilson
1fd16be0b1 Revert change in favor of a more targeted fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287931 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 19:02:40 +00:00
Richard Mudgett
23c141e095 Cut-n-paste error in builtin_blindtransfer().
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 15:53:19 +00:00
Russell Bryant
d0581b8bbd Don't use ast_strdupa() from within the arguments to a function.
(closes issue #17902)
Reported by: afried
Patches:
      issue_17902.rev1.txt uploaded by russell (license 2)
Tested by: russell

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 15:43:33 +00:00
Russell Bryant
5bc7529f45 Fix a regression in verbose logger processing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287863 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 13:41:41 +00:00
Terry Wilson
0f8d99d616 Don't generate connected line buffer twice for comparison
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287833 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-21 04:37:44 +00:00
Terry Wilson
6c75697c13 Avoid infinite loop with certain local channel connected line updates
Compare connected line data before sending a connected line indication to avoid
possible loops.

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287757 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 23:51:38 +00:00
Alec L Davis
4ce624d57e Merged revisions 287685 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

........
  r287685 | alecdavis | 2010-09-21 11:16:45 +1200 (Tue, 21 Sep 2010) | 18 lines
  
  ast_channel_masquerade: Avoid recursive masquerades.
  
  Check all 4 combinations of (original/clonechan) * (masq/masqr).
  
  Initially original->masq and clonechan->masqr were only checked.
  
  It's possible with multiple masq's planned - and not yet executed, that
   the 'original' chan could already have another masq'd into it - thus original->masqr
  would be set, that masqr would lost.
  Likewise for the clonechan->masq.
  
  (closes issue #16057;#17363)
  Reported by: amorsen;davidw,alecdavis
  Patches: 
        based on bug16057.diff4.txt uploaded by alecdavis (license 585)
  Tested by: ramonpeek, davidw, alecdavis
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287701 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 23:20:03 +00:00
Alec L Davis
6f9f45f1dd ast_do_masquerade. Keep channels ao2_container locked while unlink and linking channels.
Previously, Masquerade would unlock 'original' and 'clonechan' and allow another masq thread to run.
End result would be corrupted memory, and the frequent report 'Bad Magic Number'.

(closes issue #17801,#17710)
Reported by: notthematrix
Patches: 
      Based on bug17801.diff1.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 22:21:50 +00:00
David Vossel
ecabd15422 Addition of the FrameHook API (AKA AwesomeHooks)
So far all our tools for viewing and manipulating media streams
within Asterisk have been entirely focused on audio.  That made
sense then, but is not scalable now.  The FrameHook API lets us
tap into and manipulate _ANY_ type of media or signaling passed
on a channel present today or in the future.  This tool is a step
in the direction of expanding Asterisk's boundaries and will help
generate some rather interesting applications in the future.

In addition to the FrameHook API, a simple dialplan function
exercising the api has been included as well.  This function
is called FRAME_TRACE().  FRAME_TRACE() allows for the internal
ast_frames read and written to a channel to be output.  Filters
can be placed on this function to debug only certain types of frames.
This function could be thought of as an internal way of doing
ast_frame packet captures.

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



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 22:09:16 +00:00
Brett Bryant
dc50c6b1bd Fixes an error with the logger that caused verbose messages to be spammed to the
screen if syslog was configured in logger.conf

(closes issue #17974)
Reported by: lmadsen

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287639 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 21:19:12 +00:00
Matthew Nicholson
ff146c0f78 Merged revisions 287558 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287558 | mnicholson | 2010-09-20 10:56:21 -0500 (Mon, 20 Sep 2010) | 14 lines
  
  Use ast_str when processing hint state changes
  
  Merged revisions 287555 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287555 | mnicholson | 2010-09-20 10:48:14 -0500 (Mon, 20 Sep 2010) | 5 lines
    
    Use ast_dynamic_str when processing hint state changes
    
    (related to issue #17928)
    Reported by: mdu113
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287559 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-20 15:57:14 +00:00
Olle Johansson
9f3a7a348c Merged revisions 287470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287470 | oej | 2010-09-19 18:06:10 +0200 (Sön, 19 Sep 2010) | 14 lines
  
  Merged revisions 287469 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287469 | oej | 2010-09-19 17:56:50 +0200 (Sön, 19 Sep 2010) | 7 lines
    
    Make sure we always free variables properly in manager originate.
    
    (closes issue #17891)
    reported, solved and tested by oej
    
    Review: https://reviewboard.asterisk.org/r/869/
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-19 16:09:28 +00:00
Matthew Nicholson
c293fa192f Merged revisions 287308 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r287308 | mnicholson | 2010-09-17 08:36:07 -0500 (Fri, 17 Sep 2010) | 12 lines
  
  Merged revisions 287307 via svnmerge from 
  https://origsvn.digium.com/svn/asterisk/branches/1.4
  
  ........
    r287307 | mnicholson | 2010-09-17 08:34:34 -0500 (Fri, 17 Sep 2010) | 5 lines
    
    Use ast_strdup() instead of ast_strdupa() while processing in ast_hint_state_changed().
    
    (related to issue #17928)
    Reported by: mdu113
  ........
................


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@287309 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2010-09-17 13:37:10 +00:00
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