backup
[lcr.git] / admin.h
diff --git a/admin.h b/admin.h
index da3b069..40a0cb8 100644 (file)
--- a/admin.h
+++ b/admin.h
@@ -9,7 +9,7 @@
 **                                                                           **
 \*****************************************************************************/
 
-#define SOCKET_NAME "/var/run/PBX4Linux.socket"
+#define SOCKET_NAME "/var/run/LCR.socket"
 
 /* structures that define message between admin-tool and pbx */
 
@@ -22,6 +22,8 @@ enum { /* messages */
        ADMIN_RESPONSE_CMD_DIAL,
        ADMIN_REQUEST_CMD_RELEASE,
        ADMIN_RESPONSE_CMD_RELEASE,
+       ADMIN_REQUEST_CMD_BLOCK,
+       ADMIN_RESPONSE_CMD_BLOCK,
        ADMIN_REQUEST_STATE,
        ADMIN_RESPONSE_STATE,
        ADMIN_RESPONSE_S_INTERFACE,
@@ -36,12 +38,16 @@ enum { /* messages */
        ADMIN_CALL_DISCONNECT,
        ADMIN_CALL_RELEASE,
        ADMIN_CALL_NOTIFY,
+       ADMIN_TRACE_REQUEST,
+       ADMIN_TRACE_RESPONSE,
        ADMIN_MESSAGE,
 };
 
 struct admin_response_cmd {
        int             error;          /* error code 0 = ok*/
        char            message[256];   /* info / response text */
+       int             block;
+       int             portnum;
 };
 
 struct admin_response_state {
@@ -55,12 +61,13 @@ struct admin_response_state {
 };
 
 struct admin_response_interface {
-       int             portnum;
        char            interface_name[32];
+       int             portnum;
+       int             block;
        int             ntmode;
        int             ptp;
        int             pri;
-       int             iftype;
+       int             extension;
        int             use; /* number of ports that use this interface */
        int             l1link; /* down(0) or up(1) */
        int             l2link; /* down(0) or up(1) */
@@ -118,12 +125,26 @@ struct admin_call {
        int             exthlc;
 };
 
-struct admin_message {
-       int             type; /* type of message */
-       unsigned long   ref; /* reference to individual endpoints */
-       union parameter param; /* parameter union */
+struct admin_trace_req {
+       int             detail;
+       char            category[4];
+       char            name[64];
+       int             port;
+       char            interface[64];
+       char            caller[34];
+       char            dialing[64];
+};
+
+struct admin_trace_rsp {
+       char            text[512];
 };
 
+//struct admin_msg {
+//     int             type; /* type of message */
+//     unsigned long   ref; /* reference to individual endpoints */
+//     union parameter param; /* parameter union */
+//};
+
 struct admin_message {
        int message; /* type of admin message */
        union u {
@@ -134,7 +155,9 @@ struct admin_message {
                struct admin_response_epoint    e;
                struct admin_response_call      c;
                struct admin_call               call;
-               struct admin_message            message;
+//             struct admin_msg                msg;
+               struct admin_trace_req          trace_req;
+               struct admin_trace_rsp          trace_rsp;
        } u;
 };