diff --git a/apps/app_amd.c b/apps/app_amd.c index f56fe792d44ac5f95ed922416a84b169cc9d898f..1c43591d5fecc21f29c7addb3ff4b32af3b48225 100644 --- a/apps/app_amd.c +++ b/apps/app_amd.c @@ -295,7 +295,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);