From: Andreas Eversberg Date: Sun, 16 Oct 2011 06:35:43 +0000 (+0200) Subject: Disabled layer2-hold from CCITT#5 interfaces X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=92b9d54385a64aa30400d5ccfe6374565bfe8e04;hp=affef8c1e15dc62feae592b9c80c405eb67086ec Disabled layer2-hold from CCITT#5 interfaces C5 does not require D-channel. --- diff --git a/mISDN.cpp b/mISDN.cpp index 1d75fc3..75a1b62 100644 --- a/mISDN.cpp +++ b/mISDN.cpp @@ -1960,7 +1960,7 @@ static int l2establish_timeout(struct lcr_timer *timer, void *instance, int i) struct mISDNport *mISDNport = (struct mISDNport *)instance; if (!mISDNport->isloopback && mISDNport->l2hold && (mISDNport->ptp || !mISDNport->ntmode)) { -// PDEBUG(DEBUG_ISDN, "the L2 establish timer expired, we try to establish the link portnum=%d.\n", mISDNport->portnum); + PDEBUG(DEBUG_ISDN, "the L2 establish timer expired, we try to establish the link portnum=%d.\n", mISDNport->portnum); mISDNport->ml3->to_layer3(mISDNport->ml3, MT_L2ESTABLISH, 0, NULL); schedule_timer(&mISDNport->l2establish, 5, 0); /* 5 seconds */ } @@ -2306,7 +2306,7 @@ struct mISDNport *mISDNport_open(struct interface_port *ifport) if (ss5) { /* try to keep interface enabled */ l1hold = 1; - l2hold = 1; + l2hold = 0; } /* set l2hold */ switch (l2hold) {