[asterisk-gui] bkruse: branch 1.4 r1356 - /branches/1.4/tools/ztscan.c
QUICK, RANDY
RQUICK at THCS.ORG
Thu Aug 16 16:52:30 CDT 2007
That's incorrect. I have 2 PRI's that are only 12 channels. Some times you can negotiate the size of the PRI with the provider.
-----Original Message-----
From: asterisk-gui-commits-bounces at lists.digium.com
[mailto:asterisk-gui-commits-bounces at lists.digium.com]On Behalf Of SVN
commits to the Asterisk-GUI project
Sent: Thursday, August 16, 2007 4:33 PM
To: asterisk-gui-commits at lists.digium.com
Subject: bkruse: branch 1.4 r1356 - /branches/1.4/tools/ztscan.c
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)
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-gui-commits mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-gui-commits
More information about the asterisk-gui
mailing list