dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

317 Commits

Author SHA1 Message Date
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 9cf442d7f7 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: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19 18:52:04 +00:00
rizzo 883346d64a 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: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16 20:04:58 +00:00
kpfleming a45a413db3 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: http://svn.digium.com/svn/asterisk/trunk@89106 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-08 05:28:47 +00:00
tilghman 4b2fc9d3e7 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: http://svn.digium.com/svn/asterisk/trunk@89071 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 22:51:48 +00:00
qwell 6314703e32 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: http://svn.digium.com/svn/asterisk/trunk@89047 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06 19:10:18 +00:00
qwell 9e15a0e72b 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: http://svn.digium.com/svn/asterisk/trunk@87889 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-31 19:24:29 +00:00
kpfleming 5aafb5a5e4 clean up assembler and preprocessor files if they are here too
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@87467 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-29 22:24:44 +00:00
qwell 7756b987a0 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-22 20:05:18 +00:00
qwell d542122e6a Convert NEW_CLI to AST_CLI.
Closes issue #11039, as suggested by seanbright.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86536 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 18:29:40 +00:00
qwell 4723d35127 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: http://svn.digium.com/svn/asterisk/trunk@86534 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-19 18:01:00 +00:00
russell a51f0482f6 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: http://svn.digium.com/svn/asterisk/trunk@86297 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-18 15:57:30 +00:00
russell 08c7dd2cbd 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: http://svn.digium.com/svn/asterisk/trunk@84171 f38db490-d61c-443f-a65b-d21fe96a405b
2007-10-01 15:06:14 +00:00
file e4953f8f10 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: http://svn.digium.com/svn/asterisk/trunk@82266 f38db490-d61c-443f-a65b-d21fe96a405b
2007-09-11 21:43:47 +00:00
kpfleming 44f5ebb9b4 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: http://svn.digium.com/svn/asterisk/trunk@81408 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-31 15:58:31 +00:00
murf 8b5681e22a 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: http://svn.digium.com/svn/asterisk/trunk@80113 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-20 22:53:48 +00:00
tilghman dbec3d56c1 Don't reload a configuration file if nothing has changed.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@79747 f38db490-d61c-443f-a65b-d21fe96a405b
2007-08-16 21:09:46 +00:00
russell 4f3c4dc7f2 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: http://svn.digium.com/svn/asterisk/trunk@77299 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-26 15:49:18 +00:00
russell f042431847 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: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14 19:39:12 +00:00
tilghman eb5d461ed4 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@67864 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-06 21:20:11 +00:00
qwell 943e4bad3d 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: http://svn.digium.com/svn/asterisk/trunk@65903 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-24 15:28:29 +00:00
file d185cf4928 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: http://svn.digium.com/svn/asterisk/trunk@64279 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-14 18:49:40 +00:00
qwell c648b0d70f 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: http://svn.digium.com/svn/asterisk/trunk@62175 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-27 16:18:51 +00:00
kpfleming 7337a7aeb1 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: http://svn.digium.com/svn/asterisk/trunk@60400 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06 14:53:13 +00:00
russell 14465f3016 Sync codec_zap with the one that is in the 1.4 branch so that it can actually
build here, too.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58101 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-06 22:15:02 +00:00
oej 9df447ca21 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: http://svn.digium.com/svn/asterisk/trunk@56647 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-24 19:27:50 +00:00
file 5623241a75 Return GSM to a state where it actually builds under dev mode.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55352 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-18 19:13:17 +00:00
russell 1dcb8c3a4b 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: http://svn.digium.com/svn/asterisk/trunk@55051 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-17 00:32:16 +00:00
pcadach 81d103d263 I don't know how it worked earlier, but valgrind
produces core every time you try to load codec_g722.

Fixed. ;-)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@54325 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-14 08:34:10 +00:00
russell 137db7490c 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: http://svn.digium.com/svn/asterisk/trunk@52998 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-30 23:27:16 +00:00
russell 5e125dba8f 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: http://svn.digium.com/svn/asterisk/trunk@51332 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-19 19:31:54 +00:00
rizzo de9af03a02 include "asterisk/zapata.h" to get the zaptel headers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51294 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-19 16:24:11 +00:00
file 0c89202c3b Move channel acquisition to when the translation path is setup, and clean up.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@50075 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-08 21:40:45 +00:00
file 60c952cca8 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: http://svn.digium.com/svn/asterisk/trunk@49716 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:51:43 +00:00
mogorman cf7c7b4b3d no need to spam everyone with show transcoder messages
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@49709 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:31:33 +00:00
qwell e7bc786d4a 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: http://svn.digium.com/svn/asterisk/trunk@49706 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-05 23:17:45 +00:00
kpfleming f409b5bba7 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: http://svn.digium.com/svn/asterisk/trunk@49463 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04 18:19:55 +00:00
kpfleming 6fa0d7528f 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: http://svn.digium.com/svn/asterisk/trunk@49103 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-01 23:43:43 +00:00
rizzo 5b422bc30d provide INT16_MIN and INT16_MAX for platforms where they are not defined.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48959 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25 06:42:15 +00:00
murf 15651de8c0 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: http://svn.digium.com/svn/asterisk/trunk@48781 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 20:15:20 +00:00
mattf 42d5f3c8a4 Minor addition giving props to Steve Underwood for his hard work. Thanks again
Steve!


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48662 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 00:11:00 +00:00
mattf f9cd09cb9f Add codec G.722 support.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-21 00:08:21 +00:00
kpfleming 02448f47eb 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: http://svn.digium.com/svn/asterisk/trunk@48555 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-18 11:59:48 +00:00
mogorman f6653b4a10 support for deactivating translation paths that are no longer available
and more descriptive show transcoder cli command.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48455 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-13 21:23:54 +00:00
mogorman 3a091c1b1e fixed nubb error on my part, transcoder now unlocks and locks correctly, as well as counts in the correct direction.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48415 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-12 19:55:39 +00:00
mogorman bbceb9c2dd add support for dynamic channel creation and destruction, and
show transcoder to show number of channels in use.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11 21:04:41 +00:00
russell a1a8dcf0d4 resolve a couple of compiler warnings
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48098 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-28 23:04:36 +00:00
mogorman 2cb1f3cd3a oops no parens
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47587 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:40:01 +00:00
mogorman 40c81526fe fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47586 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-13 22:01:43 +00:00
russell a92148bfa5 Merged revisions 46847 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r46847 | russell | 2006-11-01 17:51:21 -0500 (Wed, 01 Nov 2006) | 3 lines

Fixes for cross-compilation on mips 
(issue #8058, ywalther, with some modifications)

........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46848 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-01 22:54:15 +00:00