summaryrefslogtreecommitdiffstats
path: root/mISDN.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2009-04-05 12:52:24 +0200
committerAndreas Eversberg2009-04-05 12:52:24 +0200
commita425aedc1ee2c0bba4ba20904943afb21bd6e2e5 (patch)
tree5d05ebea6695191f545e32a7207d46facefc38a7 /mISDN.cpp
parentAdded PROGRESS indication in both directions, so early audio is possible. (diff)
downloadlcr-a425aedc1ee2c0bba4ba20904943afb21bd6e2e5.tar.gz
lcr-a425aedc1ee2c0bba4ba20904943afb21bd6e2e5.tar.xz
lcr-a425aedc1ee2c0bba4ba20904943afb21bd6e2e5.zip
Added display of current active TEI values (L2) at lcradmin.
modified: README modified: lcradmin.c modified: lcrsocket.h modified: mISDN.cpp modified: mISDN.h modified: socket_server.c
Diffstat (limited to 'mISDN.cpp')
-rw-r--r--mISDN.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/mISDN.cpp b/mISDN.cpp
index 1bb9362..2cbd39f 100644
--- a/mISDN.cpp
+++ b/mISDN.cpp
@@ -71,7 +71,7 @@ int mISDN_initialize(void)
if (options.deb & DEBUG_STACK)
{
SPRINT(filename, "%s/debug_mISDN.log", LOG_DIR);
- mISDN_debug_init(0xffffffff, filename, filename, filename);
+ mISDN_debug_init(0xfffffeff, filename, filename, filename);
} else
mISDN_debug_init(0, NULL, NULL, NULL);
@@ -2006,6 +2006,8 @@ int mISDN_handler(void)
add_trace("tei", NULL, "%d", l3m->pid);
end_trace();
mISDNport->l2link = 1;
+ if (l3m->pid < 128)
+ mISDNport->l2mask[l3m->pid >> 3] |= (1 << (l3m->pid & 7));
if ((!mISDNport->ntmode || mISDNport->ptp) && l3m->pid < 127)
{
if (mISDNport->l2establish)
@@ -2017,6 +2019,8 @@ int mISDN_handler(void)
break;
case MT_L2RELEASE:
+ if (l3m->pid < 128)
+ mISDNport->l2mask[l3m->pid >> 3] &= ~(1 << (l3m->pid & 7));
if (!mISDNport->l2establish)
{
l1l2l3_trace_header(mISDNport, NULL, L2_RELEASE_IND, DIRECTION_IN);