From ab32336b091c72d3de34943deb9c318ed60ff87d Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Mon, 30 Aug 2010 20:49:11 +0000 Subject: [PATCH] Reduced fake MDL-ERROR (Z) message severity to be visible only when debugging enabled. git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.4@1929 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/q921.c b/q921.c index 92b7f44..d1c11c4 100644 --- a/q921.c +++ b/q921.c @@ -1668,6 +1668,14 @@ static void q921_mdl_error(struct pri *ctrl, char error) pri_error(ctrl, "TEI=%d MDL-ERROR (K): FRMR in state %d(%s)\n", ctrl->tei, ctrl->q921_state, q921_state2str(ctrl->q921_state)); break; + case 'Z': + if (is_debug_q921_state) { + /* Fake MDL-ERROR to kick start PTP L2 link back up. */ + pri_message(ctrl, + "TEI=%d MDL-ERROR (Z): Kick starting L2 link in state %d(%s)\n", + ctrl->tei, ctrl->q921_state, q921_state2str(ctrl->q921_state)); + } + break; default: pri_message(ctrl, "TEI=%d MDL-ERROR (%c): in state %d(%s)\n", ctrl->tei, error, ctrl->q921_state, q921_state2str(ctrl->q921_state));