diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-05 16:23:44 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-05 16:23:44 +0000 |
commit | 198829f2db3d8dcaa76188dc4fe6db06e7b8cbb8 (patch) | |
tree | f1786eed45ddc28e1bf43faafd02bcc917747afd /apps/app_amd.c | |
parent | 6f39909904c5ce6a5f817477c936469ac89c44ed (diff) |
Create a centralized configuration option for silencethreshold
(closes issue #11236)
Reported by: philipps
Patches:
20080218__bug11236.diff.txt uploaded by Corydon76 (license 14)
Tested by: philipps
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106072 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_amd.c')
-rw-r--r-- | apps/app_amd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_amd.c b/apps/app_amd.c index cb867ba35..131cd01fd 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -371,6 +371,8 @@ static int load_config(int reload) struct ast_variable *var = NULL; struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 }; + dfltSilenceThreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE); + if (!(cfg = ast_config_load("amd.conf", config_flags))) { ast_log(LOG_ERROR, "Configuration file amd.conf missing.\n"); return -1; |