projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Just a small bug fix: Extension matching will be performed by extension's number...
[lcr.git]
/
lcrsocket.h
diff --git
a/lcrsocket.h
b/lcrsocket.h
index
86497f9
..
43543c1
100644
(file)
--- a/
lcrsocket.h
+++ b/
lcrsocket.h
@@
-9,7
+9,7
@@
** **
\*****************************************************************************/
** **
\*****************************************************************************/
-#define SOCKET_NAME "
/var/run
/LCR.socket"
+#define SOCKET_NAME "
%s
/LCR.socket"
/* structures that define message between admin-tool and pbx */
/* structures that define message between admin-tool and pbx */
@@
-65,14
+65,18
@@
struct admin_response_state {
struct admin_response_interface {
char interface_name[32];
int portnum;
struct admin_response_interface {
char interface_name[32];
int portnum;
+ char portname[64];
int block;
int ntmode;
int ptp;
int block;
int ntmode;
int ptp;
+ int l1hold;
+ int l2hold;
int pri;
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) */
int pri;
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) */
+ unsigned char l2mask[16]; /* one bit for each tei */
int los, ais, rdi, slip_tx, slip_rx;
int channels;
char busy[256]; /* if port is idle(0) busy(1) */
int los, ais, rdi, slip_tx, slip_rx;
int channels;
char busy[256]; /* if port is idle(0) busy(1) */
@@
-184,4
+188,5
@@
enum {
ADMIN_STATE_CONNECT,
ADMIN_STATE_IN_DISCONNECT,
ADMIN_STATE_OUT_DISCONNECT,
ADMIN_STATE_CONNECT,
ADMIN_STATE_IN_DISCONNECT,
ADMIN_STATE_OUT_DISCONNECT,
+ ADMIN_STATE_RELEASE,
};
};