From a114e74299f4708d96b490be055ab8939b9e7610 Mon Sep 17 00:00:00 2001 From: schlaile Date: Sun, 20 Jul 2008 19:33:28 +0200 Subject: rebuffer option for chan_lcr (160 bytes per frame) l1-link state "unknown" if not known yet. removed root user check. modified: bchannel.c modified: bchannel.h modified: chan_lcr.c modified: chan_lcr.h modified: dss1.cpp modified: lcradmin.c modified: mISDN.cpp modified: main.c --- dss1.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'dss1.cpp') diff --git a/dss1.cpp b/dss1.cpp index d4e90e6..06bb203 100644 --- a/dss1.cpp +++ b/dss1.cpp @@ -1193,14 +1193,17 @@ void Pdss1::release_complete_ind(unsigned int cmd, unsigned int pid, struct l3_m l1l2l3_trace_header(p_m_mISDNport, this, L3_RELEASE_COMPLETE_IND, DIRECTION_IN); /* in case layer 2 is down during setup, we send cause 27 loc 5 */ - if (p_state == PORT_STATE_OUT_SETUP && !p_m_mISDNport->l1link) + if (p_state == PORT_STATE_OUT_SETUP && p_m_mISDNport->l1link == 0) { cause = 27; location = 5; } else { dec_ie_cause(l3m, &location, &cause); - add_trace("layer 1", NULL, (p_m_mISDNport->l1link)?"up":"down"); + if (p_m_mISDNport->l1link < 0) + add_trace("layer 1", NULL, "unknown"); + else + add_trace("layer 1", NULL, (p_m_mISDNport->l1link)?"up":"down"); } end_trace(); if (location == LOCATION_PRIVATE_LOCAL) -- cgit v1.2.3-55-g7522