Add .gitignore
[lcr.git] / lcradmin.c
index 0138de9..c7691ee 100644 (file)
@@ -25,6 +25,7 @@
 #include "macro.h"
 #include "options.h"
 #include "join.h"
+#include "select.h"
 #include "joinpbx.h"
 #include "extension.h"
 #include "message.h"
@@ -179,6 +180,10 @@ int debug_port(struct admin_message *msg, struct admin_message *m, int line, int
                color(blue);
                addstr("'out >> disc'");
                break;
+               case ADMIN_STATE_RELEASE:
+               color(blue);
+               addstr("'release'");
+               break;
                default:
                color(blue);
                addstr("'--NONE--'");
@@ -729,7 +734,7 @@ const char *admin_state(int sock, char *argv[])
                                                                break;
                                                                case B_STATE_ACTIVE:
                                                                color(green);
-                                                               addstr("busy    ");
+                                                               addstr("active  ");
                                                                break;
                                                                case B_STATE_DEACTIVATING:
                                                                color(yellow);
@@ -1675,7 +1680,7 @@ int main(int argc, char *argv[])
        int sock, conn;
        struct sockaddr_un sock_address;
        const char *ret = "invalid mode";
-
+       char options_error[256];
 
        /* show options */
        if (argc <= 1) {
@@ -1751,7 +1756,7 @@ int main(int argc, char *argv[])
                goto usage;
        }
 
-       if (read_options() == 0) {
+       if (read_options(options_error) == 0) {
                exit(EXIT_FAILURE);
        }