Merge "app_amd: issue with silence suppression fixed" into 16

This commit is contained in:
Kevin Harwell 2019-06-27 11:33:51 -05:00 committed by Gerrit Code Review
commit d2a696cc04
1 changed files with 1 additions and 1 deletions

View File

@ -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);