]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoSupport the silly OSes that don't have ar and strip.
Jason Parker [Tue, 27 Apr 2010 19:29:26 +0000 (19:29 +0000)] 
Support the silly OSes that don't have ar and strip.

Since AC_PATH_TOOL is equiv to AC_CHECK_TOOL when path isn't specified, and
AC_PATH_TOOLS doesn't exist, we'll just switch to AC_CHECK_TOOLS.

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

15 years agohidecalleridname parameter in chan_dahdi.conf
Richard Mudgett [Tue, 27 Apr 2010 18:14:54 +0000 (18:14 +0000)] 
hidecalleridname parameter in chan_dahdi.conf

Issue #7321 implements a new chan_dahdi configuration option.  However, a
change mentioned in the issue was never implemented.  This is the change
that will allow the feature to work.

I added a note to chan_dahdi.conf.sample about the feature.

(closes issue #17143)
Reported by: djensen99
Patches:
      diff.txt uploaded by djensen99 (license NA) (One line change)
Tested by: djensen99

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

15 years agoLet compilation succeed warning-free when DONT_OPTIMIZE is turned off.
Mark Michelson [Mon, 26 Apr 2010 21:44:43 +0000 (21:44 +0000)] 
Let compilation succeed warning-free when DONT_OPTIMIZE is turned off.

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

15 years agoPrevent Newchannel manager events for dummy channels.
Mark Michelson [Mon, 26 Apr 2010 21:03:08 +0000 (21:03 +0000)] 
Prevent Newchannel manager events for dummy channels.

No Newchannel manager event will be fired for channels that are
allocated to not match a registered technology type. Thus bogus
channels allocated solely for variable substitution or CDR
operations do not result in a Newchannel event.

(closes issue #16957)
Reported by: atis

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

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

15 years agoWhen StopMonitor is called, ensure that it will not be restarted by a channel event.
Tilghman Lesher [Sun, 25 Apr 2010 18:09:05 +0000 (18:09 +0000)] 
When StopMonitor is called, ensure that it will not be restarted by a channel event.
(closes issue #16590)
 Reported by: kkm
 Patches:
       resmonitor-16590-trunk.239289.diff uploaded by kkm (license 888)

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

15 years agoFix broken CDR behavior.
Matthew Nicholson [Thu, 22 Apr 2010 21:49:07 +0000 (21:49 +0000)] 
Fix broken CDR behavior.

This change allows a CDR record previously marked with disposition ANSWERED to be set as BUSY or NO ANSWER.

Additionally this change partially reverts r235635 and does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated from ast_call().  To preserve proper CDR behavior, the AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in ast_bridge_call().

(closes issue #16797)
Reported by: VarnishedOtter
Tested by: mnicholson

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

15 years agoFix looping forever when no input received in certain voicemail menu scenarios.
Jeff Peeler [Wed, 21 Apr 2010 21:45:36 +0000 (21:45 +0000)] 
Fix looping forever when no input received in certain voicemail menu scenarios.

Specifically, prompting for an extension (when leaving or forwarding a message)
or when prompting for a digit (when saving a message or changing folders).

ABE-2122
SWP-1268

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

15 years agoPlay correct prompt when voicemail store failure occurs after attempted forward.
Jeff Peeler [Tue, 20 Apr 2010 16:16:33 +0000 (16:16 +0000)] 
Play correct prompt when voicemail store failure occurs after attempted forward.

If a user's mailbox was full and a message was attempted to be forwarded to
said box, warnings on the console would indicate failure. However, the played
prompt was that of success (vm-msgsaved). Now storage failure is taken into
account and the correct prompt (vm-mailboxfull) is played when appropriate.

ABE-2123
SWP-1262

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

15 years agomake app_voicemail compile with IMAP_STORAGE
Jeff Peeler [Mon, 19 Apr 2010 19:09:46 +0000 (19:09 +0000)] 
make app_voicemail compile with IMAP_STORAGE

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

15 years agoMake the mixmonitor thread process audio frames faster
Dwayne M. Hubbard [Fri, 16 Apr 2010 21:15:43 +0000 (21:15 +0000)] 
Make the mixmonitor thread process audio frames faster

Mantis issue 17078 reports MixMonitor recordings have shorter durations than
the call duration.  This was because the mixmonitor thread was not processing
frames from the audiohook fast enough.  The mixmonitor thread would slowly fall
behind the most recent audio frame and when the channel hangs up, the mixmonitor
thread would exit without processing the same number of frames as the channel;
leaving the mixmonitor recording shorter than actual call duration.

This revision fixes this issue by moving the ast_audiohook_trigger_wait() and
the subsequent audiohook.status check into the block where the
ast_audiohook_read_frame() function returns NULL.

(closes issue #17078)
Reported by: geoff2010
Patches:
      dw-M17078.patch uploaded by dhubbard (license 733)
Tested by: dhubbard, geoff2010

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

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

15 years agoAllow application options with arguments to contain parentheses, through a variety...
Tilghman Lesher [Thu, 15 Apr 2010 21:23:24 +0000 (21:23 +0000)] 
Allow application options with arguments to contain parentheses, through a variety of escaping techniques.

Fixes SWP-1194 (ABE-2143).

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

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

15 years agoDon't recreate peer, when responding to a repeated deregistration attempt.
Tilghman Lesher [Thu, 15 Apr 2010 20:24:50 +0000 (20:24 +0000)] 
Don't recreate peer, when responding to a repeated deregistration attempt.

When a reply to a deregistration is lost in transmit, the client retries the
deregistration.  Previously, this would cause a realtime/autocreate peer to be
loaded back into memory, after it had already been correctly purged.  Instead,
we just want to resend the reply without loading the peer.

(closes issue #16908)
 Reported by: kkm
 Patches:
       20100412__issue16908.diff.txt uploaded by tilghman (license 14)
 Tested by: kkm

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

15 years agoUpdate backtrace.txt documentation.
Leif Madsen [Thu, 15 Apr 2010 19:40:33 +0000 (19:40 +0000)] 
Update backtrace.txt documentation.

Update the backtrace.txt documentation so it conforms to the same layout as
other documents we've been working on recently. Additionally, add a bunch of
new information about gathering backtraces for crashes and deadlocks, along
with ways of verifying your file before uploading it. Create a couple of one
line commands for people to generate the files we need.

(closes issue #17190)
Reported by: lmadsen
Patches:
      backtrace.txt.patch-2 uploaded by lmadsen (license 10)
Tested by: lmadsen, pabelanger

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

15 years agoUpdate address of the bug tracker.
Leif Madsen [Thu, 15 Apr 2010 13:41:45 +0000 (13:41 +0000)] 
Update address of the bug tracker.

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

15 years agoWhen forwarding a message, ensure that prepending works correctly.
Tilghman Lesher [Wed, 14 Apr 2010 23:08:11 +0000 (23:08 +0000)] 
When forwarding a message, ensure that prepending works correctly.

This is a regression in 1.4, only.

(closes issue #17103)
 Reported by: mglazer
 Patches:
       20100408__issue17103.diff.txt uploaded by tilghman (license 14)
 Tested by: tilghman

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

15 years agoAdd an option to restore past broken behavor of the Events manager action
Matthew Nicholson [Tue, 13 Apr 2010 16:46:30 +0000 (16:46 +0000)] 
Add an option to restore past broken behavor of the Events manager action

Before r238915, certain values for the EventMask parameter of the Events action would result in no response being returned.  This patch adds an option to restore that broken behavior.  Also while fixing this bug I discovered that passing an empty EventMasks parameter would also result in no response being returned, this has been fixed as well while being preserved when the broken behavior is requested.

(closes issue #17023)
Reported by: nblasgen

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

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

15 years agoAdd How-To document on collecting debugging info for issues.asterisk.org
Leif Madsen [Mon, 12 Apr 2010 17:29:26 +0000 (17:29 +0000)] 
Add How-To document on collecting debugging info for issues.asterisk.org

Paul Belanger has been helping a lot with bug tracking recently and created
this document that we can now point to when additional debugging information
is required. This document will help those filing issues to know how to get
the information required when filing their issues. This will make things
easier on the developers.

Initial text and changes by pabelanger. Tweaks and editing by myself.

(closes issue #17159)
Reported by: pabelanger
Patches:
      HOWTO_collect_debug_information.txt.patch uploaded by lmadsen (license 10)
Tested by: tzafrir, pabelanger, lmadsen

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

15 years agoDAHDI/PRI call to pri_channel_bridge() not protected by PRI lock.
Richard Mudgett [Tue, 6 Apr 2010 00:10:16 +0000 (00:10 +0000)] 
DAHDI/PRI call to pri_channel_bridge() not protected by PRI lock.

SWP-1231
ABE-2163

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

15 years agoResolve a deadlock that occurs due to a pointless call to ast_bridged_channel()
Russell Bryant [Fri, 2 Apr 2010 23:45:56 +0000 (23:45 +0000)] 
Resolve a deadlock that occurs due to a pointless call to ast_bridged_channel()

(closes issue #16840)
Reported by: bzing2
Patches:
      patch.txt uploaded by bzing2 (license 902)
      issue_16840.rev1.diff uploaded by russell (license 2)
Tested by: bzing2, russell

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

15 years agoRemove extremely verbose debug message.
Russell Bryant [Fri, 2 Apr 2010 23:30:15 +0000 (23:30 +0000)] 
Remove extremely verbose debug message.

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

15 years agoEnsure line terminators in email are consistent.
Tilghman Lesher [Wed, 31 Mar 2010 19:09:46 +0000 (19:09 +0000)] 
Ensure line terminators in email are consistent.

Fixes an issue with certain Mail Transport Agents, where attachments are not
interpreted correctly.

(closes issue #16557)
 Reported by: jcovert
 Patches:
       20100308__issue16557__1.4.diff.txt uploaded by tilghman (license 14)
       20100308__issue16557__1.6.0.diff.txt uploaded by tilghman (license 14)
       20100308__issue16557__trunk.diff.txt uploaded by tilghman (license 14)
 Tested by: ebroad, zktech

Reviewboard: https://reviewboard.asterisk.org/r/544/

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

15 years agoAdd documentation clarifying when 't' and 'T' can be used.
Leif Madsen [Wed, 31 Mar 2010 17:42:58 +0000 (17:42 +0000)] 
Add documentation clarifying when 't' and 'T' can be used.

(closes issue #17021)
Reported by: kovzol
Tested by: lmadsen, kovzol, davidw, ebroad

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

15 years agoDon't kill Asterisk if the H323 listener does not start.
Russell Bryant [Tue, 30 Mar 2010 20:56:00 +0000 (20:56 +0000)] 
Don't kill Asterisk if the H323 listener does not start.

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

15 years agoDon't make Asterisk not start if pbx_dundi fails to initialize.
Russell Bryant [Tue, 30 Mar 2010 16:06:06 +0000 (16:06 +0000)] 
Don't make Asterisk not start if pbx_dundi fails to initialize.

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

15 years agoDon't remove local copies of utils in uninstall.
Jason Parker [Thu, 25 Mar 2010 20:41:15 +0000 (20:41 +0000)] 
Don't remove local copies of utils in uninstall.

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

15 years agoFix DEBUG_THREADS issue with out-of-tree modules.
Jason Parker [Thu, 25 Mar 2010 19:39:23 +0000 (19:39 +0000)] 
Fix DEBUG_THREADS issue with out-of-tree modules.

Take 2, without ABI breakage this time.

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

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

15 years agoUpdate Asterisk 1.4 to use menuselect trunk.
Russell Bryant [Thu, 25 Mar 2010 18:51:13 +0000 (18:51 +0000)] 
Update Asterisk 1.4 to use menuselect trunk.

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

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

15 years agoAdd doxygen for acl.h
Mark Michelson [Thu, 25 Mar 2010 17:33:35 +0000 (17:33 +0000)] 
Add doxygen for acl.h

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

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

15 years agoSeveral fixes regarding RFC2833 DTMF detection.
Mark Michelson [Thu, 25 Mar 2010 15:59:56 +0000 (15:59 +0000)] 
Several fixes regarding RFC2833 DTMF detection.

Here is a copy and paste of the details from my request on
reviewboard that dealt with these changes:

Fix 1. The first change in place is to fix Mantis issue 15811, which deals with a situation where Asterisk will incorrectly interpret out of order RFC2833 frames as duplicate DTMF digits. For instance, we would receive a sequence like:

seqno 1: DTMF 1
seqno 2: DTMF 1
seqno 3: DTMF 1
seqno 4: DTMF 1
seqno 6: DTMF 1 (end)
seqno 5: DTMF 1
seqno 7: DTMF 1 (end)
seqno 8: DTMF 1 (end)

Prior to this patch when we received the frame with seqno 5, we would interpret this as a new DTMF 1. With this patch, we will check the seqno of the incoming digit and not process the frame if the seqno is lower than the last recorded seqno. Note that we do not record the seqno of the dropped DTMF frame for future processing. While the above situation is what was designed to be fixed, the patch is written in such a way that the following would also be fixed too:

seqno  9: DTMF 1
seqno 10: DTMF 1 (end)
seqno 11: DTMF 1 (end)
seqno 13: DTMF 2
seqno 12: DTMF 1 (end)
seqno 14: DTMF 2
seqno 15: DTMF 2 (end)
seqno 16: DTMF 2 (end)
seqno 17: DTMF 2 (end)

In this second situation, the beginning of the DTMF 2 arrives before the final end frame of the DTMF 1. With the patch, seqno 12 is no processed and thus we properly interpret the DTMF.

Fix 2. The second change in place is to fix an issue like the following:

seqno 1: DTMF 1
seqno 2: DTMF 1
seqno 3: DTMF 1 (end) *packet lost*
seqno 4: DTMF 1 (end) *packet lost*
seqno 5: DTMF 1 (end) *packet lost*
seqno 6: DTMF 2

When we receive seqno 6, we had code in place that was supposed to properly end the previously unended DTMF 1. The problem was that the code was essentially a no-op. The code would set up an end frame for the DTMF 1 but would immediately overwrite the frame with the begin for DTMF 2. I changed process_dtmf_rfc2833() so that instead of returning a single frame, it is given as an output parameter a list of frames. Each frame that needs to be returned is appended to this list.

Fix 3. The final change is a minor one where an AST_CONTROL_SRCCHANGE frame could get lost. If we process a cisco DTMF or an RFC 3389 frame and no frame was returned, then we would return &ast_null_frame. The problem is that earlier in the function, we may have generated an AST_CONTROL_SRCCHANGE frame and put it in the list of frames we wish to return. This frame would be lost in such a case. The patch fixes this problem

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

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

15 years agoHandle new SRCCHANGE control message here too
Terry Wilson [Thu, 25 Mar 2010 15:57:29 +0000 (15:57 +0000)] 
Handle new SRCCHANGE control message here too

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

15 years agoEnsure that monitor recordings are written to the correct location (again)
Jeff Peeler [Wed, 24 Mar 2010 00:37:23 +0000 (00:37 +0000)] 
Ensure that monitor recordings are written to the correct location (again)

This is an extension to 248860. As such the dialplan test has been extended:

; non absolute path, not combined
exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test)
exten => 5040, n, dial(sip/5001)
; absolute path, not combined
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2)
exten => 5041, n, dial(sip/5001)
; no path, not combined
exten => 5042, 1, monitor(wav,monitor_test3)
exten => 5042, n, dial(sip/5001)
; combined: changemonitor from non absolute to no path (leaves tmp/jeff)
exten => 5043, 1, monitor(wav,tmp/jeff/monitor_test4,m)
exten => 5043, n, changemonitor(monitor_test5)
exten => 5043, n, dial(sip/5001)
; combined: changemonitor from no path to non absolute path
exten => 5044, 1, monitor(wav,monitor_test6,m)
exten => 5044, n, changemonitor(tmp/jeff/monitor_test7) ; this wasn't possible before
exten => 5044, n, dial(sip/5001)
; non absolute path, combined
exten => 5045, 1, monitor(wav,tmp/jeff/monitor_test8,m)
exten => 5045, n, dial(sip/5001)
; absolute path, combined
exten => 5046, 1, monitor(wav,/tmp/jeff/monitor_test9,m)
exten => 5046, n, dial(sip/5001)
; no path, combined
exten => 5047, 1, monitor(wav,monitor_test10,m)
exten => 5047, n, dial(sip/5001)
; combined: changemonitor from non absolute to absolute (leaves tmp/jeff)
exten => 5048, 1, monitor(wav,tmp/jeff/monitor_test11,m)
exten => 5048, n, changemonitor(/tmp/jeff/monitor_test12)
exten => 5048, n, dial(sip/5001)
; combined: changemonitor from absolute to non absolute (leaves /tmp/jeff)
exten => 5049, 1, monitor(wav,/tmp/jeff/monitor_test13,m)
exten => 5049, n, changemonitor(tmp/jeff/monitor_test14)
exten => 5049, n, dial(sip/5001)
; combined: changemonitor from no path to absolute
exten => 5050, 1, monitor(wav,monitor_test15,m)
exten => 5050, n, changemonitor(/tmp/jeff/monitor_test16)
exten => 5050, n, dial(sip/5001)
; combined: changemonitor from absolute to no path (leaves /tmp/jeff)
exten => 5051, 1, monitor(wav,/tmp/jeff/monitor_test17,m)
exten => 5051, n, changemonitor(monitor_test18)
exten => 5051, n, dial(sip/5001)
; not combined: changemonitor from non absolute to no path (leaves tmp/jeff)
exten => 5052, 1, monitor(wav,tmp/jeff/monitor_test19)
exten => 5052, n, changemonitor(monitor_test20)
exten => 5052, n, dial(sip/5001)
; not combined: changemonitor from no path to non absolute
exten => 5053, 1, monitor(wav,monitor_test21)
exten => 5053, n, changemonitor(tmp/jeff/monitor_test22)
exten => 5053, n, dial(sip/5001)
; not combined: changemonitor from non absolute to absolute (leaves tmp/jeff)
exten => 5054, 1, monitor(wav,tmp/jeff/monitor_test23)
exten => 5054, n, changemonitor(/tmp/jeff/monitor_test24)
exten => 5054, n, dial(sip/5001)
; not combined: changemonitor from absolute to non absolute (leaves /tmp/jeff)
exten => 5055, 1, monitor(wav,/tmp/jeff/monitor_test24)
exten => 5055, n, changemonitor(tmp/jeff/monitor_test25)
exten => 5055, n, dial(sip/5001)
; not combined: changemonitor from no path to absolute
exten => 5056, 1, monitor(wav,monitor_test26)
exten => 5056, n, changemonitor(/tmp/jeff/monitor_test27)
exten => 5056, n, dial(sip/5001)
; not combined: changemonitor from absolute to no path (leaves /tmp/jeff)
exten => 5057, 1, monitor(wav,/tmp/jeff/monitor_test28)
exten => 5057, n, changemonitor(monitor_test29)
exten => 5057, n, dial(sip/5001)

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

15 years agoRevert revisions 254046 and 254098.
Jason Parker [Tue, 23 Mar 2010 22:45:55 +0000 (22:45 +0000)] 
Revert revisions 254046 and 254098.

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

15 years agoAdd note about the out-of-tree module ABI changes.
Jason Parker [Tue, 23 Mar 2010 21:27:04 +0000 (21:27 +0000)] 
Add note about the out-of-tree module ABI changes.

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

15 years agoAllow out-of-tree modules to load, regardless of DEBUG_THREADS/DEBUG_CHANNEL_LOCKS...
Jason Parker [Tue, 23 Mar 2010 21:07:54 +0000 (21:07 +0000)] 
Allow out-of-tree modules to load, regardless of DEBUG_THREADS/DEBUG_CHANNEL_LOCKS differences.

This can be guaranteed by forcing the ABI to no longer change when these compiler flags are set.
An unfortunate side-effect to this is that there is an ABI change here.  However, there is some
mitigation.  Existing modules *will* fail to load since they would require functions that no
longer exist.

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

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

15 years agoUnconditionally copy the caller's account code to the called party.
Matthew Nicholson [Mon, 22 Mar 2010 19:50:00 +0000 (19:50 +0000)] 
Unconditionally copy the caller's account code to the called party.

(related to issue #16331)

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

15 years agoFix final link on FreeBSD by adding the PTHREAD_CFLAGS.
Russell Bryant [Sun, 21 Mar 2010 14:26:43 +0000 (14:26 +0000)] 
Fix final link on FreeBSD by adding the PTHREAD_CFLAGS.

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

15 years agoResolve a number of FreeBSD build issues.
Russell Bryant [Sat, 20 Mar 2010 19:17:28 +0000 (19:17 +0000)] 
Resolve a number of FreeBSD build issues.

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

15 years agoTypo found while fixing issue #16961.
Leif Madsen [Thu, 18 Mar 2010 17:57:31 +0000 (17:57 +0000)] 
Typo found while fixing issue #16961.

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

15 years agoSynchronize text in localchannels.txt and localchannels.tex.
Leif Madsen [Thu, 18 Mar 2010 15:56:31 +0000 (15:56 +0000)] 
Synchronize text in localchannels.txt and localchannels.tex.

(issue #16963)

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

15 years agoUpdate new Local channel documentation.
Leif Madsen [Thu, 18 Mar 2010 15:24:13 +0000 (15:24 +0000)] 
Update new Local channel documentation.

The original reporter, Kobaz, of an issue with a Local channel that inspired the
Local channel documentation provided some tweaks to the documentation after testing
what I had written. Hopefully anything that was vague or unclear has been cleaned
up by these changes.

(closes issue #16963)
Reported by: kobaz
Patches:
      localchannel-2.txt uploaded by kobaz (license 834)
Tested by: kobaz, lmadsen

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

15 years agoRevert API change in release branches
Terry Wilson [Wed, 17 Mar 2010 16:25:52 +0000 (16:25 +0000)] 
Revert API change in release branches

This re-renames ast_rtp_update_source to ast_rtp_new_source

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

15 years agoAdd french snipset to say.conf.
Leif Madsen [Wed, 17 Mar 2010 00:26:19 +0000 (00:26 +0000)] 
Add french snipset to say.conf.

Add the french snipset to say.conf.

(Closes issue #15799)

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

15 years agoBackport chan_sip build fix for Mac OSX 10.6 from trunk.
Russell Bryant [Tue, 16 Mar 2010 20:52:09 +0000 (20:52 +0000)] 
Backport chan_sip build fix for Mac OSX 10.6 from trunk.

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

15 years agoUse uname -s, as done in trunk.
Russell Bryant [Tue, 16 Mar 2010 20:47:15 +0000 (20:47 +0000)] 
Use uname -s, as done in trunk.

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

15 years agoApply codec_gsm Mac OS X 10.6 build fix that is in trunk and 1.6.X.
Russell Bryant [Tue, 16 Mar 2010 20:13:45 +0000 (20:13 +0000)] 
Apply codec_gsm Mac OS X 10.6 build fix that is in trunk and 1.6.X.

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

15 years agoDon't treat warnings as errors for muted.
Russell Bryant [Tue, 16 Mar 2010 19:00:43 +0000 (19:00 +0000)] 
Don't treat warnings as errors for muted.

muted supports OS X, but uses functions marked as deprecated in 10.6.  However,
the functions are still supported, so just ignore the warnings for now and
allow the build to proceed.

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

15 years agoAdditional extensions.ael global variable fixes.
Leif Madsen [Tue, 16 Mar 2010 18:46:20 +0000 (18:46 +0000)] 
Additional extensions.ael global variable fixes.

Fixing up a couple more overlapping global variable namespaces shared with
extensions.conf.sample. Also noticed a few of the lines that were commented
out didn't have the closing semi-colon so I added that as well.

(issue #17035)

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

15 years agoUh, yeah. Umask. I'm stupid.
Tilghman Lesher [Mon, 15 Mar 2010 21:43:14 +0000 (21:43 +0000)] 
Uh, yeah.  Umask.  I'm stupid.

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

15 years agoUpdate extensions.ael file to not overlap extensions.conf.
Leif Madsen [Mon, 15 Mar 2010 20:48:56 +0000 (20:48 +0000)] 
Update extensions.ael file to not overlap extensions.conf.
Updated the extensions.ael file so the global variables don't overlap
those that we have in extensions.conf (sample files). This way unexpected
things won't happed hopefully if both pbx_ael and res_config are loaded.

(closes issue #17035)
Reported by: pprindeville

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

15 years agoRevert last commit that had bad changed to configure.
Leif Madsen [Mon, 15 Mar 2010 20:46:47 +0000 (20:46 +0000)] 
Revert last commit that had bad changed to configure.

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

15 years agoUpdate extensions.ael file to not overlap extensions.conf.
Leif Madsen [Mon, 15 Mar 2010 20:46:06 +0000 (20:46 +0000)] 
Update extensions.ael file to not overlap extensions.conf.
Updated the extensions.ael file so the global variables don't overlap
those that we have in extensions.conf (sample files). This way unexpected
things won't happed hopefully if both pbx_ael and res_config are loaded.

(closes issue #17035)
Reported by: pprindeville

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

15 years agoTypo
Tilghman Lesher [Mon, 15 Mar 2010 01:39:00 +0000 (01:39 +0000)] 
Typo

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

15 years agoLaunch Asterisk on Mac OS X with launchd.
Tilghman Lesher [Mon, 15 Mar 2010 01:33:50 +0000 (01:33 +0000)] 
Launch Asterisk on Mac OS X with launchd.

Reviewboard: https://reviewboard.asterisk.org/r/551/

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

15 years agoMerged revisions 252089 via svnmerge from
Terry Wilson [Sat, 13 Mar 2010 00:30:04 +0000 (00:30 +0000)] 
Merged revisions 252089 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
  r252089 | twilson | 2010-03-12 16:04:51 -0600 (Fri, 12 Mar 2010) | 20 lines

  Only change the RTP ssrc when we see that it has changed

  This change basically reverts the change reviewed in
  https://reviewboard.asterisk.org/r/374/ and instead limits the
  updating of the RTP synchronization source to only those times when we
  detect that the other side of the conversation has changed the ssrc.

  The problem is that SRCUPDATE control frames are sent many times where
  we don't want a new ssrc, including whenever Asterisk has to send DTMF
  in a normal bridge. This is also not the first time that this mistake
  has been made. The initial implementation of the ast_rtp_new_source
  function also changed the ssrc--and then it was removed because of
  this same issue. Then, we put it back in again to fix a different
  issue. This patch attempts to only change the ssrc when we see that
  the other side of the conversation has changed the ssrc.

  It also renames some functions to make their purpose more clear.

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

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

15 years agoForward declaring dahdi_pri was already done.
Richard Mudgett [Fri, 12 Mar 2010 19:58:28 +0000 (19:58 +0000)] 
Forward declaring dahdi_pri was already done.

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

15 years agoMake chan_dahdi wakeup_sub() prototype not conditional.
Richard Mudgett [Fri, 12 Mar 2010 19:33:22 +0000 (19:33 +0000)] 
Make chan_dahdi wakeup_sub() prototype not conditional.

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

15 years agoUse ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce
Sean Bright [Tue, 9 Mar 2010 19:29:39 +0000 (19:29 +0000)] 
Use ast_strlen_zero to avoid a crash when a Dial() string isn't passed to ParkAndAnnounce

(closes issue #16731)
Reported by: sebele67
Patches:
      issue16731_20100129.diff uploaded by seanbright (license 71)
Tested by: sebele67

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

15 years agoFix Debian init script to not use -c.
Leif Madsen [Mon, 8 Mar 2010 18:07:44 +0000 (18:07 +0000)] 
Fix Debian init script to not use -c.
When using the init script as-is currently, it could cause issues on Debian
such as high CPU usage. This fix has worked for several people so I'm
implementing the change.

(closes issue #16784)
Reported by: pabelanger
Tested by: pabelanger, mnick, davidw, mutineer612

(closes issue #16887)
Reported by: jlpedrosa
Tested by: jlpedrosa, mutineer612

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

15 years agoFix not being able to specify a URL in MOH class directory.
Jeff Peeler [Fri, 5 Mar 2010 01:02:58 +0000 (01:02 +0000)] 
Fix not being able to specify a URL in MOH class directory.

Don't attempt to chdir on a URL!

(closes issue #16875)
Reported by: raarts
Patches:
      moh-http.patch uploaded by raarts (license 937)

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

15 years agoUpdate existing Local channel documentation.
Leif Madsen [Wed, 3 Mar 2010 21:28:02 +0000 (21:28 +0000)] 
Update existing Local channel documentation.

A complete re-write of the Local channel documentation has been performed, with
the existing information from localchannel.txt and localchannel.tex merged in.

(issue #16637)
Reported by: kobaz
Patches:
      localchannel.tex uploaded by lmadsen (license 10)
      localchannel.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, jsmith, mmichelson

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

15 years agoMake sure to clear red alarm after polarity reversal.
Jeff Peeler [Wed, 3 Mar 2010 19:04:11 +0000 (19:04 +0000)] 
Make sure to clear red alarm after polarity reversal.

From the issue:
The automatic overnight line tests (or manual ones) used on UK (BT) lines causes
a red alarm on a dahdi / TDM400P connected channel. This is because the line
uses voltage tests (battery loss) and polarity reversal. The polarity reversal
causes chan_dahdi to initiate v23 CallerID processing but during this the event
DAHDI_EVENT_NOALARM is ignored so that the alarm is never cleared.

(closes issue #14163)
Reported by: jedi98
Patches:
      chan_dahdi-1.4-inalarm.diff uploaded by jedi98 (license 653)
Tested by: mattbrown, Chainsaw, mikeeccleston

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

15 years agofixes problem with duplicate TXREQ packets
David Vossel [Wed, 3 Mar 2010 18:02:27 +0000 (18:02 +0000)] 
fixes problem with duplicate TXREQ packets

When Asterisk receives an IAX2 TXREQ packet, try_transfer()
will call store_by_transfercallno() to link the chan_iax2_pvt
struct into iax_transfercallno_pvts. If a duplicate TXREQ
packet is received for the same call, the pvt struct will be
linked into iax_transfercallno_pvts multiple times.  This patch
fixes this.  Thanks rain for debugging this and providing a patch!

(closes issue #16904)
Reported by: rain
Patches:
      iax2-double-txreq-fix.diff uploaded by rain (license 327)
Tested by: rain, dvossel

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

15 years agoUpdate IMAP documentation.
Leif Madsen [Tue, 2 Mar 2010 21:08:09 +0000 (21:08 +0000)] 
Update IMAP documentation.
Update the IMAP documentation to make it clear that storing voicemails
in the same folder as a large number of emails could potentially cause
significant slow downs when writing or retrieving voicemails.

(closes issue #16704)
Reported by: TimeHider
Tested by: lmadsen, TimeHider

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

15 years agoUpdate documentation to clarify purpose of unanswered option.
Leif Madsen [Tue, 2 Mar 2010 20:51:35 +0000 (20:51 +0000)] 
Update documentation to clarify purpose of unanswered option.

(closes issue #16267)
Reported by: elsto
Patches:
      cdr.conf.sample.patch.txt uploaded by lmadsen (license 10)
Tested by: davidw, elsto

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

15 years agoUpdate documentation to not imply we support overriding options.
Leif Madsen [Tue, 2 Mar 2010 20:45:37 +0000 (20:45 +0000)] 
Update documentation to not imply we support overriding options.

(issue #16855)
Reported by: davidw

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

15 years agorevert ability to exit echo app
Alec L Davis [Tue, 2 Mar 2010 19:36:20 +0000 (19:36 +0000)] 
revert ability to exit echo app

caused a regression, as only supported VOICE, not VIDEO etc.
Left in small formatting change.

(issue #16880)

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

15 years agofixes ability to exit echo app
Alec L Davis [Tue, 2 Mar 2010 09:11:56 +0000 (09:11 +0000)] 
fixes ability to exit echo app

when called from a ISDN channel, null frames prevent '#' exit.
Now only echo back VOICE and DTMF frames

(issue #16880)
Reported by: alecdavis
Patches:
      based on echo_exit_1-6-1.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoFix crash in app_voicemail related to message counting.
Sean Bright [Mon, 1 Mar 2010 19:35:01 +0000 (19:35 +0000)] 
Fix crash in app_voicemail related to message counting.

We were passing a 'struct inprocess **' and treating it like a 'struct inprocess *'
causing a segfault.

(closes issue #16921)
Reported by: whardier
Patches:
      20100301_issue16921.patch uploaded by seanbright (license 71)
Tested by: whardier

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

15 years agoModify queued frames from local channels to not set the other side to up
Jeff Peeler [Mon, 1 Mar 2010 17:02:03 +0000 (17:02 +0000)] 
Modify queued frames from local channels to not set the other side to up

In this case, attended transfers were broken due to ast_feature_request_and_dial
detecting the channel being set to up before the answer frame could be read and
therefore failing to mark the channel as ready. This fix is a regression fix for
244785, which should continue to work properly as well.

(closes issue #16816)
Reported by: jamhed
Tested by: jamhed, corruptor

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

15 years agooverlap receiving: automatically send CALL PROCEEDING when dialplan starts
Alec L Davis [Sat, 27 Feb 2010 23:51:28 +0000 (23:51 +0000)] 
overlap receiving: automatically send CALL PROCEEDING when dialplan starts

Following Q.931 5.2.4
When the user has determined that sufficient call information has been received the
user shall stop T302 and send CALL PROCEEDING to the network.

Previously timeouts were possible if the dialplan took a long time to issue any
response back to the network.

Verified that our local TELCO also does the same.

(issue #16789)
Reported by: alecdavis
Patches:
      based on overlap_receiving_trunk.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

(closes issue #16789)

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

15 years agoadd a reference to the now-published IAX2 RFC
Kevin P. Fleming [Sat, 27 Feb 2010 14:07:59 +0000 (14:07 +0000)] 
add a reference to the now-published IAX2 RFC

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

15 years agoFor T.38 reINVITEs treat a 606 the same as a 488.
Mark Michelson [Fri, 26 Feb 2010 17:04:29 +0000 (17:04 +0000)] 
For T.38 reINVITEs treat a 606 the same as a 488.

(closes issue #16792)
Reported by: vrban
Patches:
      t38_606.patch uploaded by vrban (license 756)

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

15 years agoEnsure that monitor recordings are written to the correct location (again)
Jeff Peeler [Thu, 25 Feb 2010 21:22:06 +0000 (21:22 +0000)] 
Ensure that monitor recordings are written to the correct location (again)

This is an extension to 248757. As such the dialplan test has been extended:

exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test,b)
exten => 5040, n, dial(sip/5001)
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2,b)
exten => 5041, n, dial(sip/5001)
exten => 5042, 1, monitor(wav,monitor_test3,b)
exten => 5042, n, dial(sip/5001)
exten => 5043, 1, monitor(wav,tmp/jeff/monitor_test3,m)
exten => 5043, n, changemonitor(monitor_test4)
exten => 5043, n, dial(sip/5001)
exten => 5044, 1, monitor(wav,monitor_test4,m)
exten => 5044, n, changemonitor(tmp/jeff/monitor_test5) ; this looks to fail by design and emits a warning
exten => 5044, n, dial(sip/5001)

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

15 years agoSome platforms clear /var/run at boot, which makes connecting a remote console.....
Tilghman Lesher [Thu, 25 Feb 2010 21:21:05 +0000 (21:21 +0000)] 
Some platforms clear /var/run at boot, which makes connecting a remote console... difficult.

Previously, we only created the default /var/run/asterisk directory at install
time.  While we could create it in the init script, that would not work for
those who start asterisk manually from the command line.  So the safest thing
to do is to create it as part of the Asterisk boot process.  This also changes
the ownership of the directory, because the pid and ctl files are created after
we setuid/setgid.

(closes issue #16802)
 Reported by: Brian
 Patches:
       20100224__issue16802.diff.txt uploaded by tilghman (license 14)
 Tested by: tzafrir

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

15 years agoEnsure that monitor recordings are written to the correct location.
Jeff Peeler [Thu, 25 Feb 2010 18:06:54 +0000 (18:06 +0000)] 
Ensure that monitor recordings are written to the correct location.

Recordings should be placed in the monitor directory when a non-absolute path
is used.

Exact dialplan used for testing:
exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test,b)
exten => 5040, n, dial(sip/5001)
exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2,b)
exten => 5041, n, dial(sip/5001)
exten => 5042, 1, monitor(wav,monitor_test3,b)
exten => 5042, n, dial(sip/5001)

ABE-2101

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

15 years agoMake deletion of temporary greetings work properly with IMAP_STORAGE
Jeff Peeler [Wed, 24 Feb 2010 22:58:54 +0000 (22:58 +0000)] 
Make deletion of temporary greetings work properly with IMAP_STORAGE

This same patch was merged in 220833, but was skipped in this branch
erroneously.

(closes issue #16170)
Reported by: francesco_r

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

15 years agoRemove color code sequences from verbose messages that go to logfiles.
Tilghman Lesher [Wed, 24 Feb 2010 21:02:18 +0000 (21:02 +0000)] 
Remove color code sequences from verbose messages that go to logfiles.
(closes issue #16786)
 Reported by: dodo
 Patches:
       logger2.patch uploaded by dodo (license 989)
 Tested by: tilghman

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

15 years agofixes invite with replaces deadlock
David Vossel [Tue, 23 Feb 2010 16:26:05 +0000 (16:26 +0000)] 
fixes invite with replaces deadlock

(closes issue #16862)
Reported by: pwalker
Patches:
      replaces_deadlock_1.4 uploaded by dvossel (license 671)
Tested by: pwalker, dvossel

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

15 years agoDon't log to debug unless debug is turned on
Olle Johansson [Mon, 22 Feb 2010 13:52:34 +0000 (13:52 +0000)] 
Don't log to debug unless debug is turned on

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

15 years agoMake sure we support RTCP compound messages with zero reports
Olle Johansson [Sat, 20 Feb 2010 22:25:42 +0000 (22:25 +0000)] 
Make sure we support RTCP compound messages with zero reports

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

15 years agoBackport crash fix from trunk to 1.4, whereby 'core show gracefully' could crash...
Tilghman Lesher [Fri, 19 Feb 2010 19:11:45 +0000 (19:11 +0000)] 
Backport crash fix from trunk to 1.4, whereby 'core show gracefully' could crash Asterisk.

(closes issue #16470)
 Reported by: kjotte

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

15 years agoMerged revision 247904 from
Richard Mudgett [Fri, 19 Feb 2010 17:18:49 +0000 (17:18 +0000)] 
Merged revision 247904 from
https://origsvn.digium.com/svn/asterisk/be/branches/C.2-...

..........
r247904 | rmudgett | 2010-02-19 10:49:44 -0600 (Fri, 19 Feb 2010) | 49 lines

Make chan_misdn DTMF processing consistent with other channel technologies.

The processing of DTMF tones on the receiving side of an ISDN channel is
inconsistent with the way it is handled in other channels, especially
DAHDI analog.  This causes DTMF tones sent from an ISDN phone to be
doubled at the connected party.

We are using the following 2 options of misdn.conf
1) astdtmf=yes
2) senddtmf=yes

Option one is necessary because the asterisk DSP DTMF detection is better
than mISDN's internal DSP.  Not as many false positives.

Option two is necessary to transmit DTMF tones end to end when mISDN
channels are connected to SIP channels with out of band DTMF for example.

The symptom is that DTMF tones sent by an ISDN phone are doubled on the
way through asterisk when two mISDN channels are connected with a Local
channel in between or if it is bridged to an analog channel.

The doubling of DTMF tones is because DTMF is passed inband to asterisk by
the mISDN channel and passed out of band once again after the release of
the DTMF tone.  Passing it inband is wrong.  Neither an analog channel nor
SIP channel passes DTMF inband if configured to inband DTMF.  Analog and
SIP channels filter out the DTMF tones because they use the voice frames
returned by ast_dsp_process.  But chan_misdn passes the unfiltered input
voice frames instead.

To overcome one aspect of the problem, the doubling of DTMF tones when two
mISDN channels are directly bridged, someone made an 'optimization', where
in that case the DTMF tone passed out-of-band to the peer channel is not
translated to an inband tone at the transmit side.  This optimization is
bad because it does not work in general.  For example, analog channels or
mISDN channels when bridged through an intermediary local channel will
generate DTMF tones from out-of-band information.  Also, of course, it
must not be done when there is no inband DTMF available.

This patch fixes the issue.  Now chan_misdn will filter the received
inband DTMF signal the same as other channel types.

Another change included: No need to build an extra translation path
because ast_process_dsp does it if required.

Patches:
misdn-dtmf.patch

JIRA ABE-2080

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

15 years agoCopy the calling party's account code to the called party if they don't already have...
Matthew Nicholson [Thu, 18 Feb 2010 19:38:09 +0000 (19:38 +0000)] 
Copy the calling party's account code to the called party if they don't already have one.

(closes issue #16331)
Reported by: bluefox
Tested by: mnicholson

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

15 years agoAdd additional link to best practices document per jsmith.
Leif Madsen [Thu, 18 Feb 2010 16:53:44 +0000 (16:53 +0000)] 
Add additional link to best practices document per jsmith.

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

15 years agoAdd best practices documentation.
Leif Madsen [Thu, 18 Feb 2010 16:38:17 +0000 (16:38 +0000)] 
Add best practices documentation.

(issue #16808)
Reported by: lmadsen

(issue #16810)
Reported by: Nick_Lewis
Tested by: lmadsen

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

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

15 years agoTweak argument handling for wget in the sounds Makefile.
Russell Bryant [Thu, 18 Feb 2010 04:19:01 +0000 (04:19 +0000)] 
Tweak argument handling for wget in the sounds Makefile.

1) Fix the check to see if we are using wget to not be full of fail.  The
configure script populates this variable with the absolute path to wget if
it is found, so it didn't work.

2) Allow some extra arguments to be passed in for wget.  This is just a simple
change to allow our Bamboo build script to tell wget to be quiet and not fill
up our logs with download status output.

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

15 years agoMake sure that when autofill is disabled that callers not in the front of the queue...
Mark Michelson [Wed, 17 Feb 2010 16:24:17 +0000 (16:24 +0000)] 
Make sure that when autofill is disabled that callers not in the front of the queue cannot place calls.

(closes issue #16834)
Reported by: kebl0155
Patches:
      app_queue_no_autofill.v1.patch uploaded by kebl0155 (license 356)

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

15 years agoMake the menuselect instructions correct by allowing 'make menuselect' to actually...
Tilghman Lesher [Mon, 15 Feb 2010 23:42:33 +0000 (23:42 +0000)] 
Make the menuselect instructions correct by allowing 'make menuselect' to actually solve dependency problems.

(Previously, it would fail out again with the same message about running
'make menuselect', which was NOT at all helpful.)

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

15 years agolock channel during datastore removal
David Vossel [Fri, 12 Feb 2010 23:30:17 +0000 (23:30 +0000)] 
lock channel during datastore removal

On channel destruction the channel's datastores are removed and
destroyed.  Since there are public API calls to find and remove
datastores on a channel, a lock should be held whenever datastores are
removed and destroyed.  This resolves a crash caused by a race
condition in app_chanspy.c.

(closes issue #16678)
Reported by: tim_ringenbach
Patches:
      datastore_destroy_race.diff uploaded by tim ringenbach (license 540)
Tested by: dvossel

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

15 years agoFix some silly formatting, and remove unnecessary option_debug checks
Jason Parker [Fri, 12 Feb 2010 18:52:28 +0000 (18:52 +0000)] 
Fix some silly formatting, and remove unnecessary option_debug checks

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

15 years agofixes random deadlock in app_queue with use_weight during reload
David Vossel [Wed, 10 Feb 2010 17:44:20 +0000 (17:44 +0000)] 
fixes random deadlock in app_queue with use_weight during reload

(closes issue #16677)
Reported by: tim_ringenbach
Patches:
      app_queue_use_weight_deadlock.diff uploaded by tim ringenbach (license 540)

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

15 years agoInclude examples of FILTER usage in extension patterns where a "." may be a risk.
Tilghman Lesher [Wed, 10 Feb 2010 13:37:13 +0000 (13:37 +0000)] 
Include examples of FILTER usage in extension patterns where a "." may be a risk.

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

15 years agoMake sure that res_smdi loads regardless of configuration, since chan_dahdi depends...
Olle Johansson [Wed, 10 Feb 2010 08:24:34 +0000 (08:24 +0000)] 
Make sure that res_smdi loads regardless of configuration, since chan_dahdi depends on res_smdi

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

15 years agoFixes iaxs and iaxsl size off by one issue.
David Vossel [Tue, 9 Feb 2010 22:55:38 +0000 (22:55 +0000)] 
Fixes iaxs and iaxsl size off by one issue.

2^15 = 32768 which is the maximum allowed iax2 callnumber.
Creating the iaxs and iaxsl array of size 32768 means the maximum
callnumber is actually out of bounds.  This causes a nasty crash.

(closes issue #15997)
Reported by: exarv
Patches:
      iax_fix.diff uploaded by dvossel (license 671)

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

15 years agoRemove reference of documentation in source directory.
Jason Parker [Mon, 8 Feb 2010 20:39:50 +0000 (20:39 +0000)] 
Remove reference of documentation in source directory.

People don't always build Asterisk from source (distro packages, anybody?).

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

15 years agoRes_features depends on res_adsi in 1.4
Olle Johansson [Mon, 8 Feb 2010 11:57:52 +0000 (11:57 +0000)] 
Res_features depends on res_adsi in 1.4

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

15 years agoRemove contrib/firmware directory as it is empty
Kevin P. Fleming [Fri, 5 Feb 2010 18:32:29 +0000 (18:32 +0000)] 
Remove contrib/firmware directory as it is empty

Remove explicit license for IAXy firmware as it is no longer included in the tree

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

15 years agoUpdate main copyright date.
Sean Bright [Fri, 5 Feb 2010 17:03:35 +0000 (17:03 +0000)] 
Update main copyright date.

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

15 years agoChange channel state on local channels for busy,answer,ring.
Jeff Peeler [Thu, 4 Feb 2010 23:20:21 +0000 (23:20 +0000)] 
Change channel state on local channels for busy,answer,ring.

Previously local channels channel state never changed. This became problematic
when the state of the other side of the local channel was lost, for example
during a masquerade. Changing the state of the local channel allows for the
scenario to be detected when the channel state is set to ringing, but the peer
isn't ringing. The specific problem scenario is described in 164201. Although
this was noted on one of the issues, here is the tested dialplan verified to
work:

exten => 9700,1,Dial(Local/*9700@default&Local/#9700@default)

exten => *9700,1,Set(GLOBAL(TESTCHAN)=${CHANNEL:0:${MATH(${LEN(${CHANNEL})}-1):0:2}}1)
exten => *9700,n,wait(3) ;3 works, 1 did not
exten => *9700,n,Dial(SIP/5001)

exten => #9700,1,Wait(1) ;1 works, 3 did not
exten => #9700,n,ChannelRedirect(${TESTCHAN},parkedcalls,701,1)

(closes issue #14992)
Reported by: davidw

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

15 years agoBackup and restore original textfile, for prosthesis (gerund of prepend).
Tilghman Lesher [Mon, 1 Feb 2010 23:13:44 +0000 (23:13 +0000)] 
Backup and restore original textfile, for prosthesis (gerund of prepend).

Also, fix menuselect such that changing voicemail build options correctly
causes rebuild.

(closes issue #16415)
 Reported by: tomo1657
 Patches:
       prepention.patch uploaded by tomo1657 (license 484)
       (with modifications by me to backport to 1.4)

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