bkruse: branch 1.4 r1356 - /branches/1.4/tools/ztscan.c
    SVN commits to the Asterisk-GUI project 
    asterisk-gui-commits at lists.digium.com
       
    Thu Aug 16 16:33:20 CDT 2007
    
    
  
Author: bkruse
Date: Thu Aug 16 16:33:19 2007
New Revision: 1356
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1356
Log:
Patch for ztscan.c. If the total channels in the structure is not set to 24 or 31, it is not a digital card. Please correct me if I am wrong.
Modified:
    branches/1.4/tools/ztscan.c
Modified: branches/1.4/tools/ztscan.c
URL: http://svn.digium.com/view/asterisk-gui/branches/1.4/tools/ztscan.c?view=diff&rev=1356&r1=1355&r2=1356
==============================================================================
--- branches/1.4/tools/ztscan.c (original)
+++ branches/1.4/tools/ztscan.c Thu Aug 16 16:33:19 2007
@@ -77,6 +77,10 @@
 			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].totalchannels != 24 || s[span].totalchannels != 31) 
+		return NULL;
+
 	strcpy(alarms, "");
 	if (s[span].alarms > 0) {
 		if (s[span].alarms & ZT_ALARM_BLUE)
    
    
More information about the asterisk-gui-commits
mailing list