Archived
14
0
Fork 0
Commit graph

13890 commits

Author SHA1 Message Date
mmichelson
40ff1f7b41 There existed about a 1 in 4 billion chance that reading from /dev/urandom
would return LONG_MIN (1 in 9 quintillion if using 64-bit longs). Since there
is no positive equivalent of LONG_MIN, the result of labs() in this case is
unpredictable. This fixes that situation.

(closes issue #11336, reported and patched by sperreault)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89487 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 18:19:22 +00:00
russell
c0db75dd30 Fix some code that was supposed to ensure that a buffer was terminated, but was
writing to the wrong byte.  Also, remove some non-thread safe test code.

(closes issue #11317)
Reported by: IgorG
Patches:
      unistim-2.patch uploaded by IgorG (license 20)
	  - additional changes by me


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89484 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 16:24:17 +00:00
mmichelson
a83ecf2fb3 I introduced a deadlock avoidance into 1.4, which I attempted to port to trunk as well.
Unfortunately, since trunk uses read/write locks for the context lock, it means that I have
actually *introduced* a deadlock condition since they are not recursive. Removing this change
for now and will look into introducing a different one.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89483 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 16:08:12 +00:00
kpfleming
6d30ebbac7 move these forward declarations back to asterisk.h where they belong... even though asterisk.h includes compat.h, these declarations have nothing to do with the being platform-compatible and are directly related to being part of Asterisk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89482 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 16:07:11 +00:00
kpfleming
606225a568 get this to actually compile...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89481 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 15:45:56 +00:00
kpfleming
ffdbfcd8de remove some debugging code that doesn't compile on 64-bit platforms
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89480 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 15:29:39 +00:00
murf
3f8a1884ec OOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89479 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 15:17:12 +00:00
murf
675fa772c0 closes issue #11265; Thanks to snuffy for his work on neatening up the code and removing duplicated code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89478 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 15:11:43 +00:00
rizzo
19e4a6457f remove this file, it is not used anywhere.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89477 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 08:28:27 +00:00
rizzo
4b0514e37c add missing paths.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89476 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 01:35:30 +00:00
rizzo
076f1b61c3 add check for video4linux
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89475 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 01:29:45 +00:00
murf
b1bcb60bea A free in add_pri was ultimately the source of the grief we were having with parking. This set of changes fixes that problem, and introduces some more error messages, and puts debugs into ifdefs for what could be short-term usage. Txs to Terry W. for his help, guidance, and especially patience.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89474 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 01:09:47 +00:00
rizzo
0043b6cd58 more header removal/normalization
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89473 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 00:23:49 +00:00
rizzo
4f4d5cb3bf X11 checks (at least some - for other platforms with
unusual X11 locations you might need to add more directories)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89472 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 00:22:41 +00:00
russell
855aea6095 Merge changes from team/russell/sla_trunk_moh ...
* Added the ability to specify the music on hold class used to play into the
   conference when there is only one member and the M option is used.
* Added the ability to specify a music on hold class to play instead of ringing
   for the SLATrunk application.

(patched by me, and tested internally)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89470 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 00:21:38 +00:00
rizzo
dd9eedf286 complete support for X11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89469 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21 00:20:08 +00:00
tilghman
1688610395 Make trunk build again
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89468 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 23:29:33 +00:00
tilghman
07742d8fe2 Add support for new recorded character sounds
Closes issue #5208


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89467 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 23:28:57 +00:00
rizzo
89d8d78652 move asterisk/paths.h outside asterisk.h and into those files
who really need it.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89466 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 23:16:15 +00:00
rizzo
8d3385f534 move internal function declarations to include/asterisk/_private.h
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89465 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 22:18:21 +00:00
russell
e616a7a4e2 i got a little carried away with commas ...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89464 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 19:29:08 +00:00
kpfleming
7c35bb6a7f switch compile-time option checking to string storage mode in this branch too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89463 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 19:28:10 +00:00
russell
efe22b0c45 fix the zaptel configure script check
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89460 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 19:11:18 +00:00
rizzo
a9d77064e7 the 'version' is now $7 not $6
(wait a bit before regenerating configure, i have more changes)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89459 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 18:20:25 +00:00
mmichelson
8591091cd8 Merged revisions 89457 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89457 | mmichelson | 2007-11-20 11:50:31 -0600 (Tue, 20 Nov 2007) | 9 lines

According to comments in main/pbx.c, it is essential that if we are going to lock
the conlock as well as the hints lock, it must be locked in that respective order.
In order to prevent a potential deadlock, we need to lock the conlock prior to 
locking the hints lock in ast_hint_state_changed (see the call stack example on
issue #11323 for how this can happen).

(closes issue #11323, reported  by eelcob, suggestion for patch by eelcob, patch by me)


........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89458 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 17:59:00 +00:00
rizzo
00f85a0666 prepare to support console_video
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89455 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 17:11:12 +00:00
rizzo
03ef197f9e Fix building of modules under cygwin.
After this commit we can actually load modules under windows,
and we can start debugging more interesting problems related
to the load order and functionality of modules.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89454 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 16:12:10 +00:00
mmichelson
1312fe17be Changed occurrences of "busy-level" to "busylevel" in sip.conf.sample
in light of commit 89441. Thanks to pj for pointing out the need for this

(closes issue #11307, reported by pj)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89453 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 16:11:19 +00:00
rizzo
8c6e113ab5 add an argument for extra headers to AC_EXT_LIB_CHECK,
and on passing simplify the code.
Too bad that every time we need to regenerate configure...



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89452 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 15:39:00 +00:00
murf
1084f843d7 Merged revisions 89450 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r89450 | murf | 2007-11-20 08:22:08 -0700 (Tue, 20 Nov 2007) | 1 line

closes issue #11324; break statements missing in switch cases.
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89451 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 15:30:48 +00:00
file
87a84acde8 Minor documentation tweak and if an incorrect parameter is given to core show translation return the usage information.
(closes issue #11316)
Reported by: eliel
Patches:
      translate.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89449 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 15:00:41 +00:00
rizzo
26957ae033 comment a bit the code in acinclude.m4
There is still a lot of code to clean up there, but hopefully
this should clarify what goes on in there.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89448 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 14:54:52 +00:00
file
09688d2a03 Include the compatibility header file in ast_h323.cxx for compatibility reasons.
(closes issue #11311)
Reported by: falves11


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89447 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 14:49:32 +00:00
oej
757cdf0317 Fix sip show history.
Closes issue #11312


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89446 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 14:44:26 +00:00
oej
4d1cce0b2b Change terminology a bit for CLI commands handling SIP channels/calls/dialogs/whatever.
Closes issue #11312


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89444 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 08:36:32 +00:00
rizzo
e87c861cca initial makefile changes to build loadable modules under cygwin
(not complete yet - still need to sort out dependecies on res_*)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89443 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 07:42:38 +00:00
murf
594f71fdcb Get rid of some debug messages in pbx.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89442 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-20 00:17:15 +00:00
mmichelson
951d8aae90 Changed the "busy-level" option in sip.conf to "busylevel" to be more parallel
with the SIPPEER() argument of the same name. The deprecation procedure is not
being used here since this is a trunk-only option.

(closes issue #11307, reported by pj, patched by me)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89441 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 23:24:35 +00:00
russell
7bdba4b8b1 Be a bit more pedantic about the type for holding the md5 sum for the build options.
Also, doxygenify the comment.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89440 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 23:03:37 +00:00
russell
6c73909270 Make the SYSINFO documentation reflect which options were compiled in
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89439 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 23:03:02 +00:00
murf
096ab948ca These changes were made in response to niklas@tese.se's letter of 11-17-2007, where he had 20 and 201 in two different contexts, included in the same context. In that particular case, we were behaving the same as 1.4, but after experimenting, I quickly found that if 20 and 201 were in the same extension, 1.4 would return 201, and this code returns 20. These changes now enable the current code to replicate the behavior of 1.4 in respect to MATCHMORE in cases like this.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89438 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 22:55:38 +00:00
rizzo
f21fd57280 another few errno.h removals
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89433 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 21:18:14 +00:00
rizzo
7f3cce8be2 more errno.h removal
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89432 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 21:12:08 +00:00
rizzo
144827d5ec remove unnecessary headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89431 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 21:04:04 +00:00
rizzo
5e75696a42 remove some unnecessary includes.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89430 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 20:42:06 +00:00
tilghman
2912efc2d6 Change delimiter of SIPPEER to be comma (instead of pipe) and further deprecate the old ':' delimiter
Reported by: pj
Patch by: tilghman
Closes issue #11305


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89429 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 20:13:40 +00:00
rizzo
e8c3c0d206 remove some useless includes from codecs
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89428 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 19:51:55 +00:00
rizzo
23b2fc1a19 format handlers don't need network, lock, channel and scheduler headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89427 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 19:41:16 +00:00
rizzo
f89608896c move the declaration of struct ast_channel ast_frame and ast_module
to compat.h so it is always available - hopefully this will let
us reduce the number of inclusions of channel.h and frame.h



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89426 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 19:36:32 +00:00
rizzo
0cc47e4221 another bunch of include removals (errno.h and asterisk/logger.h)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89425 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 19:09:03 +00:00