Silence threshold in Record application

Can the silence threshold in the Record application be configured? I think it is to sensitive to background audio as it is now and it continues to record even though there’s no one speaking.

There’s a silencesthreshold within dsp.conf which I have tried changing anywhere from 10 to 100 without any real impact. I also tried increasing it to 512. This is a bit odd to me because in the app_record.c there’s an include so it should be this setting right?

#include "asterisk/dsp.h"

Is the max value 256 or can it go above?

Then there’s a dsp_talking_threshold in the talkdetect function and conf bridge. Not sure if this one is applied to the dialplan application Record?

Thanks!

It’s strictly configurable based on the value from dsp.conf

OK, so the silencethreshold value within the dsp.conf will control the silence threshold in the record application. Does it have a max value or can I safely increase it to 512/1024?

That would be the setting, yes. It does not have an enforced limit.