diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-04 03:28:38 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-04-04 03:28:38 +0000 |
commit | 71fb6b3ec37b3881da0afbd08172399b2d2bbc6f (patch) | |
tree | c84936983a52f1ba3dd3409da68f338bc440c568 /asterisk.c | |
parent | fc3600f9e402828a63873da8791c64cf55cb6a41 (diff) |
optimize codec selection and format changing code
force all transcode paths to use AST_FORMAT_SLINEAR as the frames pass through the bridge (can be disabled using the 'transcode_via_sln' setting in th 'options' setting in asteris.conf)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5376 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'asterisk.c')
-rwxr-xr-x | asterisk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/asterisk.c b/asterisk.c index 09b0443be..47fe5f1df 100755 --- a/asterisk.c +++ b/asterisk.c @@ -85,6 +85,7 @@ int option_cache_record_files = 0; int option_timestamp = 0; int option_overrideconfig = 0; int option_reconnect = 0; +int option_transcode_slin = 1; int fully_booted = 0; char record_cache_dir[AST_CACHE_DIR_LEN] = AST_TMP_DIR; char debug_filename[AST_FILENAME_MAX] = ""; @@ -1653,6 +1654,9 @@ static void ast_readconfig(void) { /* Specify cache directory */ } else if (!strcasecmp(v->name, "record_cache_dir")) { strncpy(record_cache_dir,v->value,AST_CACHE_DIR_LEN); + /* Build transcode paths via SLINEAR, instead of directly */ + } else if (!strcasecmp(v->name, "transcode_via_sln")) { + option_transcode_slin = ast_true(v->value); } v = v->next; } |