From: Karsten Keil Date: Wed, 28 Sep 2011 10:09:54 +0000 (+0200) Subject: Handle MT_L2IDLE X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=7b103167ba7d7bdd863a8ea43c15680c9cfe3e20 Handle MT_L2IDLE MT_L2IDLE is send by the mISDNuser library when all L2 processes are gone. We could sent a MT_L2RELEASE if we are the L2 master and do not want permanent L2 monitoring. This would deactive L2 and also shutdown L1. For now we do nothing, only log a debug message. Signed-off-by: Karsten Keil --- diff --git a/dss1.cpp b/dss1.cpp index e745bd3..eabb0cd 100644 --- a/dss1.cpp +++ b/dss1.cpp @@ -2999,6 +2999,11 @@ int stack2manager(struct mISDNport *mISDNport, unsigned int cmd, unsigned int pi // facility als broadcast break; + case MT_L2IDLE: + // L2 became idle - we could sent a MT_L2RELEASE if we are the L2 master + PDEBUG(DEBUG_ISDN, "Got L2 idle\n"); + break; + default: PERROR("unhandled message: cmd(0x%x) pid(0x%x)\n", cmd, pid); port = port_first;