Skip to content
Snippets Groups Projects
Commit 29bc7cf6 authored by Nasir Iqbal's avatar Nasir Iqbal
Browse files

app_amd: issue with silence suppression fixed

Now AMD algorithm will not ignore AST_FRAME_NULL, As I think using manual
wait time instead of `framelength` is enough to fix timeout / TOOLONG issue.

ASTERISK-28419 #close

Change-Id: I16ea2d6295bc99b975e8c092e5f9fbd9214debdb
parent a8e5cf55
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ static void isAnsweringMachine(struct ast_channel *chan, const char *data)
break;
}
if (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_CNG) {
if (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_NULL || f->frametype == AST_FRAME_CNG) {
/* Figure out how long the frame is in milliseconds */
if (f->frametype == AST_FRAME_VOICE) {
framelength = (ast_codec_samples_count(f) / DEFAULT_SAMPLES_PER_MS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment