summaryrefslogtreecommitdiff
path: root/channels
AgeCommit message (Collapse)Author
2007-12-29Move grabbers definitions to a separate file, vgrabbers.c, so it is easierLuigi Rizzo
to add more entries. This required moving struct grab_desc to the common header, and adding an entry in the Makefile. On passing, cleanup some comments and file headers (some are still missing). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95313 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-29virtualize the interface for video grabbers, which shouldLuigi Rizzo
make it easier to add support for more grabbers (V4L2, firewire, and so on). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28Add a few entries up to 1408x1152 in the table of known video resolutions.Luigi Rizzo
This makes it very convenient to enlarge images using the right-click on the video window. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28change the interface of video encapsulation routines, they onlyLuigi Rizzo
need the buffer and mtu as input. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28various rearrangements and renaming of console_video stuffLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28Merged revisions 95191 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r95191 | russell | 2007-12-28 12:24:59 -0600 (Fri, 28 Dec 2007) | 6 lines Remove duplicate increment of the header count in the add_header() function. (closes issue #11648) Reported by: makoto Patch provided by sergee, committed patch by me, inspired by comments from putnopvut ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-28fix a small bug in printing out geometries - wrong input.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27remove useless castsLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95068 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27Merged revisions 94924 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94924 | file | 2007-12-27 13:32:15 -0400 (Thu, 27 Dec 2007) | 6 lines Include types.h in chan_h323 as without it it can not be compiled on some operating systems like FreeBSD to name one. (closes issue #11585) Reported by: sobomax Patches: chan_h323.c.diff uploaded by sobomax (license 359) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27Merged revisions 94905 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94905 | file | 2007-12-27 13:27:11 -0400 (Thu, 27 Dec 2007) | 4 lines Use ast_strlen_zero to see if our_contact is set or not on the dialog. It is possible for it to be a pointer to NULL. (closes issue #11557) Reported by: FuriousGeorge ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27more localization of gui stuffLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94904 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27more steps to decouple the gui from the rest of the code.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-27Enable building the code even if SDL is not present (similarly,Luigi Rizzo
SDL is also detected at runtime). Now we should be able to stream video even without a rendering device (useful for remote monitoring). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94822 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26more localizations around sdl_setupLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26use fread instead of mmap to read in the comment area from the keypad.Luigi Rizzo
fread is simpler and more portable, and there is no performance gain in using mmap. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26Allow more spans than 32. Also, rearrange compiler flags so the most oftenTilghman Lesher
used flags appear closer to the top. Reported by: tzafrir Patch by: tzafrir,tilghman (Closes issue #11528) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26another bunch of gui localizationsLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94817 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26more localization of sdl stuffLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26move more gui stuff into console_gui.cLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26more preparation for untangling of the various console_video stuffLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94805 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26Convert raw bits for callprogress bitfield to use constants, for greater ↵Tilghman Lesher
code clarity Reported by: dimas Patch by: dimas (Closes issue #11280) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94795 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26Fix a bug in peer handling that caused multiple instances of a peer to end upRussell Bryant
in the peers container after a reload. Somehow, this bug doesn't exist in 1.4 ... (closes issue #11626) (reported by pnlarsson, additional info from mvanbaak, fixed by me) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-26Split console_video.c so that video codecs and gui functionsLuigi Rizzo
are in separate files (still #include'd because of tangling in the data structures, but this is going to be cleaned up). The video grabbing functions still need to be moved to a separate file. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-25Change the abbreviated TON from 'A' to 'V', since 'A' is a legitimate DTMFTilghman Lesher
character. Also, fix the documentation to match the code. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-23support sdl_videodriver to send output to x11/aalib/consoleLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-23move reading info from the keypad to a separate function.Luigi Rizzo
Remove an unused keypad field and some debugging messages. Adjust formatting on config file parsing git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94736 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-23make sure the minimum surface depth is 16bpp so we can create YUVoverlays.Luigi Rizzo
With this change we can do setenv SDL_VIDEODRIVER aalib and output to an ascii window (which is still in an X11 window). If you also do unsetenv DISPLAY then the output goes into the main asterisk window, unfortunately it interferes with the normal output so you don't see much. In any case, i don't think we are very far away from having a working xterm videophone! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-23avoid rebuilding dependent files if the generated busy.h and ringtone.hLuigi Rizzo
do not change. Ths masks (but does not solve) a but that i am seeing in doing a 'gmake install' without donig a 'gmake all' first. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-23Merged revisions 94660 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94660 | tilghman | 2007-12-22 19:21:03 -0600 (Sat, 22 Dec 2007) | 2 lines Argh... I suppose third time's the charm. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-22Change the name of config file entries for keypad regionsLuigi Rizzo
from 'keypad_entry' to 'region'. Fix the example file accordingly. Also make some fixes in the code do reset entries on reload of the keypad. The recently committed kpad2.jpg has the correct names. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-22Build console_video support by linking in, as opposed to including,Luigi Rizzo
console_video.c This will ease the task of splitting console_video.c into its components (V4L and X11 grabbers, various video codecs and packetizers, SDL), as well as ease future extensions (e.g. additional video sources, codecs and rendering engines). For the time being nothing changes for users: video support is off by default, and requires -DHAVE_VIDEO_CONSOLE on the command line to be included (if SDL and FFMPEG are available). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94615 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-21We should only clear this value if we have toMatthew Fredrickson
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-21Commit non TCP transport part of #11506. Includes numerous additional ↵Matthew Fredrickson
parameters, as well as RLT support for DMS type switches git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-20Merged revisions 94256 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r94256 | russell | 2007-12-20 14:22:22 -0600 (Thu, 20 Dec 2007) | 13 lines Merged revisions 94255 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r94255 | russell | 2007-12-20 14:21:41 -0600 (Thu, 20 Dec 2007) | 5 lines Fix another potential seg fault ... (closes issue #11606) Reported by: dimas ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94257 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-20Merged revisions 94251 via svnmerge from Russell Bryant
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r94251 | russell | 2007-12-20 14:08:42 -0600 (Thu, 20 Dec 2007) | 10 lines Fix a deadlock in d-channel handling in chan_zap. This deadlock was introduced by the fix to ensure that channels are properly locked when handling channel variables. There were sections of this code where the channel pvt was locked before the channel lock, when in fact it _must_ be the other way around. (closes issue #11582) Reported by: bugi ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94252 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-20add some macros to simplify parsing the config file,Luigi Rizzo
see description in config.h . They are a variant of the set of macros i used in chan_oss.c, structured in a way to be more robust to the presence of spurious ';' - basically, they define wrappers for 'do {' and '} while (0)', plus some helper functions to deal with simple cases such as ast_copy_string, ast_malloc, strtoul, ast_true ... The prefix (CV_ as 'Config Variable') tries to be easy to remember and has been chosen to not conflict with other existing macros in the tree. For the time being, I have only updated the three source files in the tree that used the old M_* macros. Hopefully, more files will be converted. NOTE: I understand that inventing my own dialect of C is generally wrong; however, the lack of adequate support in the language encourages lazy programming practices (such as ignoring errors, bounds, etc.) and this increases the chance of vulnerability in the code, especially because we are parsing user input here. Hopefully, these macros and the use of ast_parse_arg (in config.h) should encourage the programmer to write more robust code. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94191 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-19Add instructions on how to generate your own font.Luigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-19Merged revisions 93949 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93949 | tilghman | 2007-12-19 11:04:13 -0600 (Wed, 19 Dec 2007) | 3 lines Avoid segfault in chan_iax when peer isn't defined (Closes issue #11602) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93952 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-19Adding the ability to specify the To: header in an outbound INVITEOlle Johansson
by adding an exclamation mark to the dial string. This patch also exists for 1.4 in the fixtoheader-1.4 branch and has been in production for quite some time. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18Move some warnings away to debug since some devices send a packet with a sillyOlle Johansson
string as a NAT keepalive packet. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18Merged revisions 93668 via svnmerge from Tilghman Lesher
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r93668 | tilghman | 2007-12-18 12:29:39 -0600 (Tue, 18 Dec 2007) | 10 lines Merged revisions 93667 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r93667 | tilghman | 2007-12-18 12:23:06 -0600 (Tue, 18 Dec 2007) | 2 lines Fixing AST-2007-027 (Closes issue #11119) ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18make configuration variable const so they are not accidentallyLuigi Rizzo
modified. This requires casting the strings in asterisk.c when writing to them, so we do it through a macro to do it consistently. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93603 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18remove unnecessary (char *) casts for ast_config_AST_* variables.Luigi Rizzo
There are some left in the .flex files, left to the maintainer... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93582 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18You... will... build! I say so and therefore you will.Joshua Colp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93514 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-18minor cleanupsKevin P. Fleming
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17fix building under cygwin.Luigi Rizzo
At this point WINARCH should go away. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17remove some unnecessary includesLuigi Rizzo
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17surprising as it may be, chan_oss compiles correctly under cygwin as well,Luigi Rizzo
provided you look for soundcard.h in the right place... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17Merged revisions 93182 via svnmerge from Olle Johansson
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93182 | oej | 2007-12-17 08:15:13 +0100 (MÃ¥n, 17 Dec 2007) | 8 lines Issue 11574: Add dependencies on res_monitor and res_features. I wonder if Asterisk can run at all without res_features. My guess is that there's propably a lot of more modules and the core that depends on it. Reported by: caio1982 (closes issue #11574) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93335 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-12-17Merged revisions 93250 via svnmerge from Joshua Colp
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r93250 | file | 2007-12-17 14:05:55 -0400 (Mon, 17 Dec 2007) | 6 lines If a call is received with a called number IE containing nothing go to the 's' extension. (closes issue #9099) Reported by: kb1_kanobe2 Patches: 20070906__9099.diff.txt uploaded by Corydon76 (license 14) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93252 65c4cc65-6c06-0410-ace0-fbb531ad65f3