Status shows all non-CRC4 lines as "yellow", even if "yellow" was not in the bitfield.
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 Jul 2010 22:09:23 +0000 (22:09 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 6 Jul 2010 22:09:23 +0000 (22:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@274281 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_dahdi.c

index 534d9a8..e2cad3f 100644 (file)
@@ -14769,7 +14769,8 @@ static char *dahdi_show_status(struct ast_cli_entry *e, int cmd, struct ast_cli_
                        s.lineconfig & DAHDI_CONFIG_AMI ? "AMI" :
                        "Unk",
                        s.lineconfig & DAHDI_CONFIG_CRC4 ?
-                       s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "CRC4/YEL" : "CRC4" : "YEL",
+                               s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "CRC4/YEL" : "CRC4" :
+                               s.lineconfig & DAHDI_CONFIG_NOTOPEN ? "YEL" : "",
                        lbostr[s.lbo]
                        );
        }