]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoUse the versioned MOH tarballs, now that we have them.
Jason Parker [Thu, 6 May 2010 16:56:02 +0000 (16:56 +0000)] 
Use the versioned MOH tarballs, now that we have them.

This makes for more reproducibility.  Prompted by a discussion in #asterisk-dev

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

15 years agoRegistration fix for SIP realtime.
Paul Belanger [Wed, 5 May 2010 16:42:22 +0000 (16:42 +0000)] 
Registration fix for SIP realtime.

Make sure realtime fields are not empty.

(closes issue #17266)
Reported by: Nick_Lewis
Patches:
      chan_sip.c-realtime.patch uploaded by Nick Lewis (license 657)
Tested by: Nick_Lewis, sberney

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

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

15 years agoAdd a tiny corner case to the previous commit
Tilghman Lesher [Tue, 4 May 2010 23:47:08 +0000 (23:47 +0000)] 
Add a tiny corner case to the previous commit

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

15 years agoProtect against overflow, when calculating how long to wait for a frame.
Tilghman Lesher [Tue, 4 May 2010 23:36:53 +0000 (23:36 +0000)] 
Protect against overflow, when calculating how long to wait for a frame.

(closes issue #17128)
 Reported by: under
 Patches:
       d.diff uploaded by under (license 914)

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

15 years agoVoicemail transfer to operator should occur immediately, not after main menu.
Jeff Peeler [Tue, 4 May 2010 18:46:46 +0000 (18:46 +0000)] 
Voicemail transfer to operator should occur immediately, not after main menu.

There were two scenarios in the advanced options that while using the
operator=yes and review=yes options, the transfer occurred only after exiting
the main menu (after sending a reply or leaving a message for an extension).
Now after the audio is processed for the reply or message the transfer occurs
immediately as expected.

ABE-2107
ABE-2108

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

15 years agoFix FILTER() examples to work in 1.4
Tim Ringenbach [Tue, 4 May 2010 17:40:59 +0000 (17:40 +0000)] 
Fix FILTER() examples to work in 1.4

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

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

15 years agoFix fallout from removing from configure script. Pointed out by philipp64 on #aster...
Jason Parker [Tue, 4 May 2010 15:49:27 +0000 (15:49 +0000)] 
Fix fallout from removing  from configure script.  Pointed out by philipp64 on #asterisk-dev

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

15 years agoShould have removed /usr/lib/ part. Thanks Qwell.
Paul Belanger [Mon, 3 May 2010 16:54:41 +0000 (16:54 +0000)] 
Should have removed /usr/lib/ part. Thanks Qwell.

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

15 years agonon-root make install PREFIX=/tmp fails.
Paul Belanger [Mon, 3 May 2010 16:41:30 +0000 (16:41 +0000)] 
non-root make install PREFIX=/tmp fails.
Prepend libdir when executing mkpkgconfig allowing non-root installs to work.

(closes issue #17268)
Reported by: pabelanger
Patches:
      issue17268.patch uploaded by pabelanger (license 224)
Tested by: pabelanger

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

15 years agoMinor typo pointed out by pabelanger on IRC.
Leif Madsen [Mon, 3 May 2010 14:57:39 +0000 (14:57 +0000)] 
Minor typo pointed out by pabelanger on IRC.

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

15 years agoEnsure channel state is not incorrectly set in the case of a very early answer.
Jeff Peeler [Fri, 30 Apr 2010 22:22:46 +0000 (22:22 +0000)] 
Ensure channel state is not incorrectly set in the case of a very early answer.

The needringing bit was being read in dahdi_read after answering thereby
setting the state to ringing from up. This clears needringing upon answering
so that is no longer possible.

(closes issue #17067)
Reported by: tzafrir
Patches:
      needringing.diff uploaded by tzafrir (license 46)

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

15 years agoFix potential crash from race condition due to accessing channel data without the...
Mark Michelson [Fri, 30 Apr 2010 20:08:15 +0000 (20:08 +0000)] 
Fix potential crash from race condition due to accessing channel data without the channel locked.

In res_musiconhold.c, there are several places where a channel's
stream's existence is checked prior to calling ast_closestream on it. The issue
here is that in several cases, the channel was not locked while checking the
stream. The result was that if two threads checked the state of the channel's
stream at approximately the same time, then there could be a situation where
both threads attempt to call ast_closestream on the channel's stream. The result
here is that the refcount for the stream would go below 0, resulting in a crash.

I have added proper channel locking to res_musiconhold.c to ensure that
we do not try to check chan->stream without the channel locked. A Digium customer
has been using this patch for several weeks and has not had any crashes since
applying the patch.

ABE-2147

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

15 years agoDTMF CallerID detection problems.
Richard Mudgett [Thu, 29 Apr 2010 22:11:47 +0000 (22:11 +0000)] 
DTMF CallerID detection problems.

The code handling DTMF CallerID drops digits on long CallerID numbers and
may timeout waiting for the first ring with shorter numbers.

The DTMF emulation mode was not turned off when processing DTMF CallerID.
When the emulation code gets behind in processing the DTMF digits it can
skip a digit.

For shorter numbers, the timeout may have been too short.  I increased it
from 2 seconds to 4 seconds.  Four seconds is a typical time between rings
for many countries.

(closes issue #16460)
Reported by: sum
Patches:
      issue16460.patch uploaded by rmudgett (license 664)
      issue16460_v1.6.2.patch uploaded by rmudgett (license 664)
Tested by: sum, rmudgett

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

JIRA SWP-562
JIRA AST-334
JIRA SWP-901

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

15 years agoFixes crash in audiohook_write_list
David Vossel [Thu, 29 Apr 2010 15:31:02 +0000 (15:31 +0000)] 
Fixes crash in audiohook_write_list

The middle_frame in the audiohook_write_list function was
being freed if a audiohook manipulator returned a failure.
This is incorrect logic.  This patch resolves this and
adds detailed descriptions of how this function should work
and why manipulator failures must be ignored.

(closes issue #17052)
Reported by: dvossel
Tested by: dvossel

(closes issue #16196)
Reported by: atis

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

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

15 years agoresolves deadlocks in chan_local
David Vossel [Wed, 28 Apr 2010 21:16:03 +0000 (21:16 +0000)] 
resolves deadlocks in chan_local

Issue_1.
In the local_hangup() 3 locks must be held at the same time... pvt, pvt->chan,
and pvt->owner.  Proper deadlock avoidance is done when the channel to hangup
is the outbound chan_local channel, but when it is not the outbound channel we
have an issue... We attempt to do deadlock avoidance only on the tech pvt, when
both the tech pvt and the pvt->owner are locked coming into that loop.  By
never giving up the pvt->owner channel deadlock avoidance is not entirely possible.
This patch resolves that by doing deadlock avoidance on both the pvt->owner and the pvt
when trying to get the pvt->chan lock.

Issue_2.
ast_prod() is used in ast_activate_generator() to queue a frame on the channel
and make the channel's read function get called.  This function is used in
ast_activate_generator() while the channel is locked, which mean's the channel
will have a lock both from the generator code and the frame_queue code by the
time it gets to chan_local.c's local_queue_frame code... local_queue_frame
contains some of the same crazy deadlock avoidance that local_hangup requires,
and this recursive lock prevents that deadlock avoidance from happening correctly.
This patch removes ast_prod() from the channel lock so only one lock is held during
the local_queue_frame function.

(closes issue #17185)
Reported by: schmoozecom
Patches:
      issue_17185_v1.diff uploaded by dvossel (license 671)
      issue_17185_v2.diff uploaded by dvossel (license 671)
Tested by: schmoozecom, GameGamer43

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

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

15 years agoUpdate config.guess.
Leif Madsen [Wed, 28 Apr 2010 21:07:48 +0000 (21:07 +0000)] 
Update config.guess.

Updating config.guess because after installing Ubuntu Server 9.10 and
running all the update scripts, running ./configure would not continue
because it was unable to determine what kind of system I had. After
updating config.guess things started working again.

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

15 years agoAdd AC_CONFIG_AUX_DIR to configure script, so systems without install can use install...
Jason Parker [Wed, 28 Apr 2010 20:30:21 +0000 (20:30 +0000)] 
Add AC_CONFIG_AUX_DIR to configure script, so systems without install can use install-sh from our source dir.

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

15 years agoMissed this when removing $ID
Jason Parker [Wed, 28 Apr 2010 20:25:36 +0000 (20:25 +0000)] 
Missed this when removing $ID

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

15 years agoRemove usage of `id` since it isn't useful and was causing breakge.
Jason Parker [Wed, 28 Apr 2010 19:17:38 +0000 (19:17 +0000)] 
Remove usage of `id` since it isn't useful and was causing breakge.

Solaris `id` doesn't support the -u argument.  Instead of figuring out how to
fix this to work on Solaris, I decided to check why it was necessary and where
else it was used.  It was only used in one place, and it hasn't been needed
for a very long time (I question whether it was ever needed).

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

15 years agoDo not play goodbye prompt after timeout of message review.
Jeff Peeler [Wed, 28 Apr 2010 17:13:29 +0000 (17:13 +0000)] 
Do not play goodbye prompt after timeout of message review.

ABE-2124

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

15 years agoDAHDI "WARNING" message is confusing and vague
Richard Mudgett [Tue, 27 Apr 2010 21:53:07 +0000 (21:53 +0000)] 
DAHDI "WARNING" message is confusing and vague

"WARNING[28406]: chan_dahdi.c:6873 ss_thread: CallerID feed failed: Success"

Changed the warning to "Failed to decode CallerID on channel 'name'".  The
message before it is likely more specific about why the CallerID decode
failed.

SWP-501
AST-283

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

15 years agoUpdate sounds files.
Leif Madsen [Tue, 27 Apr 2010 21:48:47 +0000 (21:48 +0000)] 
Update sounds files.

* Add additional sounds prompts for say_enumeration
* Update the English conference sounds prompts so they are better
  quality and all sound more consistent
* Clean up the core-sounds-XX.txt and extra-sounds-XX.txt files to
  include all present sound files

Both core (en, fr, es) and extra (en, fr) sounds files have been updated.

(closes issue #16200)
Reported by: murf

(closes issue #17137)
Reported by: lmadsen

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

15 years agoAdd gar to the check for AR for those silly OSes (Solaris) that don't have ar.
Jason Parker [Tue, 27 Apr 2010 21:15:46 +0000 (21:15 +0000)] 
Add gar to the check for AR for those silly OSes (Solaris) that don't have ar.

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

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