[libpri-commits] rmudgett: branch 1.4 r1929 - /branches/1.4/q921.c

SVN commits to the libpri project libpri-commits at lists.digium.com
Mon Aug 30 15:49:13 CDT 2010


Author: rmudgett
Date: Mon Aug 30 15:49:11 2010
New Revision: 1929

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=1929
Log:
Reduced fake MDL-ERROR (Z) message severity to be visible only when debugging enabled.

Modified:
    branches/1.4/q921.c

Modified: branches/1.4/q921.c
URL: http://svnview.digium.com/svn/libpri/branches/1.4/q921.c?view=diff&rev=1929&r1=1928&r2=1929
==============================================================================
--- branches/1.4/q921.c (original)
+++ branches/1.4/q921.c Mon Aug 30 15:49:11 2010
@@ -1668,6 +1668,14 @@
 		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));




More information about the libpri-commits mailing list