aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-07 22:57:13 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-08-07 22:57:13 +0000
commitb7d5001855652c4b6fbadf420f381d4e0302384e (patch)
treef2a99b2b75e5c82e84eff99f933d844520c1d812 /apps
parenta295786986ca9c87e61e068c4d5be7f6d46558ff (diff)
Only consider linear frames for talk detection -- ignore anything else (bug #2219)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3594 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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);