]> git.ipfire.org Git - thirdparty/asterisk.git/log
thirdparty/asterisk.git
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

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