mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
AST-2009-005
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@211569 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1626,7 +1626,7 @@ static int _dsp_init(int reload)
|
||||
const char *value;
|
||||
|
||||
value = ast_variable_retrieve(cfg, "default", "silencethreshold");
|
||||
if (value && sscanf(value, "%d", &thresholds[THRESHOLD_SILENCE]) != 1) {
|
||||
if (value && sscanf(value, "%30d", &thresholds[THRESHOLD_SILENCE]) != 1) {
|
||||
ast_log(LOG_WARNING, "%s: '%s' is not a valid silencethreshold value\n", CONFIG_FILE_NAME, value);
|
||||
thresholds[THRESHOLD_SILENCE] = 256;
|
||||
} else if (!value)
|
||||
|
||||
Reference in New Issue
Block a user