dahdi_scan: Show CAS framing on the framing line.
authorShaun Ruffell <sruffell@digium.com>
Wed, 10 Nov 2010 16:19:36 +0000 (16:19 +0000)
committerShaun Ruffell <sruffell@digium.com>
Wed, 10 Nov 2010 16:19:36 +0000 (16:19 +0000)
Also, always append "/CRC4" on any span where that was specified as an
option.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@9473 17933a7a-c749-41c5-a318-cba88f637d49

dahdi_scan.c

index 1a30d18..20a9a4b 100644 (file)
@@ -196,7 +196,8 @@ int main(int argc, char *argv[])
                        if (s.lineconfig & DAHDI_CONFIG_ESF) fprintf(stdout, "ESF");
                        else if (s.lineconfig & DAHDI_CONFIG_D4) fprintf(stdout, "D4");
                        else if (s.lineconfig & DAHDI_CONFIG_CCS) fprintf(stdout, "CCS");
-                       else if (s.lineconfig & DAHDI_CONFIG_CRC4) fprintf(stdout, "/CRC4");
+                       else fprintf(stdout, "CAS");
+                       if (s.lineconfig & DAHDI_CONFIG_CRC4) fprintf(stdout, "/CRC4");
                        fprintf(stdout, "\n");
                } else {
                        /* this is an analog span */