[asterisk-commits] mnicholson: branch 10 r342605 - /branches/10/main/dsp.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 27 15:10:15 CDT 2011


Author: mnicholson
Date: Thu Oct 27 15:10:12 2011
New Revision: 342605

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=342605
Log:
tweak the v21 detector to detect an additional pattern of hits and misses

Modified:
    branches/10/main/dsp.c

Modified: branches/10/main/dsp.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/dsp.c?view=diff&rev=342605&r1=342604&r2=342605
==============================================================================
--- branches/10/main/dsp.c (original)
+++ branches/10/main/dsp.c Thu Oct 27 15:10:12 2011
@@ -629,7 +629,7 @@
 		}
 
 		if (hit) {
-			if (s->miss_count == 3) {
+			if (s->miss_count == 3 || (s->hit_count == 1 && s->miss_count == 2)) {
 				s->hit_count++;
 			} else {
 				s->hit_count = 1;




More information about the asterisk-commits mailing list