[asterisk-commits] mnicholson: branch 1.10 r328162 - /branches/1.10/main/dsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jul 14 12:46:37 CDT 2011


Author: mnicholson
Date: Thu Jul 14 12:46:32 2011
New Revision: 328162

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=328162
Log:
tune the v21 preamble detector to properly detect the desired sequence of hits
and misses

Modified:
    branches/1.10/main/dsp.c

Modified: branches/1.10/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.10/main/dsp.c?view=diff&rev=328162&r1=328161&r2=328162
==============================================================================
--- branches/1.10/main/dsp.c (original)
+++ branches/1.10/main/dsp.c Thu Jul 14 12:46:32 2011
@@ -624,10 +624,10 @@
 		}
 
 		if (hit) {
-			if (s->hit_count == 0 || s->miss_count == 3) {
+			if (s->miss_count == 3) {
 				s->hit_count++;
 			} else {
-				s->hit_count = 0;
+				s->hit_count = 1;
 			}
 
 			s->miss_count = 0;




More information about the asterisk-commits mailing list