]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
15 years agoDeprecate "cz" in favor of "cs".
Tilghman Lesher [Thu, 3 Dec 2009 20:10:19 +0000 (20:10 +0000)] 
Deprecate "cz" in favor of "cs".
Also, change the use of language codes so that language registers as a prefix,
rather than an exact match.
(closes issue #16272)
 Reported by: patrol-cz
 Patches:
       20091203__issue16272.diff.txt uploaded by tilghman (license 14)

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

15 years agoSend ack (response/message) after receiving manager action userevent
Jeff Peeler [Wed, 2 Dec 2009 21:57:42 +0000 (21:57 +0000)] 
Send ack (response/message) after receiving manager action userevent

(closes issue #16264)
Reported by: dimas
Patches:
      event-ack.patch uploaded by dimas (license 88)

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

15 years agofixes app_queue ao2 error
David Vossel [Wed, 2 Dec 2009 19:03:01 +0000 (19:03 +0000)] 
fixes app_queue ao2 error

(closes issue #16369)
Reported by: vrban
Patches:
      queue_issue_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel

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

15 years agoFix a bug where if you hung up very quickly after calling AMD it would overwrite...
Joshua Colp [Wed, 2 Dec 2009 17:04:52 +0000 (17:04 +0000)] 
Fix a bug where if you hung up very quickly after calling AMD it would overwrite the AMDSTATUS of HANGUP with TOOLONG.

(closes issue #16239)
Reported by: CGMChris

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

15 years agoast_outaddrfor doesn't do htons() on port, looks odd in strace.
David Vossel [Wed, 2 Dec 2009 16:59:18 +0000 (16:59 +0000)] 
ast_outaddrfor doesn't do htons() on port, looks odd in strace.

(closes issue #16290)
Reported by: wdoekes

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

15 years agofixes segfault in func_groupcount
David Vossel [Wed, 2 Dec 2009 15:41:36 +0000 (15:41 +0000)] 
fixes segfault in func_groupcount

closes issue #16337)
Reported by: Parantido
Patches:
      issue_16337.diff uploaded by dvossel (license 671)
  Tested by: Parantido, dvossel

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

15 years agoFix compiling without devmode
Terry Wilson [Wed, 2 Dec 2009 04:05:09 +0000 (04:05 +0000)] 
Fix compiling without devmode
(closes issue #16367)
 Reported by: falves11

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

15 years agoDo not modify the gain settings on data calls.
Jeff Peeler [Wed, 2 Dec 2009 00:42:58 +0000 (00:42 +0000)] 
Do not modify the gain settings on data calls.

(The digital flag actually represents a data call.)

(closes issue #15972)
Reported by: udosw
Patches:
      transcap_digital_fix.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoFix a warning pointed out by buildbot.
Russell Bryant [Tue, 1 Dec 2009 23:25:36 +0000 (23:25 +0000)] 
Fix a warning pointed out by buildbot.

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

15 years agolog channel name in dev mode as well
Jeff Peeler [Tue, 1 Dec 2009 21:52:39 +0000 (21:52 +0000)] 
log channel name in dev mode as well

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

15 years agoFix crash with invalid frame data
Jeff Peeler [Tue, 1 Dec 2009 21:29:31 +0000 (21:29 +0000)] 
Fix crash with invalid frame data

The crash was happening as a result of a frame containing an invalid data
pointer, but was set with data length of zero. The few times the issue was
reproduced it _seemed_ that the frame was queued properly, that is the data
pointer was set to NULL. I never could reproduce the crash so as a last resort
the crash has been fixed, but a check in __ast_read has been added to give as
much information about the source of problematic frames in the future.

(closes issue #16058)
Reported by: atis

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

15 years agoWaitExten m option with no parameters generates frame with zero datalen but non-null...
David Vossel [Tue, 1 Dec 2009 21:14:31 +0000 (21:14 +0000)] 
WaitExten m option with no parameters generates frame with zero datalen but non-null data ptr

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

15 years agoIgnore unknown formats in ast_format_str_reduce() and return an error if no know...
Matthew Nicholson [Tue, 1 Dec 2009 15:34:57 +0000 (15:34 +0000)] 
Ignore unknown formats in ast_format_str_reduce() and return an error if no know formats are found.

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

15 years agoRemove duplicate entries from voicemail format lists. This prevents app_voicemail...
Matthew Nicholson [Mon, 30 Nov 2009 21:11:44 +0000 (21:11 +0000)] 
Remove duplicate entries from voicemail format lists. This prevents app_voicemail from entering an infinite loop when the same format is specified twice in the format list.

(closes issue #15625)
Reported by: Shagg63
Tested by: mnicholson

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

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

15 years agofixes crash caused by RTP comfort noise payload greater than 24 bytes
David Vossel [Mon, 30 Nov 2009 17:14:08 +0000 (17:14 +0000)] 
fixes crash caused by RTP comfort noise payload greater than 24 bytes

AST-2009-010

(closes issue #16242)
Reported by: amorsen
Patches:
      issue16242.diff uploaded by oej (license 306)
Tested by: amorsen, oej, dvossel

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

15 years agoapp_queue crashes randomly, often during call-transfers
David Vossel [Mon, 30 Nov 2009 16:32:58 +0000 (16:32 +0000)] 
app_queue crashes randomly, often during call-transfers

In app_queue, it is possible for a call_queue to be destroyed
while another object still holds a pointer to it.  This patch
converts call_queue objects to ao2 objects allowing them to be
ref counted.  This makes it safe for the queue_ent object in
queue_exec() to reference it's parent call_queue even after it
has left the queue.

(closes issue #15686)
Reported by: Hatrix
Patches:
      v2_queue_ao2.diff uploaded by dvossel (license 671)
Tested by: dvossel, aragon

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

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

15 years agoAfter a frame duplication failure, unlock the channel before returning.
Tilghman Lesher [Wed, 25 Nov 2009 22:31:57 +0000 (22:31 +0000)] 
After a frame duplication failure, unlock the channel before returning.

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

15 years agofixes solaris segfault on dial with verbosity >= 3
David Vossel [Wed, 25 Nov 2009 21:38:32 +0000 (21:38 +0000)] 
fixes solaris segfault on dial with verbosity >= 3

(closes issue #16193)
Reported by: asgaroth
Patches:
      bug_16193_1.4.21.2_vers.diff uploaded by snuffy (license 35)
Tested by: asgaroth, snuffy

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

15 years agofixes conditional jump or move depending on uninitialised STACK value
David Vossel [Wed, 25 Nov 2009 21:23:41 +0000 (21:23 +0000)] 
fixes conditional jump or move depending on uninitialised STACK value

(closes issue #16261)
Reported by: edguy3
Patches:
      edguy16261.patch uploaded by edguy3 (license 917)

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

15 years agoWhen 'sip set debug' is enabled, and the last line of an incoming SIP message
Kevin P. Fleming [Mon, 23 Nov 2009 15:31:02 +0000 (15:31 +0000)] 
When 'sip set debug' is enabled, and the last line of an incoming SIP message
is not properly newline terminated, ensure that that line is included in the
debug output.

(part of issue #16268)

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

15 years agoCorrect fix for issue #16268... the reporter's original patch was very close to correct.
Kevin P. Fleming [Mon, 23 Nov 2009 15:09:24 +0000 (15:09 +0000)] 
Correct fix for issue #16268... the reporter's original patch was very close to correct.

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

15 years agoEnsure that SDP parsing does not ignore the last line of the SDP.
Kevin P. Fleming [Mon, 23 Nov 2009 14:13:56 +0000 (14:13 +0000)] 
Ensure that SDP parsing does not ignore the last line of the SDP.

(closes issue #16268)
Reported by: sgimeno

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

15 years agoCopy the peer CDR's userfield to the bridge CDR if it exists. This is necessary...
Matthew Nicholson [Fri, 20 Nov 2009 20:53:06 +0000 (20:53 +0000)] 
Copy the peer CDR's userfield to the bridge CDR if it exists.  This is necessary for the recordagentcalls option in chan_agent to store the recorded file name in the bridge CDR.

(closes issue #14590)
Reported by: msetim
Patches:
      queue_agent_userfield.patch uploaded by Laureano (license 265)
Tested by: Laureano, mnicholson

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

15 years agofixes MixMonitor thread not exiting when StopMixMonitor is used
David Vossel [Thu, 19 Nov 2009 21:22:46 +0000 (21:22 +0000)] 
fixes MixMonitor thread not exiting when StopMixMonitor is used

(closes issue #16152)
Reported by: AlexMS
Patches:
      stopmixmonitor_1.4.diff uploaded by dvossel (license 671)
Tested by: dvossel, AlexMS

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

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

15 years agoUpdate copyright year in visible output. (cli)
Michiel van Baak [Thu, 19 Nov 2009 16:09:51 +0000 (16:09 +0000)] 
Update copyright year in visible output. (cli)

Spotted by Stuart Henderson

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

15 years agoCorrect mistaken option name in error message.
Kevin P. Fleming [Sun, 15 Nov 2009 17:19:06 +0000 (17:19 +0000)] 
Correct mistaken option name in error message.

The configuration option for allowing hosts to make non-token-based calls
is 'calltokenoptional', not 'calltokenignore'. (reported on asterisk-users)

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

15 years agoRespect the maddr parameter in the Via header.
Joshua Colp [Fri, 13 Nov 2009 22:00:19 +0000 (22:00 +0000)] 
Respect the maddr parameter in the Via header.

(closes issue #14446)
Reported by: frawd
Patches:
      via_maddr.patch uploaded by frawd (license 610)
Tested by: frawd

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

15 years agoFix a crash caused by two threads thinking they should both free the
Joshua Colp [Fri, 13 Nov 2009 19:44:07 +0000 (19:44 +0000)] 
Fix a crash caused by two threads thinking they should both free the
chan_local private structure when only one should.

(closes issue #15314)
Reported by: sroberts
Patches:
      Issue15314_Move_Nulling_owner.patch uploaded by davidw (license 780)
Tested by: davidw, lottc

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

15 years agoDocument a limitation in the AVAILSTATUS variable from ChanIsAvail and provide
Joshua Colp [Fri, 13 Nov 2009 17:19:59 +0000 (17:19 +0000)] 
Document a limitation in the AVAILSTATUS variable from ChanIsAvail and provide
a workaround for it that does not change existing behavior.

(closes issue #14426)
Reported by: macli

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

15 years agofixes merging error, datastore was being freed in the wrong function.
David Vossel [Thu, 12 Nov 2009 16:41:49 +0000 (16:41 +0000)] 
fixes merging error, datastore was being freed in the wrong function.

(closes issue #16219)
Reported by: aragon

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

15 years agoSolaris doesn't like NULL going to ast_log
David Brooks [Wed, 11 Nov 2009 19:46:19 +0000 (19:46 +0000)] 
Solaris doesn't like NULL going to ast_log

Solaris will crash if NULL is passed to ast_log. This simple patch simply uses S_OR to
get around this.

(closes issue #15392)
Reported by: yrashk

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

15 years agoIf two pattern classes start with the same digit and have the same number of characte...
Tilghman Lesher [Tue, 10 Nov 2009 22:09:16 +0000 (22:09 +0000)] 
If two pattern classes start with the same digit and have the same number of characters, they will compare equal.
The example given in the issue report is that of [234] and [246], which have
these characteristics, yet they are clearly not equivalent.  The code still
uses these two characteristics, yet when the two scores compare equal, an
additional check will be done to compare all characters within the class to
verify equality.
(closes issue #15421)
 Reported by: jsmith
 Patches:
       20091109__issue15421__2.diff.txt uploaded by tilghman (license 14)
 Tested by: jsmith, thedavidfactor

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

15 years agoFix ExternalIVR Documentation
David Ruggles [Tue, 10 Nov 2009 21:45:15 +0000 (21:45 +0000)] 
Fix ExternalIVR Documentation

Remove documentation for event that doesn't function

(closes issue #16220)
Reported by: thedavidfactor
Patches:
      externalivr.txt.20091110.1622.patch uploaded by thedavidfactor (license 903)

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

15 years agoRemove broken support for direct transcoding between G.726 RFC3551 and G.726 AAL2.
Joshua Colp [Tue, 10 Nov 2009 20:03:14 +0000 (20:03 +0000)] 
Remove broken support for direct transcoding between G.726 RFC3551 and G.726 AAL2.

On some systems the translation core would actually consider g726aal2 -> g726 -> signed linear
to be a quicker path then g726aal2 -> signed linear which exposed this problem.

(closes issue #15504)
Reported by: globalnetinc

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

15 years agoDocument ExternalIVR event tag collision
David Ruggles [Tue, 10 Nov 2009 17:23:59 +0000 (17:23 +0000)] 
Document ExternalIVR event tag collision

ExternalIVR uses the D tag for two different event types. This documents that
behavior and how to differentiate between the two cases. Also includes a minor
spelling fix and clarification

(closes issue #16211)
Reported by: thedavidfactor
Patches:
      externalivr.txt.20091109.1507.patch uploaded by thedavidfactor (license 903)

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

15 years agodon't crash on log message in solaris
David Vossel [Tue, 10 Nov 2009 17:15:57 +0000 (17:15 +0000)] 
don't crash on log message in solaris

AST-2009-006

(closes issue #16206)
Reported by: bklang
Tested by: bklang

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

15 years agoReverted revision 202022.
Matthew Nicholson [Tue, 10 Nov 2009 15:22:13 +0000 (15:22 +0000)] 
Reverted revision 202022.

(closes issue #16175)
Reported by: paul-tg

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

15 years agoUpdate WARNING message.
Leif Madsen [Mon, 9 Nov 2009 15:37:43 +0000 (15:37 +0000)] 
Update WARNING message.
Update a WARNING message to give a suggested fix when encountered.

(closes issue #16198)
Reported by: atis
Tested by: atis

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

15 years agoPerform limited bounds checking when destroying ast_mutex_t structures to make sure...
Matthew Nicholson [Mon, 9 Nov 2009 14:16:03 +0000 (14:16 +0000)] 
Perform limited bounds checking when destroying ast_mutex_t structures to make sure we don't try to use negative indices.

(closes issue #15588)
Reported by: zerohalo
Patches:
      20090820__issue15588.diff.txt uploaded by tilghman (license 14)
Tested by: zerohalo

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

15 years agofixes audiohook write crash occuring in chan_spy whisper mode.
David Vossel [Fri, 6 Nov 2009 22:33:27 +0000 (22:33 +0000)] 
fixes audiohook write crash occuring in chan_spy whisper mode.

After writing to the audiohook list in ast_write(), frames
were being freed incorrectly.  Under certain conditions this
resulted in a double free crash.

(closes issue #16133)
Reported by: wetwired

(closes issue #16045)
Reported by: bluecrow76
Patches:
      issue16045.diff uploaded by dvossel (license 671)
Tested by: bluecrow76, dvossel, habile

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

15 years agoDon't overwrite caller ID name on a trunk with the configured fullname when using...
Joshua Colp [Fri, 6 Nov 2009 18:32:58 +0000 (18:32 +0000)] 
Don't overwrite caller ID name on a trunk with the configured fullname when using users.conf

(issue ABE-1989)

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

15 years agofixes segfault in iLBC
David Vossel [Fri, 6 Nov 2009 17:07:13 +0000 (17:07 +0000)] 
fixes segfault in iLBC

For reasons not yet known, it appears possible for an ast_frame
to have a datalen greater than zero while the actual data is NULL
during Packet Loss Concealment.  Most codecs don't support PLC so
this doesn't affect them.  This patch catches the malformed frame
and prevents the crash from occuring.  Additional efforts to determine
why it is possible for a frame to look like this are still being
investigated.

(issue #16979)

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

15 years agoFix a bug caused by a partially invalid frame (from the jitterbuffer) passing through...
Joshua Colp [Fri, 6 Nov 2009 16:41:20 +0000 (16:41 +0000)] 
Fix a bug caused by a partially invalid frame (from the jitterbuffer) passing through the Asterisk core.

(closes issue #15560)
Reported by: jvandal
(closes issue #15709)
Reported by: covici

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

15 years agoProperly handle '=' while decoding base64 messages and null terminate strings returne...
Matthew Nicholson [Fri, 6 Nov 2009 16:26:59 +0000 (16:26 +0000)] 
Properly handle '=' while decoding base64 messages and null terminate strings returned from BASE64_DECODE.

(closes issue #15271)
Reported by: chappell
Patches:
      base64_fix.patch uploaded by chappell (license 8)
Tested by: kobaz

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

15 years agofixes crash in astfd.c
David Vossel [Fri, 6 Nov 2009 15:41:41 +0000 (15:41 +0000)] 
fixes crash in astfd.c

(closes issue #15981)
Reported by: slavon

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

15 years agofixes memory leak in func_audiohookinherit.c
David Vossel [Fri, 6 Nov 2009 15:07:31 +0000 (15:07 +0000)] 
fixes memory leak in func_audiohookinherit.c

(closes issue 0015394)
Reported by: boroda
Patches:
      bug15394_memoryleak_diff2.txt uploaded by dbrooks (license 790)
Tested by: dbrooks, boroda

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

15 years agoFix crash on VPB exception when no hardware is present.
Jason Parker [Thu, 5 Nov 2009 19:14:25 +0000 (19:14 +0000)] 
Fix crash on VPB exception when no hardware is present.

(closes issue #14970)
Reported by: tzafrir
Patches:
      vpb_exception.diff uploaded by tzafrir (license 46)
Tested by: markwaters

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

15 years agochan_misdn Asterisk 1.4.27-rc2 crash
David Brooks [Thu, 5 Nov 2009 18:59:41 +0000 (18:59 +0000)] 
chan_misdn Asterisk 1.4.27-rc2 crash

Crash related to chan_misdn connection. Patch submitted by gknispel_proformatique, tested
by francesco_r. "I have many crash since i have upgraded to Asterisk 1.4.27-rc2. Attached
a full bt." This patch zeros out an ast_frame.

(closes issue #16041)
Reported by: francesco_r

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

15 years agoFix incorrect filename comparsion after monitor file change
Jeff Peeler [Wed, 4 Nov 2009 23:47:08 +0000 (23:47 +0000)] 
Fix incorrect filename comparsion after monitor file change

The logic to detect if a requested file is indeed a different file from the
current file was incorrect. The main issue being confusion of the use of
filename_base which was previously set without pathing information and then
compared to another full path. Robust file comparison logic has been added
to properly check if two files are the same even if symlinks are used.

(closes issue #15313)
Reported by: caspy
Patches:
      20091103__issue15313__1.4.diff.txt uploaded by jpeeler (license 325)
      but mostly tilghman's work

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

15 years agoThis patch modifies the Dial application to monitor the calling channel for hangups...
Matthew Nicholson [Wed, 4 Nov 2009 20:52:27 +0000 (20:52 +0000)] 
This patch modifies the Dial application to monitor the calling channel for hangups while playing back announcements.

(closes issue #16005)
Reported by: falves11
Patches:
      dial-announce-hangup-fix1.diff uploaded by mnicholson (license 96)
Tested by: mnicholson, falves11

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

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

15 years agoModify the SDP parsing code to parse session and media level items separately.
Matthew Nicholson [Wed, 4 Nov 2009 19:55:44 +0000 (19:55 +0000)] 
Modify the SDP parsing code to parse session and media level items separately.

With the new code, media level proprieties should no longer be confused with session level proprieties. This change also reorganizes some of the SDP parsing code which should make it easier to manage in the future.

(closes issue #14994)
Reported by: frawd
Tested by: frawd, mnicholson, file

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

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

15 years agoFix a security issue where it may be possible for someone to execute a cross-site
Joshua Colp [Wed, 4 Nov 2009 19:25:37 +0000 (19:25 +0000)] 
Fix a security issue where it may be possible for someone to execute a cross-site
AJAX request exploit.

(AST-2009-009)

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

15 years agoFix a security issue where sending a REGISTER with a differing username in the From
Joshua Colp [Wed, 4 Nov 2009 19:17:39 +0000 (19:17 +0000)] 
Fix a security issue where sending a REGISTER with a differing username in the From
URI and Authorization header would reveal whether it was valid or not.

(AST-2009-008)

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

15 years agoMake sure the outgoing flag is cleared if a new channel fails to get created for...
Richard Mudgett [Tue, 3 Nov 2009 17:55:47 +0000 (17:55 +0000)] 
Make sure the outgoing flag is cleared if a new channel fails to get created for outgoing calls.

This is the relevant portion of asterisk/trunk -r226648

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

15 years agoFix a bug where an RPID header could be generated with a blank username in the URI.
Joshua Colp [Tue, 3 Nov 2009 15:36:16 +0000 (15:36 +0000)] 
Fix a bug where an RPID header could be generated with a blank username in the URI.

(closes issue #15909)
Reported by: kobaz

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

15 years agoFixing bug before someone reports it...
Olle Johansson [Tue, 3 Nov 2009 10:48:41 +0000 (10:48 +0000)] 
Fixing bug before someone reports it...

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

15 years agoAdding IP address in Contact ACL log message and removing redundant message
Olle Johansson [Tue, 3 Nov 2009 10:41:45 +0000 (10:41 +0000)] 
Adding IP address in Contact ACL log message and removing redundant message

(based on kpfleming's feedback)

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

15 years agoUse proper response code when violating Contact ACL's.
Olle Johansson [Tue, 3 Nov 2009 10:29:59 +0000 (10:29 +0000)] 
Use proper response code when violating Contact ACL's.

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

Thanks kpfleming for a quick review.
(EDVX-003)

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

15 years agoSIP channel name uniqueness
David Brooks [Mon, 2 Nov 2009 20:52:53 +0000 (20:52 +0000)] 
SIP channel name uniqueness

SIP channel names were supposed to be unique by way of a name suffix derived from the
pointer to the channel's private data. Uniqueness was preserved on 32-bit systems, but
not on 64-bit systems. This patch, as suggested by kpfleming, replaces this suffix with
a simple incremented unsigned int.

(closes issue #15152)
Reported by: palbrecht

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

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

15 years agoFix a bug where the recorded privacy introduction file would not get removed if the...
Joshua Colp [Mon, 2 Nov 2009 18:08:11 +0000 (18:08 +0000)] 
Fix a bug where the recorded privacy introduction file would not get removed if the caller hung up
while the called party had not yet answered.

This was fixed by introducing an argument to the 'n' option which, when enabled, removes the introduction
file under all scenarios. This was done to preserve the behavior that has existed for quite some time.

(closes issue #14674)
Reported by: ulogic
Patches:
      bug14674.patch uploaded by jpeeler (license 325)

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

15 years agoDon't allow two separate instances of safe_asterisk when restarting from the init...
Tilghman Lesher [Mon, 2 Nov 2009 17:14:20 +0000 (17:14 +0000)] 
Don't allow two separate instances of safe_asterisk when restarting from the init script.
(closes issue #14562)
 Reported by: davidw
 Patches:
       Initially 20091022__issue14562.diff.txt uploaded by tilghman (license 14)
       Modified to 20091030__Issue14562_diff.txt uploaded by davidw (license 780)
 Tested by: davidw

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

15 years agofixes crash on iterator_destroy on uninitialized iterator
David Vossel [Mon, 2 Nov 2009 15:31:02 +0000 (15:31 +0000)] 
fixes crash on iterator_destroy on uninitialized iterator

(closes issue #16162)
Reported by: krn

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

15 years agochanges calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed...
David Vossel [Mon, 2 Nov 2009 15:16:30 +0000 (15:16 +0000)] 
changes calltoken debug messages from LOG_NOTICE to LOG_DEBUG like they are supposed to be

(closes issue #16144)
Reported by: aragon

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

15 years agoAdd an option to enabling passing music on hold start and stop requests through inste...
Joshua Colp [Thu, 29 Oct 2009 18:11:26 +0000 (18:11 +0000)] 
Add an option to enabling passing music on hold start and stop requests through instead of
acting on them in chan_local.

(closes issue #14709)
Reported by: dimas

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

15 years agoUpdate documentation in sip.conf.sample.
Leif Madsen [Wed, 28 Oct 2009 20:06:13 +0000 (20:06 +0000)] 
Update documentation in sip.conf.sample.

Update the documentation in sip.conf.sample in order to make it more clear
that directmedia/canreinvite do not cause Asterisk to ignore reINVITEs. It
is only used to stop Asterisk from generating a reINVITE, but does not stop
it from accepting them if necessary.

(closes issue #15644)
Reported by: lmadsen

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

15 years agoUpdate CALLINGSUBADDR channel variable documentation.
Leif Madsen [Wed, 28 Oct 2009 19:48:29 +0000 (19:48 +0000)] 
Update CALLINGSUBADDR channel variable documentation.

(closes issue #15734)
Reported by: alecdavis
Patches:
      channelvariables.tex.diff.txt uploaded by alecdavis (license 585)
Tested by: alecdavis

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

15 years agoFix documentation (pointed out by TheDavidFactor on #-dev)
Tilghman Lesher [Wed, 28 Oct 2009 18:02:25 +0000 (18:02 +0000)] 
Fix documentation (pointed out by TheDavidFactor on #-dev)

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

15 years agoManager output is not always NULL-terminated, so force a NULL at the end of the files...
Tilghman Lesher [Tue, 27 Oct 2009 20:16:49 +0000 (20:16 +0000)] 
Manager output is not always NULL-terminated, so force a NULL at the end of the filestream.
(closes issue #15495)
 Reported by: pdf
 Patches:
       20090916__issue15495.diff.txt uploaded by tilghman (license 14)
 Tested by: pdf

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

15 years agodetect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi
Tzafrir Cohen [Mon, 26 Oct 2009 22:13:25 +0000 (22:13 +0000)] 
detect ARM Linux EABI OSARCH as linux-gnu instead of linux-gnueabi

* Set OSARCH to linux-gnu even if host_os is linux-gnueabi
* When checking if we are Linux, check OSARCH rather than host_os

The newer ARM ABI ("EABI") shows the OS name 'linux-gnueabi' rather than
'linux-gnu' . This patch sets OSARCH to be 'linux-gnu' even in such a case.

OSARCH is tested for the value of 'linux-gnu' in one or two places in the
tree. This patch also fixes the check libcap to check for $OSARCH rather
than $host_os .

See also: http://wiki.debian.org/ArmEabiPort

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

15 years agoDon't force menuselect.makeopts to be rebuilt on every build.
Kevin P. Fleming [Fri, 23 Oct 2009 14:00:01 +0000 (14:00 +0000)] 
Don't force menuselect.makeopts to be rebuilt on every build.

For some reason the menuselect.makeopts file was listed as PHONY in the Makefile,
resulting in 'make' needing to rebuild it for every build. This then resulted in
the embedded module rules being rebuilt on every build, which can be slow and is
unnecessary.

This patch fixes the problem by properly allowing 'make' to know when the
menuselect.makeopts file needs to be rebuilt (defining the proper dependencies).

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

15 years agoClean valgrind output by suppressing false errors.
Leif Madsen [Thu, 22 Oct 2009 21:51:52 +0000 (21:51 +0000)] 
Clean valgrind output by suppressing false errors.
Update valgrind.txt documentation and add valgrind.supp file in order to
allow those who are creating valgrind output to have less false errors in
the logfile.

(closes issue #16007)
Reported by: atis
Patches:
      valgrind.txt.diff uploaded by atis (license 242)
      asterisk2.supp uploaded by atis (license 242)
Tested by: atis, amorsen

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

15 years agoIAX2: VNAK loop caused by signaling frames with no destination call number
David Vossel [Wed, 21 Oct 2009 20:58:08 +0000 (20:58 +0000)] 
IAX2: VNAK loop caused by signaling frames with no destination call number

It is possible for the PBX thread to queue up signaling frames before
a destination call number is received.  This can result in signaling
frames being sent out with no destination call number. Since recent
versions of Asterisk require accurate destination callnumbers for all
Full Frames, this can cause a VNAK loop to occur.  To resolve this
no signaling frames are sent until a destination callnumber is received,
and destination call numbers are now only required for iax_pvt matching
when the frame is an ACK.

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

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

15 years agoRevert 225169, as this doesn't account for the possibility of a list of frames.
Russell Bryant [Wed, 21 Oct 2009 16:44:49 +0000 (16:44 +0000)] 
Revert 225169, as this doesn't account for the possibility of a list of frames.

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

15 years agoIsolate the frame returned from ast_translate().
Russell Bryant [Wed, 21 Oct 2009 16:39:20 +0000 (16:39 +0000)] 
Isolate the frame returned from ast_translate().

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

15 years agoFix documentation for ast_softhangup() and correct the misuse thereof.
Tilghman Lesher [Wed, 21 Oct 2009 16:02:12 +0000 (16:02 +0000)] 
Fix documentation for ast_softhangup() and correct the misuse thereof.
(closes issue #16103)
 Reported by: majorbloodnok

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

15 years agoSuffix is not needed for a match
Tilghman Lesher [Wed, 21 Oct 2009 15:45:54 +0000 (15:45 +0000)] 
Suffix is not needed for a match

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

15 years agoIAX/SIP shrinkcallerid option
David Vossel [Wed, 21 Oct 2009 14:37:04 +0000 (14:37 +0000)] 
IAX/SIP shrinkcallerid option

The shrinking of caller id removes '(', ' ', ')', non-trailing '.',
and '-' from the string.  This means values such as 555.5555 and
test-test result in 555555 and testtest.  There are instances,
such as Skype integration, where a specific value is passed via
caller id that must be preserved unmodified.  This patch makes
the shrinking of caller id optional in chan_sip and chan_iax in
order to support such cases.  By default this option is on to
preserve previous expected behavior.

(closes issue #15940)
Reported by: dimas
Patches:
      v2-15940.patch uploaded by dimas (license 88)
      15940_shrinkcallerid_trunk.c uploaded by dvossel (license 671)
Tested by: dvossel

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

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

15 years agoIsolate frames returned from a DSP instance or codec translator.
Russell Bryant [Wed, 21 Oct 2009 02:59:54 +0000 (02:59 +0000)] 
Isolate frames returned from a DSP instance or codec translator.

The reasoning for these changes are the same as what I wrote in the commit
message for rev 222878.

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

15 years agoPay attention to the return value of the manipulate function.
Tilghman Lesher [Tue, 20 Oct 2009 22:07:11 +0000 (22:07 +0000)] 
Pay attention to the return value of the manipulate function.
While this looks like an optimization, it prevents a crash from occurring
when used with certain audiohook callbacks (diagnosed with SVN trunk,
backported to 1.4 to keep the source consistent across versions).

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

15 years agoAdd support for relaying early media in the features attended transfer option.
Joshua Colp [Tue, 20 Oct 2009 17:46:37 +0000 (17:46 +0000)] 
Add support for relaying early media in the features attended transfer option.

(closes issue #14828)
Reported by: licedey

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

15 years agoCorrect timestamp calculations when RTP sample rates over 8kHz are used.
Kevin P. Fleming [Mon, 19 Oct 2009 23:44:07 +0000 (23:44 +0000)] 
Correct timestamp calculations when RTP sample rates over 8kHz are used.

While testing some endpoints that support 16kHz and 32kHz sample rates, some
log messages were generated due to calc_rxstamp() computing timestamps in a way
that produced odd results, so this patch sanitizes the result of the
computations.

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

15 years agoDo not attempt early media bridging (ie: direct RTP setup) if options are enabled...
Joshua Colp [Mon, 19 Oct 2009 19:47:50 +0000 (19:47 +0000)] 
Do not attempt early media bridging (ie: direct RTP setup) if options are enabled that should prevent it.

(closes issue #14763)
Reported by: cupotka

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

15 years agoFix stale caller id data from being reported in AMI NewChannel event
Jeff Peeler [Sat, 17 Oct 2009 01:32:47 +0000 (01:32 +0000)] 
Fix stale caller id data from being reported in AMI NewChannel event

The problem here is that chan_dahdi is designed in such a way to set
certain values in the dahdi_pvt only once. One of those such values
is the configured caller id data in chan_dahdi.conf. For PRI, the
configured caller id data could be overwritten during a call. Instead
of saving the data and restoring, it was decided that for all non-analog
channels it was simply best to not set the configured caller id in the
first place and also clear it at the end of the call.

(closes issue #15883)
Reported by: jsmith

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

15 years agoNever released PRI channels when using Busy() or Congestion() dialplan apps.
Richard Mudgett [Fri, 16 Oct 2009 20:25:23 +0000 (20:25 +0000)] 
Never released PRI channels when using Busy() or Congestion() dialplan apps.

When the Busy() or Congestion() application is used towards ISDN (an ISDN
progress is sent), the responding ISDN Disconnect or Release may contain
the ISDN cause user busy or one of the congestion causes.  In chan_dahdi.c
these causes will only set the needbusy or needcongestion flags and not
activate the softhangup procedure.  Unfortunately only the latter can
interrupt the endless wait loop of Busy()/Congestion().

Result: PRI channels staying in state busy for the rest of asterisk life
or until the other end times out and forces the call to clear.

(in issue 0014292)
Reported by: tomaso
Patches:
      disc_rel_userbusy.patch uploaded by tomaso (license 564)
      (This patch is unrelated to the issue.)

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

15 years agoFix PRI timer T309 operation
Jean Galarneau [Tue, 13 Oct 2009 20:58:17 +0000 (20:58 +0000)] 
Fix PRI timer T309 operation

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

15 years agoEnsure ringing continues for branched calls after progress is received
Jeff Peeler [Mon, 12 Oct 2009 23:12:50 +0000 (23:12 +0000)] 
Ensure ringing continues for branched calls after progress is received

While waiting for an answer, don't send progress for branched calls
for which ringing was sent.

(closes issue #15028)
Reported by: fnordian

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

15 years agoRemove automatic switching from T.38 to voice mode in chan_sip.
Kevin P. Fleming [Mon, 12 Oct 2009 15:30:40 +0000 (15:30 +0000)] 
Remove automatic switching from T.38 to voice mode in chan_sip.

chan_sip has some code to automatically switch from T.38 mode to voice mode when
a voice frame is written to the channel while it is in T.38 mode; this was
intended to handle the situation when a FAX transmission has ended and the channel
is not yet hung up, but is causing problems at the beginning of FAX sessions as
well when there are still voice frames 'in flight' at the time the T.38 negotiation
completes. This patch removes the automatic switchover.

(issue #16025)
Reported by: jamicque

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

15 years agoRemove a duplicate ao2_iterator_destroy().
Russell Bryant [Sun, 11 Oct 2009 18:34:37 +0000 (18:34 +0000)] 
Remove a duplicate ao2_iterator_destroy().

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

15 years agoRemove some unnecessary code.
Russell Bryant [Sun, 11 Oct 2009 17:25:06 +0000 (17:25 +0000)] 
Remove some unnecessary code.

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

15 years agoDon't use data outside of its scope.
Russell Bryant [Sun, 11 Oct 2009 17:22:52 +0000 (17:22 +0000)] 
Don't use data outside of its scope.

The purpose of this code was to have a hangup frame put on the list of deferred
frames.  However, the code that read the hangup frame was outside of the scope
of where the hangup frame was declared.

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

15 years agoSignal timeouts by returning AST_CONTROL_RINGING when originating calls.
Matthew Nicholson [Fri, 9 Oct 2009 18:20:11 +0000 (18:20 +0000)] 
Signal timeouts by returning AST_CONTROL_RINGING when originating calls.
(closes issue #15104)
Reported by: nblasgen
Patches:
      manager-timeout1.diff uploaded by mnicholson (license 96)
Tested by: nblasgen, mnicholson

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

15 years agoFix potential memory leak in app_dial.c
Mark Michelson [Fri, 9 Oct 2009 18:17:12 +0000 (18:17 +0000)] 
Fix potential memory leak in app_dial.c

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

15 years agofixes sip registration using authuser in user.conf
David Vossel [Fri, 9 Oct 2009 17:52:35 +0000 (17:52 +0000)] 
fixes sip registration using authuser in user.conf

(closes issue #14954)
Reported by: tornblad
Tested by: mmichelson, tornblad, dvossel

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

15 years ago'auth=' did not parse md5 secret correctly
David Vossel [Fri, 9 Oct 2009 17:18:54 +0000 (17:18 +0000)] 
'auth=' did not parse md5 secret correctly

(closes issue https://issues.asterisk.org/view.php?id=15949)
Reported by: ebroad
Patches:
      authparsefix.patch uploaded by ebroad (license 878)
      15949_trunk.diff uploaded by dvossel (license 671)
Tested by: ebroad

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

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