Luigi Rizzo
3fc2646808
remove a number of #include <fcntl.h> which are either
...
useless or done elsewhere
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-22 01:03:02 +00:00
Luigi Rizzo
7bcf0529c5
remove some useless includes from codecs
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-19 19:51:55 +00:00
Luigi Rizzo
0595b5e2aa
include "logger.h" and errno.h from asterisk.h - usage shows that they
...
were included almost everywhere.
Remove some of the instances.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-19 18:52:04 +00:00
Luigi Rizzo
fdb7f7ba3d
Start untangling header inclusion in a way that does not affect
...
build times - tested, there is no measureable difference before and
after this commit.
In this change:
use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h
Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.
Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better.
For the time being I have left alone second-level directories
(main/db1-ast, etc.).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-16 20:04:58 +00:00
Kevin P. Fleming
edc78d6023
improve linked-list macros in two ways:
...
- the *_CURRENT macros no longer need the list head pointer argument
- add AST_LIST_MOVE_CURRENT to encapsulate the remove/add operation when moving entries between lists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89106 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-08 05:28:47 +00:00
Tilghman Lesher
7c56918262
Commit some cleanups to the format type code.
...
- Remove the AST_FORMAT_MAX_* types, as these are consuming 3 out of our available 32 bits.
- Add a native slin16 type, so that 16kHz codecs can translate without losing resolution.
(This doesn't affect anything immediately, until another codec has wb support.)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-06 22:51:48 +00:00
Jason Parker
23a02e04c5
Merged revisions 89046 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89046 | qwell | 2007-11-06 13:09:30 -0600 (Tue, 06 Nov 2007) | 4 lines
Correctly set the total number of channels from a zaptel transcoder board.
SPD-49, patch by Matthew Nicholson.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89047 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-11-06 19:10:18 +00:00
Jason Parker
59c9ff7ef2
More changes to change return values from load_module functions.
...
(issue #11096 )
Patches:
codec_adpcm.c.patch uploaded by moy (license 222)
codec_alaw.c.patch uploaded by moy (license 222)
codec_a_mu.c.patch uploaded by moy (license 222)
codec_g722.c.patch uploaded by moy (license 222)
codec_g726.c.diff uploaded by moy (license 222)
codec_gsm.c.patch uploaded by moy (license 222)
codec_ilbc.c.patch uploaded by moy (license 222)
codec_lpc10.c.patch uploaded by moy (license 222)
codec_speex.c.patch uploaded by moy (license 222)
codec_ulaw.c.patch uploaded by moy (license 222)
codec_zap.c.patch uploaded by moy (license 222)
format_g723.c.patch uploaded by moy (license 222)
format_g726.c.patch uploaded by moy (license 222)
format_g729.c.patch uploaded by moy (license 222)
format_gsm.c.patch uploaded by moy (license 222)
format_h263.c.patch uploaded by moy (license 222)
format_h264.c.patch uploaded by moy (license 222)
format_ilbc.c.patch uploaded by moy (license 222)
format_jpeg.c.patch uploaded by moy (license 222)
format_ogg_vorbis.c.patch uploaded by moy (license 222)
format_pcm.c.patch uploaded by moy (license 222)
format_sln.c.patch uploaded by moy (license 222)
format_vox.c.patch uploaded by moy (license 222)
format_wav.c.patch uploaded by moy (license 222)
format_wav_gsm.c.patch uploaded by moy (license 222)
res_adsi.c.patch uploaded by eliel (license 64)
res_ael_share.c.patch uploaded by eliel (license 64)
res_clioriginate.c.patch uploaded by eliel (license 64)
res_convert.c.patch uploaded by eliel (license 64)
res_indications.c.patch uploaded by eliel (license 64)
res_musiconhold.c.patch uploaded by eliel (license 64)
res_smdi.c.patch uploaded by eliel (license 64)
res_speech.c.patch uploaded by eliel (license 64)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87889 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-31 19:24:29 +00:00
Kevin P. Fleming
a4b8ca220d
clean up assembler and preprocessor files if they are here too
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87467 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-29 22:24:44 +00:00
Jason Parker
ebe4050128
Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-22 20:05:18 +00:00
Jason Parker
b0f3e6097e
Convert NEW_CLI to AST_CLI.
...
Closes issue #11039 , as suggested by seanbright.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-19 18:29:40 +00:00
Jason Parker
65761cbd7a
More changes to NEW_CLI.
...
Also fixes a few cli messages and some minor formatting.
(closes issue #11001 )
Reported by: seanbright
Patches:
newcli.1.patch uploaded by seanbright (license 71)
newcli.2.patch uploaded by seanbright (license 71)
newcli.4.patch uploaded by seanbright (license 71)
newcli.5.patch uploaded by seanbright (license 71)
newcli.6.patch uploaded by seanbright (license 71)
newcli.7.patch uploaded by seanbright (license 71)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86534 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-19 18:01:00 +00:00
Russell Bryant
45109d88f0
Merged revisions 86296 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r86296 | russell | 2007-10-18 10:45:55 -0500 (Thu, 18 Oct 2007) | 3 lines
Execute the RELEASE operation on transcoder channels in the destroy callback.
(patch from jsloan)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@86297 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-18 15:57:30 +00:00
Russell Bryant
9e05e0db04
The trunk version of this patch also includes a couple more small clean fixes
...
from IgorG.
Merged revisions 84170 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r84170 | russell | 2007-10-01 10:00:56 -0500 (Mon, 01 Oct 2007) | 3 lines
Remove another file in "make clean".
(closes issue #10814 , paravoid)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84171 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-10-01 15:06:14 +00:00
Joshua Colp
c23f7d8b38
Merged revisions 82265 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r82265 | file | 2007-09-11 18:41:49 -0300 (Tue, 11 Sep 2007) | 4 lines
(closes issue #10679 )
Reported by: andrew
Build under dev mode when K6OPTS is enabled.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-09-11 21:43:47 +00:00
Kevin P. Fleming
f5032ab89c
Merged revisions 81405 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r81405 | kpfleming | 2007-08-31 10:51:45 -0500 (Fri, 31 Aug 2007) | 2 lines
add missing "transcoder show" (and deprecated "show transcoder") CLI commands that were in 1.2 but never added to 1.4
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-31 15:58:31 +00:00
Steve Murphy
337c44236d
This change set fixes bug 8126 in trunk. It is implemented via compile time options, activated via the menuselect stuff, which defaults to the old way. non-zero sample data added. Translate tables expressed in microseconds instead of milliseconds, with 5-digit data now instead of 3, giving 2 more digits of precision.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@80113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-20 22:53:48 +00:00
Tilghman Lesher
56b9568164
Don't reload a configuration file if nothing has changed.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-08-16 21:09:46 +00:00
Russell Bryant
f8483a0d04
Do a massive conversion for using the ast_verb() macro
...
(closes issue #10277 , patches by mvanbaak)
Basically, this changes ...
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3, "Something\n");
to ...
ast_verb(3, "Something\n");
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@77299 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-07-26 15:49:18 +00:00
Russell Bryant
055d82cbce
Add a massive set of changes for converting to use the ast_debug() macro.
...
(issue #9957 , patches from mvanbaak, caio1982, critch, and dimas)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-14 19:39:12 +00:00
Tilghman Lesher
9d05ff8ed5
Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-06-06 21:20:11 +00:00
Jason Parker
4aaa1d1ec1
Merged revisions 65877 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r65877 | qwell | 2007-05-24 11:14:02 -0400 (Thu, 24 May 2007) | 4 lines
Fix handling of zero-length frames when a codec is capable of native PLC.
Issue 9183, patch by Mihai.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65903 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-24 15:28:29 +00:00
Joshua Colp
2e6c6f55a3
Merged revisions 64278 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r64278 | file | 2007-05-14 14:48:33 -0400 (Mon, 14 May 2007) | 2 lines
Properly set datalen field when doing PLC in codec_speex. (issue #9722 reported by mihai)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@64279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-05-14 18:49:40 +00:00
Jason Parker
fdbb94bb19
Merged revisions 62174 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r62174 | qwell | 2007-04-27 11:17:46 -0500 (Fri, 27 Apr 2007) | 11 lines
Merged revisions 62173 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r62173 | qwell | 2007-04-27 11:16:16 -0500 (Fri, 27 Apr 2007) | 3 lines
This transcoder message needn't be a NOTICE.
I've seen it cause confusion more than a few times.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@62175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-27 16:18:51 +00:00
Kevin P. Fleming
74076f6368
Merged revisions 60399 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r60399 | kpfleming | 2007-04-06 09:49:51 -0500 (Fri, 06 Apr 2007) | 10 lines
Merged revisions 60398 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r60398 | kpfleming | 2007-04-06 09:41:37 -0500 (Fri, 06 Apr 2007) | 2 lines
remove undocumented 'cardsmode' parameter and stop searching for transcoders during reload()
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60400 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-04-06 14:53:13 +00:00
Russell Bryant
40f7aad86f
Sync codec_zap with the one that is in the 1.4 branch so that it can actually
...
build here, too.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58101 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-03-06 22:15:02 +00:00
Olle Johansson
bc01e39174
Creating new doxygen macro "\extref" to create page that lists
...
external libraries and URLs to these. Please help me add these
references.
We might want to create a similar macro "\linuxpackage" to list
the needed Linux packages in popular distributions.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@56647 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-24 19:27:50 +00:00
Joshua Colp
ca635f3407
Return GSM to a state where it actually builds under dev mode.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-18 19:13:17 +00:00
Russell Bryant
7c869e6f98
Merged revisions 55050 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r55050 | russell | 2007-02-16 18:31:42 -0600 (Fri, 16 Feb 2007) | 3 lines
Filter out yet another architecture that does not work with the optimizations
in the built-in libgsm. (issue 8637, ovi)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@55051 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-17 00:32:16 +00:00
Paul Cadach
bc7e4c2ef2
I don't know how it worked earlier, but valgrind
...
produces core every time you try to load codec_g722.
Fixed. ;-)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-02-14 08:34:10 +00:00
Russell Bryant
f722121ca0
Merged revisions 52997 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r52997 | russell | 2007-01-30 17:23:24 -0600 (Tue, 30 Jan 2007) | 5 lines
When we are checking for a system installed version of libgsm, we need to check
for gsm.h as well. Furthermore, when checking for this header, it may be
located in a gsm/ sub directory, so check for that, as well.
(issue #8773 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@52998 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-30 23:27:16 +00:00
Russell Bryant
73409003e2
Merged revisions 51331 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r51331 | russell | 2007-01-19 13:30:54 -0600 (Fri, 19 Jan 2007) | 3 lines
Add a couple more processors that need optimizations excluded.
(issue #8637 )
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 19:31:54 +00:00
Luigi Rizzo
b005ea3eee
include "asterisk/zapata.h" to get the zaptel headers
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51294 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-19 16:24:11 +00:00
Joshua Colp
5a9d7bb9ad
Move channel acquisition to when the translation path is setup, and clean up.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-08 21:40:45 +00:00
Joshua Colp
130eb5602f
It is possible for framein to get called and no channel be available, so do a check before we increment the count.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49716 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:51:43 +00:00
Matt O'Gorman
7cb197a5b7
no need to spam everyone with show transcoder messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49709 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:31:33 +00:00
Jason Parker
cdd63e685d
Merged revisions 49705 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49705 | qwell | 2007-01-05 17:16:16 -0600 (Fri, 05 Jan 2007) | 4 lines
Make codec_zap and chan_zap also depend on zaptel.
This fixes an issue (8727) with zaptel being in a different directory, using --with-zaptel.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49706 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-05 23:17:45 +00:00
Kevin P. Fleming
ec2ae45651
Merged revisions 49457,49460-49461 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49457 | kpfleming | 2007-01-04 12:05:47 -0600 (Thu, 04 Jan 2007) | 2 lines
make building of codec_gsm against the system GSM library actually work
........
r49460 | kpfleming | 2007-01-04 12:16:40 -0600 (Thu, 04 Jan 2007) | 2 lines
don't define this type either if LOW_MEMORY is enabled
........
r49461 | kpfleming | 2007-01-04 12:17:01 -0600 (Thu, 04 Jan 2007) | 2 lines
don't do frame header caching in the core if LOW_MEMORY is defined
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49463 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-04 18:19:55 +00:00
Kevin P. Fleming
cb97e0c353
Merged revisions 49102 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r49102 | kpfleming | 2007-01-01 17:34:35 -0600 (Mon, 01 Jan 2007) | 2 lines
check specifically for VLDTMF and transcoding support in the system's Zaptel installation, and make only the modules that need those features dependent on them (this will allow building the other Zaptel-using parts of Asterisk against older versions of Zaptel or those on other platforms that haven't caught up yet to the Linux version)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@49103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2007-01-01 23:43:43 +00:00
Luigi Rizzo
6ecb175193
provide INT16_MIN and INT16_MAX for platforms where they are not defined.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-25 06:42:15 +00:00
Steve Murphy
3a84f2a6ee
This little mod gets rid of that g722 compiler warning that breaks builds configured with --enable-dev-mode; the previous commit of 48767 was to merge in changes for bug 6334, unifying the open mode arguments for saner operation.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48781 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 20:15:20 +00:00
Matthew Fredrickson
5fc6bdcac9
Minor addition giving props to Steve Underwood for his hard work. Thanks again
...
Steve!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48662 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 00:11:00 +00:00
Matthew Fredrickson
ba71665924
Add codec G.722 support.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48661 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-21 00:08:21 +00:00
Kevin P. Fleming
920de98f68
Merged revisions 48554 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r48554 | kpfleming | 2006-12-18 05:59:24 -0600 (Mon, 18 Dec 2006) | 3 lines
remove some now-unnecessary explicit includes of autoconfig.h
clean up per-file dependencies during 'make clean'
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48555 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-18 11:59:48 +00:00
Matt O'Gorman
25833b5aa2
support for deactivating translation paths that are no longer available
...
and more descriptive show transcoder cli command.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-13 21:23:54 +00:00
Matt O'Gorman
90f9e5fc33
fixed nubb error on my part, transcoder now unlocks and locks correctly, as well as counts in the correct direction.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48415 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-12 19:55:39 +00:00
Matt O'Gorman
d45644b3ce
add support for dynamic channel creation and destruction, and
...
show transcoder to show number of channels in use.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-12-11 21:04:41 +00:00
Russell Bryant
0a280a1abc
resolve a couple of compiler warnings
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48098 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-28 23:04:36 +00:00
Matt O'Gorman
a19602869b
oops no parens
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 22:40:01 +00:00
Matt O'Gorman
43aefe9116
fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-11-13 22:01:43 +00:00