[zaptel-commits] kpfleming: branch 1.4 r3653 - in /branches/1.4: kb1ec.h mg2ec.h

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Thu Jan 10 17:52:10 CST 2008


Author: kpfleming
Date: Thu Jan 10 17:52:09 2008
New Revision: 3653

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3653
Log:
ensure that any non-zero value supplied will turn on aggressive mode

Modified:
    branches/1.4/kb1ec.h
    branches/1.4/mg2ec.h

Modified: branches/1.4/kb1ec.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/kb1ec.h?view=diff&rev=3653&r1=3652&r2=3653
==============================================================================
--- branches/1.4/kb1ec.h (original)
+++ branches/1.4/kb1ec.h Thu Jan 10 17:52:09 2008
@@ -566,7 +566,7 @@
 
 	for (x = 0; x < ecp->param_count; x++) {
 		if (!strcasecmp(p[x].name, "aggressive")) {
-			(*ec)->aggressive = p[x].value;
+			(*ec)->aggressive = p[x].value ? 1 : 0;
 		} else {
 			printk(KERN_WARNING "Unknown parameter supplied to KB1 echo canceler: '%s'\n", p[x].name);
 			kfree(*ec);

Modified: branches/1.4/mg2ec.h
URL: http://svn.digium.com/view/zaptel/branches/1.4/mg2ec.h?view=diff&rev=3653&r1=3652&r2=3653
==============================================================================
--- branches/1.4/mg2ec.h (original)
+++ branches/1.4/mg2ec.h Thu Jan 10 17:52:09 2008
@@ -689,7 +689,7 @@
 
 	for (x = 0; x < ecp->param_count; x++) {
 		if (!strcasecmp(p[x].name, "aggressive")) {
-			(*ec)->aggressive = p[x].value;
+			(*ec)->aggressive = p[x].value ? 1 : 0;
 		} else {
 			printk(KERN_WARNING "Unknown parameter supplied to MG2 echo canceler: '%s'\n", p[x].name);
 			kfree(*ec);




More information about the zaptel-commits mailing list