X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=lcradmin.c;h=c7691ee9a5df6f81904c0b92fea0733d9a42ba7d;hp=0138de93d8f84402700896c02e11221a530523f4;hb=31885f37d15b8bc70ae99aa6c5c5ccca9fddf203;hpb=e9bfe48fc5254e79e59c6ffc1698912175edf4e3 diff --git a/lcradmin.c b/lcradmin.c index 0138de9..c7691ee 100644 --- a/lcradmin.c +++ b/lcradmin.c @@ -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); }