bkruse: branch asterisknow r1358 - in /branches/asterisknow: ./ tools/ztscan.c

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Thu Aug 16 16:35:53 CDT 2007


Author: bkruse
Date: Thu Aug 16 16:35:52 2007
New Revision: 1358

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=1358
Log:
Merged revisions 1356 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-gui/branches/1.4

........
r1356 | bkruse | 2007-08-16 16:33:19 -0500 (Thu, 16 Aug 2007) | 1 line

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/asterisknow/   (props changed)
    branches/asterisknow/tools/ztscan.c

Propchange: branches/asterisknow/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Aug 16 16:35:52 2007
@@ -1,1 +1,1 @@
-/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346
+/branches/1.4:1-1296,1316,1326,1332,1336-1338,1342,1346,1356

Modified: branches/asterisknow/tools/ztscan.c
URL: http://svn.digium.com/view/asterisk-gui/branches/asterisknow/tools/ztscan.c?view=diff&rev=1358&r1=1357&r2=1358
==============================================================================
--- branches/asterisknow/tools/ztscan.c (original)
+++ branches/asterisknow/tools/ztscan.c Thu Aug 16 16:35:52 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