bkruse: branch asterisknow r1828 - /branches/asterisknow/tools/ztscan.c

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Wed Nov 21 15:12:30 CST 2007


Author: bkruse
Date: Wed Nov 21 15:12:29 2007
New Revision: 1828

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1828
Log:
I believe this should stop the detecting of TDM800p
cards. The problem is, the TDM800P said it had
24 channels, because of the driver.

Whatever, fixed.

Modified:
    branches/asterisknow/tools/ztscan.c

Modified: branches/asterisknow/tools/ztscan.c
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/tools/ztscan.c?view=diff&rev=1828&r1=1827&r2=1828
==============================================================================
--- branches/asterisknow/tools/ztscan.c (original)
+++ branches/asterisknow/tools/ztscan.c Wed Nov 21 15:12:29 2007
@@ -109,8 +109,8 @@
 			fprintf(stderr, "Unable to get span info on span %d: %s\n", span, strerror(errno)); 
 		return NULL;
 	}
-	/* If this is not a digital card, skip it. */
-	if(s[span].totalchans <= 23 || s[span].totalchans >= 32) 
+	/* If this is not a digital card or it is a WILDCARD (analog), skip it. */
+	if(s[span].totalchans <= 23 || s[span].totalchans >= 32 || !strncmp(s[span].name, "WILD", 4))
 		return NULL;
 
 	strcpy(alarms, "");




More information about the asterisk-gui-commits mailing list