diff options
author | Mark Spencer <markster@digium.com> | 2004-08-07 22:57:13 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2004-08-07 22:57:13 +0000 |
commit | 785eaf01b3a536c8a36e9dc4436e4d9dc037b824 (patch) | |
tree | f2a99b2b75e5c82e84eff99f933d844520c1d812 /apps/app_talkdetect.c | |
parent | ccbc7a6835d9f0a5fb3dac9d5a4556c8310c8ff4 (diff) |
Only consider linear frames for talk detection -- ignore anything else (bug #2219)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3594 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_talkdetect.c')
-rwxr-xr-x | apps/app_talkdetect.c | 2 |
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); |