aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codec_dahdi.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-03 17:39:18 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-03 17:39:18 +0000
commitbbd2b8e467973919d3e924c41df4b64a40daef71 (patch)
tree17e8eaf1d117185f52e077c873b07085cc501512 /codecs/codec_dahdi.c
parentfc2a24fdc888e7c8515e40c3d835976819861163 (diff)
1.4 version of the dead PLC code fix.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@267539 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_dahdi.c')
-rw-r--r--codecs/codec_dahdi.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c
index 02b83ea20..5577272db 100644
--- a/codecs/codec_dahdi.c
+++ b/codecs/codec_dahdi.c
@@ -65,8 +65,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#define G723_SAMPLES 240
#define G729_SAMPLES 160
-static unsigned int global_useplc = 0;
-
static struct channel_usage {
int total;
int encoders;
@@ -513,29 +511,14 @@ static int register_translator(int dst, int src)
if (is_encoder(zt)) {
zt->t.framein = dahdi_encoder_framein;
zt->t.frameout = dahdi_encoder_frameout;
-#if 0
- zt->t.buffer_samples = 0;
-#endif
} else {
zt->t.framein = dahdi_decoder_framein;
zt->t.frameout = dahdi_decoder_frameout;
-#if 0
- if (AST_FORMAT_G723_1 == zt->t.srcfmt) {
- zt->t.plc_samples = G723_SAMPLES;
- } else {
- zt->t.plc_samples = G729_SAMPLES;
- }
- zt->t.buffer_samples = zt->t.plc_samples * 8;
-#endif
}
zt->t.destroy = dahdi_destroy;
zt->t.buffer_samples = 0;
zt->t.newpvt = dahdi_new;
zt->t.sample = fakesrc_sample;
-#if 0
- zt->t.useplc = global_useplc;
-#endif
- zt->t.useplc = 0;
zt->t.native_plc = 0;
zt->t.desc_size = sizeof(struct codec_dahdi_pvt);
@@ -587,26 +570,6 @@ static void unregister_translators(void)
AST_LIST_UNLOCK(&translators);
}
-static void parse_config(void)
-{
- struct ast_variable *var;
- struct ast_config *cfg = ast_config_load("codecs.conf");
-
- if (!cfg)
- return;
-
- for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) {
- if (!strcasecmp(var->name, "genericplc")) {
- global_useplc = ast_true(var->value);
- if (option_verbose > 2)
- ast_verbose(VERBOSE_PREFIX_3 "codec_zap: %susing generic PLC\n",
- global_useplc ? "" : "not ");
- }
- }
-
- ast_config_destroy(cfg);
-}
-
static void build_translators(struct format_map *map, unsigned int dstfmts, unsigned int srcfmts)
{
unsigned int src, dst;
@@ -681,15 +644,6 @@ static int find_transcoders(void)
static int reload(void)
{
- struct translator *cur;
-
- parse_config();
-
- AST_LIST_LOCK(&translators);
- AST_LIST_TRAVERSE(&translators, cur, entry)
- cur->t.useplc = global_useplc;
- AST_LIST_UNLOCK(&translators);
-
return 0;
}
@@ -704,7 +658,6 @@ static int unload_module(void)
static int load_module(void)
{
ast_ulaw_init();
- parse_config();
find_transcoders();
ast_cli_register_multiple(cli, sizeof(cli) / sizeof(cli[0]));