[asterisk-commits] pabelanger: trunk r277183 - in /trunk: ./ apps/app_amd.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jul 16 12:13:50 CDT 2010
Author: pabelanger
Date: Fri Jul 16 12:13:46 2010
New Revision: 277183
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277183
Log:
Merged revisions 277182 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r277182 | pabelanger | 2010-07-16 13:10:36 -0400 (Fri, 16 Jul 2010) | 8 lines
Total analysis time error with SIP and silence suppression
When using app_amd with SIP providers that have silence
suppression on, the iTotalTime count increases exponentially.
(closes issue #17656)
Reported by: juls
........
Modified:
trunk/ (props changed)
trunk/apps/app_amd.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_amd.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_amd.c?view=diff&rev=277183&r1=277182&r2=277183
==============================================================================
--- trunk/apps/app_amd.c (original)
+++ trunk/apps/app_amd.c Fri Jul 16 12:13:46 2010
@@ -273,10 +273,11 @@
if (f->frametype == AST_FRAME_VOICE || f->frametype == AST_FRAME_NULL || f->frametype == AST_FRAME_CNG) {
/* If the total time exceeds the analysis time then give up as we are not too sure */
- if (f->frametype == AST_FRAME_VOICE)
+ if (f->frametype == AST_FRAME_VOICE) {
framelength = (ast_codec_get_samples(f) / DEFAULT_SAMPLES_PER_MS);
- else
- framelength += 2 * maxWaitTimeForFrame;
+ } else {
+ framelength = 2 * maxWaitTimeForFrame;
+ }
iTotalTime += framelength;
if (iTotalTime >= totalAnalysisTime) {
More information about the asterisk-commits
mailing list