[asterisk-commits] seanbright: trunk r191739 - /trunk/channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat May 2 11:44:07 CDT 2009


Author: seanbright
Date: Sat May  2 11:43:59 2009
New Revision: 191739

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=191739
Log:
Conditional include ioctl's to change EC policy based on DAHDI caps.

This feels like a sane change (wouldn't compile without this addition), but I'm
not intimately familiar with this code.

Modified:
    trunk/channels/chan_dahdi.c

Modified: trunk/channels/chan_dahdi.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=191739&r1=191738&r2=191739
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Sat May  2 11:43:59 2009
@@ -5132,6 +5132,7 @@
 			ast_mutex_lock(&p->lock);
 			dahdi_disable_ec(p);
 			ast_mutex_unlock(&p->lock);	
+#ifdef HAVE_DAHDI_ECHOCANCEL_FAX_MODE
 		} else if (!strcasecmp(value, "fax")) {
 			int blah = 1;
 
@@ -5154,6 +5155,7 @@
 				ast_log(LOG_WARNING, "Unable to place echocan into voice mode on channel %d: %s\n", p->channel, strerror(errno));
 			}
 			ast_mutex_unlock(&p->lock);	
+#endif
 		} else {
 			ast_log(LOG_WARNING, "Unsupported value '%s' provided for '%s' item.\n", value, data);
 			res = -1;




More information about the asterisk-commits mailing list