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
17 years ago
Tilghman Lesher
2581eeb8e8
AST-2009-005
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@211526 65c4cc65-6c06-0410-ace0-fbb531ad65f3
17 years ago
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
18 years ago
Kevin P. Fleming
ffae2ad2fa
install the LICENSE file along with the music files
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
e38a7d523c
move FreePlayMusic files into a subdirectory, and include a license statement for them
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@75251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
c2cfb7ba64
Don't try to install an init script that doesn't exist.
...
Reported to me on #asterisk on Freenode IRC.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@71847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
29aa7c809b
Issue 9121 - fixups for safe_asterisk script
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@63903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
4e779b5b43
Make the number that represents the major version number a single digit instead
...
of 2. Using two digits makes it an octal number when put into version.h, which
breaks the compilation of any out of tree module that checks the version for
any version after 1.2.7 (reported by Matteo Brancaleoni on the asterisk-dev
mailing list, who gave credit to vihai for pointing it out)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@50227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Matt O'Gorman
2cbdcb35b1
app_externalivr needs a real silence file, and additional
...
changes to add silence files into core instead of extra
patch provided by bug 8177 with minor additions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Steve Murphy
283039a071
added hours,minutes,seconds .gsm files to the install portion of the makefile, as per bug 7545
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@42150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
2f0b62b8d3
Bug 7388 - compatibility changes for Solaris
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@36290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
a7961494bd
allow top-level OPTIMIZE setting to affect builds in these subdirectories too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
5d04193649
let the compiler determine whether hardware or software floating point should be used (like we do in the editline subdirectory)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
4397e6dd42
remove extraneous -m64 flag that is not needed
...
remove old 'look' target which is no longer needed
(these are coming from Debian patches <G>)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23636 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
8ecd579aec
do installation in subdirs as a separate target (so external modules can use the Makefile more easily)
...
generate final messages -after- running any post-install script that may be present
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
c3d195a2b3
don't create a 'voicemail' symlink in the sounds directory; app_voicemail has not needed it since January of 2005 (issue #6613 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@19353 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
dbc0f5d2e2
Bug 6638 - Solaris is starting to remind me of RedHat...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@11715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Tilghman Lesher
2dc23188a2
Bug 6638 - Use POSIX command for Solaris
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@11635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Tilghman Lesher
2d5cc8be5c
If debugging, the frame pointer is helpful
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@11607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Tilghman Lesher
a3ce65e5cd
Oops, this was broken in 1.2, too.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@10952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
9849ad993d
don't override ASTERISKVERSIONNUM to 000000 for non-svn builds
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@9086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
018c617199
remove ASTERISKVERSIONNUM from the version string given to doxygen
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
9bbfbacacc
Makefile 'update' target now supports updating from Subversion repositories (issue #5875 )
...
remove support for 'patches' subdirectory, it's no longer useful
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
d6e5eb75ee
remove outdated redhat init script and provide the updated one in 'make rpm' (issue #5786 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7244 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
a563eab49a
remove extraneous svn:executable properties
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
f641c7cd0d
port version string computation from trunk
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
192f7413c2
revert previous change for Darwin
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7174 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
6abe5e1b23
don't hardcode poll.o for Darwin
...
fix incorrect portion of yesterday's Solaris fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
3245bf61a1
issue #5775
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7165 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
9ee13167bb
issue #5787
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7163 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
3a6fae817c
fix the output of Makefile generated variables to doxygen
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-2@7133 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Josh Roberson
892978fb4b
Issue # 5757
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7120 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
296ca06e35
small debugging information change
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7111 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
d8dfa4434d
finish merging doxygen updates from issue #5605
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7096 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
77390dfeaf
issue #5572
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7018 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
145daf44d8
issue #5634 and a little ChangeLog cleanup
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
3fb2544a41
issue #5633
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
018e8c8395
dont-optimize was broken...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
da0d0f975a
stop recompiling cli.c on every 'make'
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6963 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
7ffb604a2f
issue #4678
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
f31f09bf53
there is a variable defined for 'install', might as well use it ...
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6848 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Mark Spencer
4803298fe8
Make crypto loading optional
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6797 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
9ce40204d6
add "hello-world" prompt, courtesy of Jared Smith :)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6782 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Russell Bryant
c0119acc0e
fix a typo, oops!
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6737 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
834193c08a
support a 'post install' script for local modifications after installation
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6700 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
3b7332c5e6
allow some more paths to be overridden on the command line (issue #5292 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
61a0f7a65e
install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
44aff84c2e
use a more generic means to decide whether we need to provide poll/dlfcn functionality (issue #5297 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6664 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
9d63d731aa
fix minor build problem on *BSD (issue #5290 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6658 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago
Kevin P. Fleming
5599da9581
support new version of OSP toolkit (issue #5168 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
21 years ago