]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoMake filestream frame handling safer by isolating frames before returning them.
Russell Bryant [Thu, 8 Oct 2009 19:45:47 +0000 (19:45 +0000)] 
Make filestream frame handling safer by isolating frames before returning them.

This patch is related to a number of issues on the bug tracker that show
crashes related to freeing frames that came from a filestream.  A number of
fixes have been made over time while trying to figure out these problems, but
there re still people seeing the crash.  (Note that some of these bug reports
include information about other problems.  I am specifically addressing
the filestream frame crash here.)

I'm still not clear on what the exact problem is.  However, what is _very_
clear is that we have seen quite a few problems over time related to unexpected
behavior when we try to use embedded frames as an optimization.  In some cases,
this optimization doesn't really provide much due to improvements made in other
areas.

In this case, the patch modifies filestream handling such that the embedded frame
will not be returned.  ast_frisolate() is used to ensure that we end up with a
completely mallocd frame.  In reality, though, we will not actually have to malloc
every time.  For filestreams, the frame will almost always be allocated and freed
in the same thread.  That means that the thread local frame cache will be used.
So, going this route doesn't hurt.

With this patch in place, some people have reported success in not seeing the
crash anymore.

(SWP-150)
(AST-208)
(ABE-1834)

(issue #15609)
Reported by: aragon
Patches:
      filestream_frisolate-1.4.diff2.txt uploaded by russell (license 2)
Tested by: aragon, russell

(closes issue #15817)
Reported by: zerohalo
Tested by: zerohalo

(closes issue #15845)
Reported by: marhbere

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

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

15 years agofixes an ast_netsock_list memory leak.
David Vossel [Thu, 8 Oct 2009 19:45:15 +0000 (19:45 +0000)] 
fixes an ast_netsock_list memory leak.

ABE-1998
Review: https://reviewboard.asterisk.org/r/395/

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

15 years agoFix memory leak if chan_misdn config parameter is repeated.
Richard Mudgett [Thu, 8 Oct 2009 16:33:06 +0000 (16:33 +0000)] 
Fix memory leak if chan_misdn config parameter is repeated.

Memory leak when the same config option is set more than once in an
misdn.conf section.  Why must this be considered?  Templates!  Defining a
template with default port options and later adding to or overriding some
of them.

Patches:
      memleak-misdn.patch

JIRA ABE-1998

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

15 years agochan_misdn.c:process_ast_dsp() memory leak
Richard Mudgett [Wed, 7 Oct 2009 21:51:24 +0000 (21:51 +0000)] 
chan_misdn.c:process_ast_dsp() memory leak

misdn.conf: astdtmf must be set to "yes".  With "no", buffer loss does not
occur.

The translated frame "f2" when passing through ast_dsp_process() is not
freed whenever it is not used further in process_ast_dsp().  Then in the
end it is never ever freed.

Patches:
      translate.patch

JIRA ABE-1993

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

15 years agocrash on transfer
David Vossel [Wed, 7 Oct 2009 17:41:21 +0000 (17:41 +0000)] 
crash on transfer

handle_invite_replaces() attempts to uplock a pvt's
owner channel without first verifing that it exists.

(issue #16027)

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

15 years agoAdd missing unlock(s) in dahdi_read
Jeff Peeler [Tue, 6 Oct 2009 23:51:19 +0000 (23:51 +0000)] 
Add missing unlock(s) in dahdi_read

(two cases in trunk)

(closes issue #15683)
Reported by: alecdavis

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

15 years agoFix potential crash when entire span request is received.
Jeff Peeler [Tue, 6 Oct 2009 22:27:13 +0000 (22:27 +0000)] 
Fix potential crash when entire span request is received.

The variable index used in this scenario for accessing the dahdi_pvts was
wrong and was most likely copied from the several other places it is used
correctly.

(closes issue #15998)
Reported by: tsearle
Patches:
      dahdi_reset_crash.patch uploaded by tsearle (license 373)

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

15 years agoFix ao2_iterator API to hold references to containers being iterated.
Kevin P. Fleming [Tue, 6 Oct 2009 01:16:36 +0000 (01:16 +0000)] 
Fix ao2_iterator API to hold references to containers being iterated.

See Mantis issue for details of what prompted this change.

Additional notes:

This patch changes the ao2_iterator API in two ways: F_AO2I_DONTLOCK
has become an enum instead of a macro, with a name that fits our
naming policy; also, it is now necessary to call
ao2_iterator_destroy() on any iterator that has been
created. Currently this only releases the reference to the container
being iterated, but in the future this could also release other
resources used by the iterator, if the iterator implementation changes
to use additional resources.

(closes issue #15987)
Reported by: kpfleming

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

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

15 years agoRemoves unnecessary unlock, clarifies a memcpy.
David Vossel [Fri, 2 Oct 2009 17:32:13 +0000 (17:32 +0000)] 
Removes unnecessary unlock, clarifies a memcpy.

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

15 years agoEnsure the result of the hash function is positive. Negative array offsets suck.
Tilghman Lesher [Fri, 2 Oct 2009 16:58:03 +0000 (16:58 +0000)] 
Ensure the result of the hash function is positive.  Negative array offsets suck.

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

15 years agoFix a bunch of off-by-one errors
Tilghman Lesher [Thu, 1 Oct 2009 23:53:12 +0000 (23:53 +0000)] 
Fix a bunch of off-by-one errors

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

15 years agoOccasionally losing use of B channels in chan_misdn.
Richard Mudgett [Thu, 1 Oct 2009 23:18:28 +0000 (23:18 +0000)] 
Occasionally losing use of B channels in chan_misdn.

I have not been able to reproduce the problem of losing channels.
However, I have seen in the code a reentrancy problem that might give
these symptoms.

The reentrancy patch does several things:
1) Guards B channel and B channel structure allocation.
2) Makes the B channel structure find routines more precise in locating records.
3) Never leave a B channel allocated if we received cause 44.

The last item may cause temporary outgoing call problems, but they should
clear when the line becomes idle.

(closes issue #15490)
Reported by: slutec18
Patches:
      issue15490_channel_alloc_reentrancy.patch uploaded by rmudgett (license 664)
Tested by: rmudgett, slutec18

(closes issue #15458)
Reported by: FabienToune
Patches:
      issue15458_channel_alloc_reentrancy.patch uploaded by rmudgett (license 664)
Tested by: FabienToune, rmudgett, slutec18

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

15 years agoUse unsigned ints for portinuri flags.
Matthew Nicholson [Thu, 1 Oct 2009 15:24:00 +0000 (15:24 +0000)] 
Use unsigned ints for portinuri flags.

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

15 years agoMake portinuri a bitfield.
Matthew Nicholson [Wed, 30 Sep 2009 23:15:17 +0000 (23:15 +0000)] 
Make portinuri a bitfield.

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

15 years agoFix SRV lookup and Request-URI generation in chan_sip.
Matthew Nicholson [Wed, 30 Sep 2009 19:36:06 +0000 (19:36 +0000)] 
Fix SRV lookup and Request-URI generation in chan_sip.

This patch adds a new field "portinuri" to the sip dialog struct and the sip peer struct.  That field is used during RURI generation to determine if the port should be included in the RURI.  It is also used in some places to determine if an SRV lookup should occur.

(closes issue #14418)
Reported by: klaus3000
Tested by: klaus3000, mnicholson

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

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

15 years agochanged the prototype definition of csv_quote
Matthias Nick [Wed, 30 Sep 2009 19:02:00 +0000 (19:02 +0000)] 
changed the prototype definition of csv_quote

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

15 years agoAvoid a potential NULL dereference.
Tilghman Lesher [Wed, 30 Sep 2009 16:55:21 +0000 (16:55 +0000)] 
Avoid a potential NULL dereference.
(closes issue #15865)
 Reported by: kobaz
 Patches:
       20090915__issue15865.diff.txt uploaded by tilghman (license 14)
 Tested by: kobaz

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

15 years agoadded a new dialplan function 'CSV_QUOTE' and changed the cdr_custom.sample.conf
Matthias Nick [Wed, 30 Sep 2009 15:41:46 +0000 (15:41 +0000)] 
added a new dialplan function 'CSV_QUOTE' and changed the cdr_custom.sample.conf

(closes issue #15471)
Reported by: dkerr
Patches:
      csv_quote_14.txt uploaded by mnick (license )
Tested by: mnick

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

15 years agocheck bounds - prevents for buffer overflow
Matthias Nick [Wed, 30 Sep 2009 15:37:39 +0000 (15:37 +0000)] 
check bounds - prevents for buffer overflow

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

15 years agoChange the SSRC by default when our media stream changes
Terry Wilson [Wed, 30 Sep 2009 14:49:11 +0000 (14:49 +0000)] 
Change the SSRC by default when our media stream changes

Be default, change SSRC when doing an audio stream changes Asterisk doesn't
honor marker bit when reinvited to already-bridged RTP streams,resulting in
far-end stack discarding packets with "old" timestamps that areactually part of
a new stream.  This patch sends AST_CONTROL_SRCUPDATE whenever there is a
reinvite, unless the 'constantssrc' is set to true in sip.conf.

The original issue reported to Digium support detailed the following situation:
ITSP <-> Asterisk 1.4.26.2 <-> SIP-based Application Server Call comes in
fromITSP, Asterisk dials the app server which sends a re-invite back
toAsterisk--not to negotiate to send media directly to the ITSP, but to
indicatethat it's changing the stream it's sending to Asterisk.  The app
servergenerates a new SSRC, sequence numbers, timestamps, and sets the marker
bit on the new stream.  Asterisk passes through the teimstamp of the new stream,
butdoes not reset the SSRC, sequence numbers, or set the marker bit.

When the timestamp on the new stream is older than the timestamp on the
originalstream, the ITSP (which doesn't know there has been any change) discards
the newframes because it thinks they are too old.  This patch addresses this by
changing the SSRC on a stream update unless constantssrc=true is set in
sip.conf.

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

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

15 years agoAvoid a deadlock in chanspy, just in case the spyee is masqueraded and chanspy_ds_cha...
Matthew Nicholson [Tue, 29 Sep 2009 20:14:29 +0000 (20:14 +0000)] 
Avoid a deadlock in chanspy, just in case the spyee is masqueraded and chanspy_ds_chan_fixup() is called with the channel locked.

(closes issue #15965)
Reported by: atis
Patches:
      chanspy-deadlock-fix1.diff uploaded by mnicholson (license 96)
Tested by: atis

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

15 years agoReduce CPU usage related to building a peer merely for devicestates.
Tilghman Lesher [Tue, 29 Sep 2009 17:59:26 +0000 (17:59 +0000)] 
Reduce CPU usage related to building a peer merely for devicestates.
This fixes a 100% CPU problem in the SIP driver, found by profiling
the driver while the problem was occurring.
(closes issue #14309)
 Reported by: pkempgen
 Patches:
       20090924__issue14309.diff.txt uploaded by tilghman (license 14)
 Tested by: pkempgen, vrban

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

15 years agoWhen selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
Sean Bright [Mon, 28 Sep 2009 19:09:25 +0000 (19:09 +0000)] 
When selecting DONT_OPTIMIZE in menuselect, explicitly pass -O0 to the compiler
so we override any default optimization levels for a particular install.

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

15 years agoImplicitly sending a progress signal breaks some applications.
Tilghman Lesher [Thu, 24 Sep 2009 19:39:41 +0000 (19:39 +0000)] 
Implicitly sending a progress signal breaks some applications.
Call Progress() in your dialplan if you explicitly want progress to be sent.
(Reverts change 216430, closes issue #15957)
Reported by: Pavel Troller on the Asterisk-Dev mailing list
http://lists.digium.com/pipermail/asterisk-dev/2009-September/039897.html

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

15 years agoResolve parallel build warnings.
Sean Bright [Thu, 24 Sep 2009 18:18:18 +0000 (18:18 +0000)] 
Resolve parallel build warnings.

Reported by Klaus Darilion on the asterisk-dev mailing list.

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

15 years agoRemove the remaining bashisms in the Makefile/mkpkgconfig
Sean Bright [Thu, 24 Sep 2009 14:41:57 +0000 (14:41 +0000)] 
Remove the remaining bashisms in the Makefile/mkpkgconfig

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

15 years agomkpkgconfig does not need bash so make it use /bin/sh
Michiel van Baak [Thu, 24 Sep 2009 08:33:50 +0000 (08:33 +0000)] 
mkpkgconfig does not need bash so make it use /bin/sh
This fixes building on all systems that don't have bash
at /bin/bash

Reported by _ys on #asterisk-dev
Tested by _ys on #asterisk-dev

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

15 years agoWhen IMAP variables were changed during a reload, Voicemail did not use the new values.
Tilghman Lesher [Tue, 22 Sep 2009 21:37:03 +0000 (21:37 +0000)] 
When IMAP variables were changed during a reload, Voicemail did not use the new values.
This change introduces a configuration version variable, which ensures that
connections with the old values are not reused but are allowed to expire
normally.
(closes issue #15934)
 Reported by: viniciusfontes
 Patches:
       20090922__issue15934.diff.txt uploaded by tilghman (license 14)
 Tested by: viniciusfontes

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

15 years agoReverting merge 219520. This change was not necessary.
David Vossel [Mon, 21 Sep 2009 16:55:53 +0000 (16:55 +0000)] 
Reverting merge 219520. This change was not necessary.

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

15 years agoReally stop the stream, when ast_closestream() is called.
Tilghman Lesher [Sun, 20 Sep 2009 17:52:05 +0000 (17:52 +0000)] 
Really stop the stream, when ast_closestream() is called.
(closes issue #15129)
 Reported by: bmh
 Patches:
       20090918__issue15129.diff.txt uploaded by tilghman (license 14)
 Review:
       https://reviewboard.asterisk.org/r/372/

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

15 years agoMake sure the iax_pvt exists before dereferencing it.
Russell Bryant [Sat, 19 Sep 2009 02:51:13 +0000 (02:51 +0000)] 
Make sure the iax_pvt exists before dereferencing it.

This fixes the latest crash posted on issue 15609.

(issue #15609)

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

15 years agoiax2 frame double free
David Vossel [Fri, 18 Sep 2009 23:19:50 +0000 (23:19 +0000)] 
iax2 frame double free

The iax frame's retrans sched id was written over right
before iax2_frame_free was called.  In iax2_frame_free that
retrans id is used to delete the sched item.  By writing over
the retrans field before the sched item could be deleted, it was
possible for a retransmit to occur on a freed frame.

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

15 years agovia-header branches not updated correctly on INVITE
David Vossel [Fri, 18 Sep 2009 16:19:15 +0000 (16:19 +0000)] 
via-header branches not updated correctly on INVITE

INVITE requests must always contain a new unique branch id. When
a new branch id is created for an INVITE, the dialog's invite_branch
variable must be updated so CANCEL requests use the correct branch id.

(closes issue #15262)
Reported by: maniax
Patches:
      asterisk-1.6.1.0-sip-branch.patch uploaded by tweety (license 608)
      invite_new_branch_trunk.diff uploaded by dvossel (license 671)
Tested by: maniax, dvossel

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

15 years agoSend a 100 Trying response when we detect a spiral.
Mark Michelson [Thu, 17 Sep 2009 22:20:50 +0000 (22:20 +0000)] 
Send a 100 Trying response when we detect a spiral.

This was problematic during spiral tests at SIPit...
along with some other things as well.

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

15 years agoINVITE w/Replaces deadlock fix
David Vossel [Thu, 17 Sep 2009 21:29:37 +0000 (21:29 +0000)] 
INVITE w/Replaces deadlock fix

This patch cleans up the locking logic in chan_sip.c's
handle_invite_replaces() function as well as making use
of ast_do_masquerade() rather than forcing the masquerade
on an ast_read().  The code had several redundant unlocks
that would result in 'freed more times than we've locked!'
errors. I cleaned these up as well as moving all the unlock
logic to the end of the function.  This patch should also
resolve the issue people were having with the replacecall
channel never being unlocked with one legged calls.

(closes issue #15151)
Reported by: irroot
Patches:
      invite_w_replaces_1.4.diff uploaded by dvossel (license 671)
Tested by: irroot, dvossel

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

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

15 years agoPrevent a potential race condition and crash when hanging up a channel by removing...
Matthew Nicholson [Thu, 17 Sep 2009 14:58:39 +0000 (14:58 +0000)] 
Prevent a potential race condition and crash when hanging up a channel by removing the channel from the channel list before begining channel tear down.

This fix may potentially cause problems with CDR backends that access the channel a CDR is associated with via the channel list.  This fix makes the channel unavabile at the time when the CDR backend is invoked.  This has been documented in include/asterisk/cdr.h.

(closes issue #15316)
Reported by: vmarrone
Tested by: mnicholson

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

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

15 years agoProperly deal with quotes in the arguments of '#exec' includes.
Tilghman Lesher [Wed, 16 Sep 2009 23:21:53 +0000 (23:21 +0000)] 
Properly deal with quotes in the arguments of '#exec' includes.
(closes issue #15583)
 Reported by: pkempgen
 Patches:
       20090726__issue15583.diff.txt uploaded by tilghman (license 14)
       20090726__issue15583-1.4-4.diff.txt uploaded by pkempgen (license 169)
 Tested by: pkempgen

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

15 years agoFixes CID pattern matching behavior to mirror that of extension pattern matching.
David Brooks [Wed, 16 Sep 2009 18:00:45 +0000 (18:00 +0000)] 
Fixes CID pattern matching behavior to mirror that of extension pattern matching.

Pattern matching for extensions uses a type of scoring system, giving values for
specificity to each character in the pattern. Unfortunately, this is done character
by character, in order. This does lead to some less specific patterns being first
in line for matching, but it will usually get the job done.

This patch merely brings CID matching to the same level as extension matching.
This patch does not attempt to tackle the problem shared by extension matching.

(closes issue #14708)
Reported by: klaus3000

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

15 years agoRemove the IAXy firmware from Asterisk.
Russell Bryant [Wed, 16 Sep 2009 13:33:43 +0000 (13:33 +0000)] 
Remove the IAXy firmware from Asterisk.

The firmware can now be found on downloads.digium.com, where the rest of our
binary downloads live.  This was the last part of our Asterisk tarballs that
was considered non-free by Debian.  :-)

(closes issue #15838)
Reported by: paravoid

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

15 years agoIf the user enters the same password as before, don't signal an error when the change...
Tilghman Lesher [Tue, 15 Sep 2009 22:27:41 +0000 (22:27 +0000)] 
If the user enters the same password as before, don't signal an error when the change does nothing.
(closes issue #15492)
 Reported by: cbbs70a
 Patches:
       20090713__issue15492.diff.txt uploaded by tilghman (license 14)

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

15 years agoFix small memory leak in handle_init_event by always destroying the pthread
Jeff Peeler [Tue, 15 Sep 2009 16:29:27 +0000 (16:29 +0000)] 
Fix small memory leak in handle_init_event by always destroying the pthread
attr before returning.

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

15 years agoSend request contact header field with response to registrer queries instead of the...
Matthew Nicholson [Tue, 15 Sep 2009 16:03:54 +0000 (16:03 +0000)] 
Send request contact header field with response to registrer queries instead of the address of record.

(closes issue #14438)
Reported by: ravindrad
Patches:
      regquerypatch uploaded by ravindrad (license 684)
Tested by: ravindrad

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

15 years agoEnsure FollowMe sets language in channels it creates.
Tilghman Lesher [Tue, 15 Sep 2009 16:01:17 +0000 (16:01 +0000)] 
Ensure FollowMe sets language in channels it creates.
Also, not in the original bug report, but related fields are accountcode and
musicclass, and the inheritance of datastores.
(closes issue #15372)
 Reported by: Romik
 Patches:
       20090828__issue15372.diff.txt uploaded by tilghman (license 14)
 Tested by: cervajs

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

15 years agorevert accidental commit
Kevin P. Fleming [Tue, 15 Sep 2009 14:57:01 +0000 (14:57 +0000)] 
revert accidental commit

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

15 years agoUse proper hostname for downloading sound files.
Kevin P. Fleming [Tue, 15 Sep 2009 14:55:58 +0000 (14:55 +0000)] 
Use proper hostname for downloading sound files.

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

15 years agoFix handling of DAHDI_EVENT_REMOVED event to prevent crash in do_monitor.
Jeff Peeler [Mon, 14 Sep 2009 21:47:11 +0000 (21:47 +0000)] 
Fix handling of DAHDI_EVENT_REMOVED event to prevent crash in do_monitor.

After talking to rmudgett about some of his recent iflist locking changes, it
was determined that the only place that would destroy a channel without being
explicitly to do so was in handle_init_event. The loop to walk the interface
list has been modified to wait to destroy the channel until the dahdi_pvt of
the channel to be destroyed is no longer needed.

(closes issue #15378)
Reported by: samy

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

15 years agoDon't say "Please try again" if we don't give the user another chance to try again.
Tilghman Lesher [Mon, 14 Sep 2009 19:16:35 +0000 (19:16 +0000)] 
Don't say "Please try again" if we don't give the user another chance to try again.
(issue #15055, SWP-129)
 Reported by: jthurman

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

15 years agoEnsure we don't pickup ourselves when doing pickup by exten.
Matthew Nicholson [Mon, 14 Sep 2009 14:53:57 +0000 (14:53 +0000)] 
Ensure we don't pickup ourselves when doing pickup by exten.

(closes issue #15100)
Reported by: lmsteffan
Patches:
      (modified) pickup.patch uploaded by lmsteffan (license 779)

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

15 years agoDon't ring another channel, if there's not enough time for a queue member to answer.
Tilghman Lesher [Thu, 10 Sep 2009 23:52:22 +0000 (23:52 +0000)] 
Don't ring another channel, if there's not enough time for a queue member to answer.
(Fixes AST-228)

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

15 years agoBackport realtime fix to 1.4
Tilghman Lesher [Thu, 10 Sep 2009 23:15:21 +0000 (23:15 +0000)] 
Backport realtime fix to 1.4

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

15 years agoIAX2 encryption regression
David Vossel [Thu, 10 Sep 2009 21:06:07 +0000 (21:06 +0000)] 
IAX2 encryption regression

The IAX2 Call Token security patch inadvertently broke the use of
encryption due to the reorganization of code in the socket_process()
function.  When encryption is used, an incoming full frame must first
be decrypted before the information elements can be parsed.  The
security release mistakenly moved IE parsing before decryption in
order to process the new Call Token IE.  To resolve this, decryption
of full frames is once again done before looking into the frame.  This
involves searching for an existing callno, checking the pvt to see if
encryption is turned on, and decrypting the packet before the internal
fields of the full frame are accessed.

associated with AST-2009-006

(closes issue #15834)
Reported by: karesmakro
Patches:
      iax2_encryption_fix_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel, karesmakro

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

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

15 years agoReinstate muted that was removed by mistake.
Olle Johansson [Thu, 10 Sep 2009 19:52:19 +0000 (19:52 +0000)] 
Reinstate muted that was removed by mistake.

muted doesn't compile any more on os/x, so I have to disable it in order to testcompile other code...

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

15 years agoRemove harmful code that causes endless loops.
Olle Johansson [Thu, 10 Sep 2009 19:07:24 +0000 (19:07 +0000)] 
Remove harmful code that causes endless loops.
Remove code that causes loops in registrations.

We have agreed that the patch that this code was part of was bad. I am ripping out the code that causes
the issue. putnopvut needs to check the rest of the patch, if it needs to be changed as well.

This solves the issue reported in #15540, but needs more work before we close it (as described above).

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

15 years agoWhen MOH is playing on the channel, announcements sent through the conference are...
Tilghman Lesher [Tue, 8 Sep 2009 20:01:45 +0000 (20:01 +0000)] 
When MOH is playing on the channel, announcements sent through the conference are not heard.
(closes issue #14588)
 Reported by: voipas
 Patches:
       20090716__issue14588__2.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen, twisted, tilghman

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

15 years agomake asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD
Michiel van Baak [Fri, 4 Sep 2009 13:56:10 +0000 (13:56 +0000)] 
make asterisk compile under devmode with DEBUG_THREADS enabled on OpenBSD

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

15 years agomake chan_sip compile under devmode again
Michiel van Baak [Fri, 4 Sep 2009 13:53:09 +0000 (13:53 +0000)] 
make chan_sip compile under devmode again

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

15 years agoMake apps send PROGRESS control frame for early media and fix too early media issue...
Olle Johansson [Fri, 4 Sep 2009 13:45:48 +0000 (13:45 +0000)] 
Make apps send PROGRESS control frame for early media and fix too early media issue in SIP

The issue at hand is that some legacy (dying) PBX systems send empty media frames on PRI
links *before* any call progress. The SIP channel receives these frames and by default
signals 183 Session progress and starts sending media. This will cause phones to
play silence and ignore the later 180 ringing message. A bad user experience.

The fix is twofold:
- We discovered that asterisk apps that support early media ("noanswer") did not send
  any PROGRESS frame to indicate early media. Fixed.
- We introduce a setting in chan_sip so that users can disable any relay of media frames
  before the outbound channel actually indicates any sort of call progress.
  In 1.4, 1.6.0 and 1.6.1, this will be disabled for backward compatibility. In later versions
  of Asterisk, this will be enabled. We don't assume that it will change your Asterisk
  phone experience - only for the better.

We encourage third-party application developers to make sure that if they have applications
that wants to send early media, add a PROGRESS control frame transmission to make sure that
all channel drivers actually will start sending early media. This has not been the default
in Asterisk previous to this patch, so if you got inspiration from our code, you need to
update accordingly. Sorry for the trouble and thanks for your support.

This code has been running for a few months in a large scale installation (over 250
servers with PRI and/or BRI links to old PBX systems).
That's no proof that this is an excellent patch, but, well, it's tested :-)

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

15 years agoMake sure 'start' is always initialized.
Michiel van Baak [Fri, 4 Sep 2009 13:16:29 +0000 (13:16 +0000)] 
Make sure 'start' is always initialized.

This is the same as rev 216222 in trunk but 1.4 is affected as well

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

15 years agoMerged revisions 216262 via svnmerge from
Russell Bryant [Fri, 4 Sep 2009 10:48:00 +0000 (10:48 +0000)] 
Merged revisions 216262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
  r216262 | russell | 2009-09-04 05:47:37 -0500 (Fri, 04 Sep 2009) | 2 lines

  Add a plain text version of the IAX2 security document.
........

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

15 years agoBlocked revisions 216087 via svnmerge
Russell Bryant [Thu, 3 Sep 2009 19:37:19 +0000 (19:37 +0000)] 
Blocked revisions 216087 via svnmerge

........
  r216087 | russell | 2009-09-03 14:37:05 -0500 (Thu, 03 Sep 2009) | 2 lines

  Fix a typo.
........

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

15 years agoMerged revisions 216080 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 19:36:46 +0000 (19:36 +0000)] 
Merged revisions 216080 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
  r216080 | russell | 2009-09-03 14:35:23 -0500 (Thu, 03 Sep 2009) | 2 lines

  Add a note about IAX2 to UPGRADE.txt.
........

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

15 years agoMerged revisions 216005 via svnmerge from
Russell Bryant [Thu, 3 Sep 2009 18:44:58 +0000 (18:44 +0000)] 
Merged revisions 216005 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
  r216005 | russell | 2009-09-03 13:42:24 -0500 (Thu, 03 Sep 2009) | 2 lines

  Add IAX2 security document related to AST-2009-006.
........

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

15 years agoMerge code associated with AST-2009-006
David Vossel [Thu, 3 Sep 2009 18:32:32 +0000 (18:32 +0000)] 
Merge code associated with AST-2009-006

(closes issue #12912)
Reported by: rathaus
Tested by: tilghman, russell, dvossel, dbrooks

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

15 years agoRe-send non-100 provisional responses to prevent cancellation
Terry Wilson [Wed, 2 Sep 2009 21:41:22 +0000 (21:41 +0000)] 
Re-send non-100 provisional responses to prevent cancellation

From section 13.3.1.1 of RFC 3261:

   If the UAS desires an extended period of time to answer the INVITE,
   it will need to ask for an "extension" in order to prevent proxies
   from canceling the transaction. A proxy has the option of canceling
   a transaction when there is a gap of 3 minutes between responses in a
   transaction. To prevent cancellation, the UAS MUST send a non-100
   provisional response at every minute, to handle the possibility of
   lost provisional responses.

(closes issue #11157)
Reported by: rjain
Tested by: twilson

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

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

15 years agoUse strrchr() so SoftHangup will correctly truncate multi-hyphen channel names
Dwayne M. Hubbard [Tue, 1 Sep 2009 23:04:52 +0000 (23:04 +0000)] 
Use strrchr() so SoftHangup will correctly truncate multi-hyphen channel names

In general channel names are in the form Foo/Bar-Z, but the channel name
could have multiple hyphens and look like Foo/B-a-r-Z.  Use strrchr to
truncate the channel name at the last hyphen.

(closes issue #15810)
Reported by: dhubbard
Patches:
      dw-softhangup-1.4.patch uploaded by dhubbard (license 733)

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

15 years agoAlso unlock the "other" channel, when returning, due to glare.
Tilghman Lesher [Mon, 31 Aug 2009 16:16:52 +0000 (16:16 +0000)] 
Also unlock the "other" channel, when returning, due to glare.
(closes issue #15787)
 Reported by: tim_ringenbach
 Patches:
       chan_local.diff uploaded by tim ringenbach (license 540)
 Tested by: tim_ringenbach

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

15 years agoModify comment to be a bit more accurate.
Tilghman Lesher [Fri, 28 Aug 2009 20:13:32 +0000 (20:13 +0000)] 
Modify comment to be a bit more accurate.
We have kept this comment around long enough, that it's pretty clear that we're
keeping the code, because changing the code would require a pretty fundamental
architectural shift.  We've also taken criticism in some quarters, because it
was believed that it was referring to the code being nasty.  No, the code isn't
nasty, just the operation itself is rather odd.  Fixed for eternity (probably
not).

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

15 years agoUse autoconf to detect libcurl, as this enables cross-compilation checks, something...
Tilghman Lesher [Thu, 27 Aug 2009 21:45:34 +0000 (21:45 +0000)] 
Use autoconf to detect libcurl, as this enables cross-compilation checks, something we didn't allow before.
(closes issue #15714)
 Reported by: pprindeville
 Patches:
       20090813__issue15714.diff.txt uploaded by tilghman (license 14)
 Tested by: pprindeville

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

15 years agoOne more build system change, to make the descriptions look better, if we have better...
Tilghman Lesher [Thu, 27 Aug 2009 16:53:58 +0000 (16:53 +0000)] 
One more build system change, to make the descriptions look better, if we have better information.

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

15 years agoMake autoheader descriptions render correctly in our autoconfig.h file.
Tilghman Lesher [Thu, 27 Aug 2009 16:03:50 +0000 (16:03 +0000)] 
Make autoheader descriptions render correctly in our autoconfig.h file.
(Figured out while working with issue #14906)

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

15 years agoast_write() ignores ast_audiohook_write() results
David Vossel [Wed, 26 Aug 2009 16:36:42 +0000 (16:36 +0000)] 
ast_write() ignores ast_audiohook_write() results

In ast_write(), if a channel has a list of audiohooks, those
lists are written to and the resulting frame is what ast_write()
should continue with.  The problem was the returned audiohook frame
was not being handled at all, and the original frame passed
into it did not contain the mixed audio, so essentially audio
was being lost.  One result of this was chan_spy's whisper
mode no longer worked.  To complicate the issue, frames
passed into ast_write may either be a single frame, or a list
of frames.  So, as the list of frames is processed in the
audiohook_write, the returned frames had to be added to a new
list.

(closes issue #15660)
Reported by: corruptor
Tested by: dvossel

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

15 years agoI should always compile before committing...
Tilghman Lesher [Tue, 25 Aug 2009 19:28:42 +0000 (19:28 +0000)] 
I should always compile before committing...

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

15 years agoFix pronunciation of German dates.
Tilghman Lesher [Tue, 25 Aug 2009 19:26:50 +0000 (19:26 +0000)] 
Fix pronunciation of German dates.
(closes issue #15273)
 Reported by: Benjamin Kluck
 Patches:
       say_c.patch uploaded by Benjamin Kluck (license 803)

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

15 years agoImprove error message by informing user exactly which function is missing a parethesis.
Tilghman Lesher [Tue, 25 Aug 2009 06:34:44 +0000 (06:34 +0000)] 
Improve error message by informing user exactly which function is missing a parethesis.
(closes issue #15242)
 Reported by: Nick_Lewis
 Patches:
       pbx.c-funcparenthesis.patch2 uploaded by dbrooks (license 790)
       pbx.c-funcparenthesis-1.4.diff uploaded by loloski (license 68)

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

15 years agoUse the default runlevels for Debian derivatives, instead of making up our own.
Tilghman Lesher [Tue, 25 Aug 2009 02:40:22 +0000 (02:40 +0000)] 
Use the default runlevels for Debian derivatives, instead of making up our own.
(closes issue #14730)
 Reported by: pkempgen

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

15 years agoEnsure that T.38 INVITEs generated by Asterisk properly result in T.38 being enabled.
Kevin P. Fleming [Fri, 21 Aug 2009 20:23:45 +0000 (20:23 +0000)] 
Ensure that T.38 INVITEs generated by Asterisk properly result in T.38 being enabled.

(closes issue #15373)
Reported by: dcolombo
Patches:
      chan_sip.patch uploaded by mbrancaleoni (license 342)
Tested by: dcolombo, mbrancaleoni

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

15 years agoPermit DEBUG_FD_LEAKS to be used with C++ source files.
Tilghman Lesher [Fri, 21 Aug 2009 16:52:53 +0000 (16:52 +0000)] 
Permit DEBUG_FD_LEAKS to be used with C++ source files.
(closes issue #15698)
 Reported by: slavon
 Patches:
       20090817__issue15698.diff.txt uploaded by tilghman (license 14)
 Tested by: slavon, tilghman

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

15 years agoClarify queues.conf comments to specify that variables should be set in the dialplan.
Jason Parker [Fri, 21 Aug 2009 16:03:21 +0000 (16:03 +0000)] 
Clarify queues.conf comments to specify that variables should be set in the dialplan.

(closes issue #15755)
Reported by: trendboy

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

15 years agoFix a crash by checking the proper pointer for validity before deferencing it.
Matthew Nicholson [Thu, 20 Aug 2009 20:33:07 +0000 (20:33 +0000)] 
Fix a crash by checking the proper pointer for validity before deferencing it.

(closes issue #15751)
Reported by: atis
Patches:
      ast_bridge_call_peer_cdr.patch uploaded by atis (license 242)

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

15 years agoMake all the symbols for the C-client callbacks global
Jeff Peeler [Thu, 20 Aug 2009 19:53:34 +0000 (19:53 +0000)] 
Make all the symbols for the C-client callbacks global

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

15 years agoFixes memory leak caused by incorrectly freeing mixmonitor
David Vossel [Wed, 19 Aug 2009 21:18:37 +0000 (21:18 +0000)] 
Fixes memory leak caused by incorrectly freeing mixmonitor

(closes issue #15699)
Reported by: edantie
Patches:
      mixmonitor.patch uploaded by edantie (license 862)

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

15 years agoConvert this branch to Opsound music-on-hold.
Kevin P. Fleming [Tue, 18 Aug 2009 20:26:53 +0000 (20:26 +0000)] 
Convert this branch to Opsound music-on-hold.

For more details:
http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/

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

15 years agoDelay the creation of temporary files until we have a valid manager command to handle.
Sean Bright [Tue, 18 Aug 2009 16:36:00 +0000 (16:36 +0000)] 
Delay the creation of temporary files until we have a valid manager command to handle.

Without this patch, asterisk creates a temporary file before determining if the
specified command is valid.  If invalid, we weren't properly cleaning up the file.

(closes issue #15730)
Reported by: zmehmood
Patches:
      M15730.diff uploaded by junky (license 177)
Tested by: zmehmood

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

15 years agoRemoved some deadwood and added some doxygen comments.
Richard Mudgett [Tue, 18 Aug 2009 16:00:56 +0000 (16:00 +0000)] 
Removed some deadwood and added some doxygen comments.

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

15 years agoFix segfault when reloading chan_misdn.
Jeff Peeler [Mon, 17 Aug 2009 16:34:56 +0000 (16:34 +0000)] 
Fix segfault when reloading chan_misdn.

If more ports were specified than configured in misdn.conf a reload would crash
asterisk. The problem was the unconfigured port was using data from the
previously configured port. When the data for an unconfigured port was freed a
crash would result from the double free.

(closes issue #12113)
Reported by: agupta
Patches:
      bug12113.patch uploaded by jpeeler (license 325)

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

15 years agoFix uninitialized variable.
Richard Mudgett [Mon, 17 Aug 2009 15:36:28 +0000 (15:36 +0000)] 
Fix uninitialized variable.

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

15 years agoThis patch adds additional checking when generating queue log TRANSFER events.
Matthew Nicholson [Wed, 12 Aug 2009 23:04:02 +0000 (23:04 +0000)] 
This patch adds additional checking when generating queue log TRANSFER events.

The additional checks prevent generation of false TRANSFER events in certain situations.

(closes issue #14536)
Reported by: aragon
Patches:
      queue-log-xfer-fix1.diff uploaded by mnicholson (license 96)
Tested by: aragon, mnicholson

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

15 years agoBackport fix so that outbound CANCEL requests have same branch as challenged INVITEs.
Mark Michelson [Wed, 12 Aug 2009 18:46:09 +0000 (18:46 +0000)] 
Backport fix so that outbound CANCEL requests have same branch as challenged INVITEs.

There already was code present to be sure that a CANCEL will contain the same branch-id
as the INVITE it is cancelling. However, for INVITES which are challenged downstream,
this mechanism did not work properly. Now this is taken care of.

This is a backport of a fix already present in all 1.6.X branches and in trunk. It also
fixes ABE-1907.

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

16 years agoConversion specifiers, not format specifiers
Tilghman Lesher [Mon, 10 Aug 2009 19:48:48 +0000 (19:48 +0000)] 
Conversion specifiers, not format specifiers

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

16 years agoAST-2009-005
Tilghman Lesher [Mon, 10 Aug 2009 19:15:57 +0000 (19:15 +0000)] 
AST-2009-005

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

16 years agoSmall oops. Clear the flags which have been checked.
Tilghman Lesher [Sun, 9 Aug 2009 15:41:01 +0000 (15:41 +0000)] 
Small oops.  Clear the flags which have been checked.

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

16 years agoResolve a deadlock involving app_chanspy and masquerades.
Russell Bryant [Fri, 7 Aug 2009 20:11:31 +0000 (20:11 +0000)] 
Resolve a deadlock involving app_chanspy and masquerades.

(ABE-1936)

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

16 years agoQUEUE_MEMBER_LIST _really_ wants the interface name, not the membername.
Tilghman Lesher [Fri, 7 Aug 2009 18:16:28 +0000 (18:16 +0000)] 
QUEUE_MEMBER_LIST _really_ wants the interface name, not the membername.

This is a partial revert of revision 82590, which was an attempted cleanup,
but in reality, it broke QUEUE_MEMBER_LIST, which has always been intended
as a method by which component interfaces could be queried from the queue.
Membername isn't useful here, because that field cannot be used to obtain
further information about the member.  See the documentation on
QUEUE_MEMBER_LIST, RemoveQueueMember, QUEUE_MEMBER_PENALTY, and the various
AMI commands which take a member argument for further justification.
(closes issue #15664)
 Reported by: rain
 Patches:
       app_queue-queue_member_list.diff uploaded by rain (license 327)

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

16 years agoBecause channel information can be accessed outside of the channel thread, we must...
Tilghman Lesher [Thu, 6 Aug 2009 21:45:01 +0000 (21:45 +0000)] 
Because channel information can be accessed outside of the channel thread, we must lock the channel prior to modifying it.
(closes issue #15397)
 Reported by: caspy
 Patches:
       20090714__issue15397.diff.txt uploaded by tilghman (license 14)
 Tested by: caspy

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

16 years agoDialplan starts execution before the channel setup is complete.
Richard Mudgett [Wed, 5 Aug 2009 19:18:56 +0000 (19:18 +0000)] 
Dialplan starts execution before the channel setup is complete.

*  Issue 15655: For the case where dialing is complete for an incoming
call, dahdi_new() was asked to start the PBX and then the code set more
channel variables.  If the dialplan hungup before these channel variables
got set, asterisk would likely crash.
*  Fixed potential for overlap incoming call to erroneously set channel
variables as global dialplan variables if the ast_channel structure failed
to get allocated.
*  Added missing set of CALLINGSUBADDR in the dialing is complete case.

(closes issue #15655)
Reported by: alecdavis

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

16 years agoUpdate imapstorage.txt documentation.
Leif Madsen [Wed, 5 Aug 2009 18:46:21 +0000 (18:46 +0000)] 
Update imapstorage.txt documentation.
Updated the imapstorage.txt documentation to reflect that issues with
c-client versions older than 2007 seem to cause crashing issues that
are not seen with more recent versions. Documentation has been updated
to reflect this.

(closes issue #14496)
Reported by: vbcrlfuser
Patches:
      __20090727-imap-documentation-patch.txt uploaded by lmadsen (license 10)
Tested by: lmadsen, mmichelson, dbrooks

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

16 years agoEliminate spurious compiler warnings from system headers on *BSD platforms.
Kevin P. Fleming [Tue, 4 Aug 2009 14:51:39 +0000 (14:51 +0000)] 
Eliminate spurious compiler warnings from system headers on *BSD platforms.

Ensure that system headers located in /usr/local/include are actually treated
as system headers by the compiler, and not as local headers which are subject
to warnings from the -Wundef compiler option and others.

(closes issue #15606)
Reported by: mvanbaak

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

16 years agoFixes dialplan wildcard extension taking precedence over call pickup code.
David Brooks [Mon, 3 Aug 2009 16:15:20 +0000 (16:15 +0000)] 
Fixes dialplan wildcard extension taking precedence over call pickup code.

Prior to this patch, a wildcard extension in the dialplan (for example, _*.) would take
precedence over picking up a call in the channel's pickup group. This patch simply moves
the block of code handling pickup group matching to above the extension matching code.

(closes issue #14735)
Reported by: stevedavies

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

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

16 years agoReverting index() fix, applying a different methodology, based upon developer discuss...
Tilghman Lesher [Mon, 3 Aug 2009 16:11:29 +0000 (16:11 +0000)] 
Reverting index() fix, applying a different methodology, based upon developer discussions.
(related to issue #15639)

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

16 years agoHelps if we export the index() function.
Tilghman Lesher [Mon, 3 Aug 2009 15:42:10 +0000 (15:42 +0000)] 
Helps if we export the index() function.
(Related to issue #15639)

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