[Asterisk-cvs] asterisk/apps app_talkdetect.c,1.3,1.4
markster at lists.digium.com
markster at lists.digium.com
Sat Aug 7 19:11:15 CDT 2004
Update of /usr/cvsroot/asterisk/apps
In directory localhost.localdomain:/tmp/cvs-serv1900/apps
Modified Files:
app_talkdetect.c
Log Message:
Only consider linear frames for talk detection -- ignore anything else (bug #2219)
Index: app_talkdetect.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_talkdetect.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_talkdetect.c 22 Jun 2004 19:32:52 -0000 1.3
+++ app_talkdetect.c 7 Aug 2004 22:57:13 -0000 1.4
@@ -130,7 +130,7 @@
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);
More information about the svn-commits
mailing list