Commit Graph

7678 Commits

Author SHA1 Message Date
Leif Madsen
30bc372478 Update these release summaries
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216219 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2.35
2009-09-03 21:35:42 +00:00
Leif Madsen
7ea334fb4e Importing release summary for 1.2.35 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 20:00:26 +00:00
Leif Madsen
ba51fd11b4 Importing files for 1.2.35 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 20:00:21 +00:00
Leif Madsen
f8da8de20c Creating tag for the release of asterisk-1.2.35
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:58:43 +00:00
Russell Bryant
a84fc48984 Fix a typo.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@216087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:37:05 +00:00
Russell Bryant
0a5c91de26 Add a note about IAX2 to UPGRADE.txt.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@216080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:35:23 +00:00
Leif Madsen
ec6a429f85 Importing release summary for 1.2.35 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:28:01 +00:00
Leif Madsen
6081eae406 Importing files for 1.2.35 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:27:57 +00:00
Leif Madsen
9a5df0e13d Creating tag for the release of asterisk-1.2.35
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@216050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 19:26:56 +00:00
Russell Bryant
3fa8ad9c7d Add IAX2 security document related to AST-2009-006.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@216005 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 18:42:24 +00:00
David Vossel
6732590f86 Merge code associated with AST-2009-006
(closes issue #12912)
Reported by: rathaus
Tested by: tilghman, russell, dvossel, dbrooks



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@215958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 16:57:35 +00:00
Leif Madsen
c1d5e1a1a8 Importing release summary for 1.2.35 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@215952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 16:07:56 +00:00
Leif Madsen
13f284ba61 Update ChangeLog
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@215951 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 16:02:15 +00:00
Leif Madsen
a4cf8ac434 Update .version and ChangeLog.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@215946 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 15:57:32 +00:00
Leif Madsen
aedbee6c90 Create 1.2.35 from 1.2.34.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.35@215941 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-09-03 15:49:28 +00:00
Kevin P. Fleming
2ef75b6e63 Convert all release tags to Opsound music-on-hold.
For more details:
http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/



git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.34@212958 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2.34
2009-08-18 20:42:51 +00:00
Kevin P. Fleming
cc0350b8ce Convert this branch to Opsound music-on-hold.
For more details:
http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@212907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-18 20:24:28 +00:00
Kevin P. Fleming
542ca7ab3a remove extraneous property
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@212903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-18 20:23:22 +00:00
Tilghman Lesher
fe64922a78 Importing files for 1.2.34 release.
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.34@211589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-10 19:59:16 +00:00
Tilghman Lesher
e61bb16329 Creating tag for the release of asterisk-1.2.34
git-svn-id: https://origsvn.digium.com/svn/asterisk/tags/1.2.34@211588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-10 19:57:21 +00:00
Tilghman Lesher
4f69043680 Oops, removing properties
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@211527 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-10 19:13:19 +00:00
Tilghman Lesher
2581eeb8e8 AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@211526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-08-10 19:12:35 +00:00
Russell Bryant
5f4befcba9 Ensure apathetic replies are sent out on the proper socket.
chan_iax2 supports multiple address bindings.  The send_apathetic_reply()
function did not attempt to send its response on the same socket that the
incoming message came in on.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@206384 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-07-14 14:45:47 +00:00
David Vossel
c59f154763 Additional updates to AST-2009-001
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@199137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-06-04 18:57:54 +00:00
David Vossel
a989a2432a IAX2 REGAUTH loop
IAX was not sending REGREJ to terminate invalid registrations.  Instead it sent another REGAUTH if the authentication challenge failed.  This caused a loop of REGREQ and REGAUTH frames.  This patch also fixes some compile errors that occured using gcc v4.3.2.

(Related to Security fix AST-2009-001)

(closes issue #14386)
Reported by: sabbathbh



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@194878 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-05-15 22:59:16 +00:00
Tilghman Lesher
be05c4a246 Fix for AST-2009-003
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@186056 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-04-02 17:02:18 +00:00
Tilghman Lesher
6e820514a9 Updates to AST-2009-001
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@170580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-23 19:19:06 +00:00
Tilghman Lesher
a37491c125 1.2 regression on security fix AST-2009-001
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@168632 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-15 01:15:49 +00:00
Kevin P. Fleming
27af3cf46a add license for Allison Smith prompts (AST-162)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@168197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-09 22:10:23 +00:00
Tilghman Lesher
4ed56df62c Security fix AST-2009-001.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@167259 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2009-01-06 20:44:03 +00:00
Tilghman Lesher
f42ada7a25 Fix for AST-2008-012
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@162868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-10 21:06:44 +00:00
Sean Bright
84c5074ec3 Fix build errors on FreeBSD (uint -> unsigned int).
(closes issue #14006)
Reported by: alphaque
Patches:
      astobj2.h-patch uploaded by alphaque (license 259)
      (Slightly modified by seanbright)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@161421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-12-05 20:50:23 +00:00
Tilghman Lesher
932f5ca647 Regression fix for last security fix. Set the iseqno correctly.
(closes issue #13918)
 Reported by: ffloimair
 Patches: 
       20081119__bug13918.diff.txt uploaded by Corydon76 (license 14)
 Tested by: ffloimair


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@159245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-11-25 21:37:06 +00:00
Tilghman Lesher
71fdd7d526 Regression fixes for Solaris
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@136945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-08-09 15:24:36 +00:00
Russell Bryant
643879cabc Fix the IAX2 URI for calling Digium
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@133577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-25 15:00:13 +00:00
Tilghman Lesher
703220f1f4 This part was not correctly patched for AST-2008-010.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@133360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-24 03:46:01 +00:00
Tilghman Lesher
27290e8976 Fixes for AST-2008-010 and AST-2008-011
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@132711 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-07-22 21:14:10 +00:00
Joshua Colp
ec11516f11 Copy the From header into a variable so that pedantic SIP handling does not try to mess with a NULL pointer. (AST-2008-008)
(closes issue #12607)
Reported by: hooi


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@120109 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-06-03 19:30:02 +00:00
Russell Bryant
43ea28d8f6 - Instead of only enforcing destination call number checking on an ACK, check
all full frames except for PING and LAGRQ, which may be sent by older versions
  too quickly to contain the destination call number.
  (As suggested by Tim Panton on the asterisk-dev list)
- Merge changes from team/russell/iax2-frame-race, which prevents PING and LAGRQ
  from being sent before the destination call number is known.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@119237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-30 12:49:39 +00:00
Russell Bryant
ef549fe985 Merge changes from team/russell/iax2-another-fix-to-the-fix
As described in the following post to the asterisk-dev mailing list, only
enforce destination call numbers when processing an ACK.

http://lists.digium.com/pipermail/asterisk-dev/2008-May/033217.html


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@119008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-29 18:45:21 +00:00
Russell Bryant
40520cc2a4 Fix a race condition that bbryant just found while doing some IAX2 testing.
He was running Asterisk trunk running IAX2 calls through a few Asterisk boxes,
however, the audio was extremely choppy.  We looked at a packet trace and saw
a storm of INVAL and VNAK frames being sent from one box to another.

It turned out that what had happened was that one box tried to send a CONTROL
frame before the 3 way handshake had completed.  So, that frame did not include
the destination call number, because it didn't have it yet.  Part of our recent
work for security issues included an additional check to ensure that frames that
are supposed to include the destination call number have the correct one.  This
caused the frame to be rejected with an INVAL.  The frame would get retransmitted
for forever, rejected every time ...

This race condition exists in all versions that got the security changes,
in theory.  However, it is really only likely that this would cause a problem in
Asterisk trunk.  There was a control frame being sent (SRCUPDATE) at the _very_
beginning of the call, which does not exist in 1.2 or 1.4.  However, I am fixing
all versions that could potentially be affected by the introduced race condition.

These changes are what bbryant and I came up with to fix the issue.  Instead of
simply dropping control frames that get sent before the handshake is complete,
the code attempts to wait a little while, since in most cases, the handshake
will complete very quickly.  If it doesn't complete after yielding for a little
while, then the frame gets dropped.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@115564 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-08 19:14:04 +00:00
Russell Bryant
c5c3cb32f1 Remove remnants of dlinkedlists. I didn't actually use them in the final version
of my IAX2 improvements.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@115511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-07 16:22:49 +00:00
Jason Parker
3ce33b090c read requires an argument on some non-bash shells
(closes issue #12593)
Reported by: bkruse
Patches:
      getilbc.sh_12593_v1.diff uploaded by bkruse (license 132)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@115421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-06 19:54:57 +00:00
Russell Bryant
f8d551bd2b Merge changes from team/russell/iax2_find_callno_1.2
These changes address a critical performance issue introduced in the latest
release.  The fix for the latest security issue included a change that made
Asterisk randomly choose call numbers to make them more difficult to guess by
attackers.  However, due to some inefficient (this is by far, an understatement)
code, when Asterisk chose high call numbers, chan_iax2 became unusable after
just a small number of calls.  On a small embedded platform, it would not be
able to handle a single call.  On my Intel Core 2 Duo @ 2.33 GHz, I couldn't
run more than about 16 IAX2 channels.  Ouch.

These changes address some performance issues of the find_callno() function
that have bothered me for a very long time.  On every incoming media frame,
it iterated through every possible call number trying to find a matching
active call.  This involved a mutex lock and unlock for each call number
checked.  So, if the random call number chosen was 20000, then every media
frame would cause 20000 locks and unlocks.  Previously, this problem was
not as obvious since Asterisk always chose the lowest call number it could.

A second container for IAX2 pvt structs has been added.  It is an astobj2
hash table.  When we know the remote side's call number, the pvt goes into
the hash table with a hash value of the remote side's call number.  Then,
lookups for incoming media frames are a very fast hash lookup instead of an
absolutely insane array traversal.

In a quick test, I was able to get more than 3600% more IAX2 channels
on my machine with these changes.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@115296 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-05-05 17:53:26 +00:00
Kevin P. Fleming
a698166af0 stop script from appending source code if run multiple times
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@114822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-29 12:52:32 +00:00
Russell Bryant
38419fb811 When we receive a full frame that is supposed to contain our call number,
ensure that it has the correct one.
(closes issue #10078)
(AST-2008-006)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@114561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-04-22 22:20:35 +00:00
Kevin P. Fleming
8f7422b931 update UPGRADE notes to document usage of the script
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@111125 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-26 19:49:30 +00:00
Kevin P. Fleming
1501383484 add a script to make getting the iLBC source code simple for end users
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@111019 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-26 18:58:37 +00:00
Kevin P. Fleming
3c780866b3 due to licensing restrictions, we cannot distribute the source code for iLBC encoding and decoding... so remove it, and add instructions on how the user can obtain it themselves
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@110869 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-26 15:53:46 +00:00
Russell Bryant
62766834c8 Fix some very broken code that was introduced in 1.2.26 as a part of the security
fix.  The dnsmgr is not appropriate here.  The dnsmgr takes a pointer to an address
structure that a background thread continuously updates.  However, in these cases,
a stack variable was passed.  That means that the dnsmgr thread would be continuously
writing to bogus memory.


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@110335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2008-03-20 21:53:27 +00:00