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 /main/app.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 'main/app.c')
-rw-r--r-- | main/app.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/app.c b/main/app.c index 5c3f8a444..7a2227fb9 100644 --- a/main/app.c +++ b/main/app.c @@ -1268,7 +1268,7 @@ int ast_unlock_path(const char *path) int ast_record_review(struct ast_channel *chan, const char *playfile, const char *recordfile, int maxtime, const char *fmt, int *duration, const char *path) { - int silencethreshold = 128; + int silencethreshold; int maxsilence = 0; int res = 0; int cmd = 0; @@ -1286,6 +1286,8 @@ int ast_record_review(struct ast_channel *chan, const char *playfile, const char cmd = '3'; /* Want to start by recording */ + silencethreshold = ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE); + while ((cmd >= 0) && (cmd != 't')) { switch (cmd) { case '1': |