[svn-commits] sruffell: tools/trunk r9133 - /tools/trunk/dahdi_scan.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 13 13:40:12 CDT 2010


Author: sruffell
Date: Fri Aug 13 13:40:00 2010
New Revision: 9133

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9133
Log:
dahdi_scan: Use 'linecompat' to identify digital spans.

This fixes the case where the BRI spans on the Hx8 cards were displayed as
analog spans.

Modified:
    tools/trunk/dahdi_scan.c

Modified: tools/trunk/dahdi_scan.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/dahdi_scan.c?view=diff&rev=9133&r1=9132&r2=9133
==============================================================================
--- tools/trunk/dahdi_scan.c (original)
+++ tools/trunk/dahdi_scan.c Fri Aug 13 13:40:00 2010
@@ -36,6 +36,11 @@
 #include <dahdi/user.h>
 
 #include "dahdi_tools_version.h"
+
+static inline int is_digital_span(struct dahdi_spaninfo *s)
+{
+	return (s->linecompat > 0);
+}
 
 int main(int argc, char *argv[])
 {
@@ -135,7 +140,7 @@
 			continue;
 		}
 
-		if (params.sigcap & (__DAHDI_SIG_DACS |  DAHDI_SIG_CAS)) {
+		if (is_digital_span(&s)) {
 			/* this is a digital span */
 			fprintf(stdout, "type=digital-%s\n", s.spantype);
 			fprintf(stdout, "syncsrc=%d\n", s.syncsrc);




More information about the svn-commits mailing list