Removed complete bchannel handling from chan_lcr
[lcr.git] / lcradmin.c
index 2483a9b..bd029e8 100644 (file)
@@ -621,7 +621,10 @@ const char *admin_state(int sock, char *argv[])
                        /* show interface summary */
                        move(++line>1?line:1, 0);
                        color(white);
-                       if (m[i].u.i.block >= 2) {
+                       if (m[i].u.i.portnum == -100) {
+                               SPRINT(buffer, "%s %s", m[i].u.i.interface_name, (m[i].u.i.extension)?" exten":"");
+                               addstr(buffer);
+                       } else if (m[i].u.i.block >= 2) {
                                if (m[i].u.i.portnum < 0)
                                        SPRINT(buffer, "%s (port ?: %s)%s", m[i].u.i.interface_name, m[i].u.i.portname, (m[i].u.i.extension)?" exten":"");
                                else
@@ -740,18 +743,6 @@ const char *admin_state(int sock, char *argv[])
                                                                color(yellow);
                                                                addstr("dact'ing");
                                                                break;
-                                                               case B_STATE_EXPORTING:
-                                                               color(yellow);
-                                                               addstr("exp'ing ");
-                                                               break;
-                                                               case B_STATE_REMOTE:
-                                                               color(green);
-                                                               addstr("remote  ");
-                                                               break;
-                                                               case B_STATE_IMPORTING:
-                                                               color(yellow);
-                                                               addstr("imp'ing ");
-                                                               break;
                                                        }
                                                        if (m[i].u.i.port[j]) {
                                                                /* search for port */