aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_talkdetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_talkdetect.c')
-rwxr-xr-xapps/app_talkdetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c
index 79bac3859..0816949af 100755
--- a/apps/app_talkdetect.c
+++ b/apps/app_talkdetect.c
@@ -130,7 +130,7 @@ static int background_detect_exec(struct ast_channel *chan, void *data)
ast_frfree(fr);
break;
}
- } else if (fr->frametype == AST_FRAME_VOICE) {
+ } else if ((fr->frametype == AST_FRAME_VOICE) && (fr->subclass == AST_FORMAT_SLINEAR)) {
int totalsilence;
int ms;
res = ast_dsp_silence(dsp, fr, &totalsilence);