summaryrefslogtreecommitdiffstats
path: root/lcradmin.c
diff options
context:
space:
mode:
authorSuper User2008-06-01 18:52:10 +0200
committerSuper User2008-06-01 18:52:10 +0200
commit026b04fc75011a144285f399b82890803b4315bd (patch)
treefc208d625cc72cfaa317c160d42fc2cdcf7256a4 /lcradmin.c
parentwork (diff)
downloadlcr-026b04fc75011a144285f399b82890803b4315bd.tar.gz
lcr-026b04fc75011a144285f399b82890803b4315bd.tar.xz
lcr-026b04fc75011a144285f399b82890803b4315bd.zip
LCR is now uses socket based mISDN V2 API
*** chan_lcr, the Asterisk interface works (not complete yet). -> LCR can be used as Asterisk channel driver. modified: Makefile modified: Makefile.am modified: README modified: action.cpp modified: apppbx.cpp modified: bchannel.c modified: bchannel.h modified: callerid.c modified: cause.c modified: chan_lcr.c modified: chan_lcr.h modified: configure.ac modified: default/routing.conf modified: dss1.cpp modified: dss1.h modified: genrc.c modified: ie.cpp modified: interface.c modified: lcradmin.c modified: mISDN.cpp modified: mISDN.h modified: main.c modified: main.h modified: message.h modified: myisdn.h modified: route.c modified: socket_server.c modified: trace.h
Diffstat (limited to 'lcradmin.c')
-rw-r--r--lcradmin.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/lcradmin.c b/lcradmin.c
index f771609..188d718 100644
--- a/lcradmin.c
+++ b/lcradmin.c
@@ -359,7 +359,7 @@ int debug_epoint(struct admin_message *msg, struct admin_message *m, int line, i
}
/* loop all related ports */
ltee = 0;
- j = msg->u.s.interfaces+msg->u.s.joins+msg->u.s.epoints;
+ j = msg->u.s.interfaces+msg->u.s.remotes+msg->u.s.joins+msg->u.s.epoints;
jj = j + msg->u.s.ports;
while(j < jj)
{
@@ -416,7 +416,7 @@ int debug_join(struct admin_message *msg, struct admin_message *m, int line, int
addstr(buffer);
}
/* find number of epoints */
- j = msg->u.s.interfaces+msg->u.s.joins;
+ j = msg->u.s.interfaces+msg->u.s.remotes+msg->u.s.joins;
jj = j + msg->u.s.epoints;
i = 0;
while(j < jj)
@@ -426,7 +426,7 @@ int debug_join(struct admin_message *msg, struct admin_message *m, int line, int
j++;
}
/* loop all related endpoints */
- j = msg->u.s.interfaces+msg->u.s.joins;
+ j = msg->u.s.interfaces+msg->u.s.remotes+msg->u.s.joins;
jj = j + msg->u.s.epoints;
while(j < jj)
{
@@ -778,7 +778,7 @@ char *admin_state(int sock, char *argv[])
if (m[i].u.i.port[j])
{
/* search for port */
- l = msg.u.s.interfaces+msg.u.s.joins+msg.u.s.epoints;
+ l = msg.u.s.interfaces+msg.u.s.remotes+msg.u.s.joins+msg.u.s.epoints;
ll = l+msg.u.s.ports;
while(l < ll)
{
@@ -834,7 +834,7 @@ char *admin_state(int sock, char *argv[])
i++;
anything = 1;
}
- i = 0;
+ i = msg.u.s.interfaces;
ii = i + msg.u.s.remotes;
while(i < ii)
{
@@ -853,7 +853,7 @@ char *admin_state(int sock, char *argv[])
if (show_calls == 1)
{
anything = 0;
- i = msg.u.s.interfaces+msg.u.s.joins;
+ i = msg.u.s.interfaces+msg.u.s.remotes+msg.u.s.joins;
ii = i+msg.u.s.epoints;
while(i < ii)
{
@@ -892,7 +892,7 @@ char *admin_state(int sock, char *argv[])
i++;
anything = 1;
}
- j = msg.u.s.interfaces;
+ j = msg.u.s.interfaces+msg.u.s.remotes;
jj = j+msg.u.s.joins;
while(j < jj)
{
@@ -901,7 +901,7 @@ char *admin_state(int sock, char *argv[])
color(white);
SPRINT(buffer, "(%d):", m[j].u.j.serial);
addstr(buffer);
- i = msg.u.s.interfaces+msg.u.s.joins;
+ i = msg.u.s.interfaces+msg.u.s.remotes+msg.u.s.joins;
ii = i+msg.u.s.epoints;
while(i < ii)
{
@@ -943,7 +943,7 @@ char *admin_state(int sock, char *argv[])
{
/* show all ports with no epoint */
anything = 0;
- i = msg.u.s.interfaces+msg.u.s.joins+msg.u.s.epoints;
+ i = msg.u.s.interfaces+msg.u.s.remotes+msg.u.s.joins+msg.u.s.epoints;
ii = i+msg.u.s.ports;
while(i < ii)
{
@@ -963,7 +963,7 @@ char *admin_state(int sock, char *argv[])
/* show all epoints with no call */
anything = 0;
- i = msg.u.s.interfaces+msg.u.s.joins;
+ i = msg.u.s.interfaces+msg.u.s.remotes+msg.u.s.joins;
ii = i+msg.u.s.epoints;
while(i < ii)
{
@@ -983,7 +983,7 @@ char *admin_state(int sock, char *argv[])
/* show all joins */
anything = 0;
- i = msg.u.s.interfaces;
+ i = msg.u.s.interfaces+msg.u.s.remotes;
ii = i+msg.u.s.joins;
while(i < ii)
{