diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-03-05 16:23:44 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-03-05 16:23:44 +0000 |
commit | 8a411ccf839654d3c15452c2f25831693e741baf (patch) | |
tree | f1786eed45ddc28e1bf43faafd02bcc917747afd /res/res_agi.c | |
parent | c6585e5b5d8679cdb2b258145455606c23e217bb (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: https://origsvn.digium.com/svn/asterisk/trunk@106072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 6e9b5291e..dcde56353 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -1296,7 +1296,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char ast_log(LOG_WARNING, "Unable to create silence detector :(\n"); return -1; } - ast_dsp_set_threshold(sildet, 256); + ast_dsp_set_threshold(sildet, ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE)); } /* backward compatibility, if no offset given, arg[6] would have been |