[svn-commits] rmudgett: branch 1.4 r2290 - /branches/1.4/q921.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jul 30 11:20:49 CDT 2012


Author: rmudgett
Date: Mon Jul 30 11:20:47 2012
New Revision: 2290

URL: http://svnview.digium.com/svn/libpri?view=rev&rev=2290
Log:
Removed MDL/TEI management configuration warning message.

Some telco switches send out MDL messages even though they are configured
for PTP.  Usually they are checking for assigned TEI's.  Since these
switches periodically poll for assigned TEI's, the message needlessly
fills up log files.

* Changed message warning level to a normal debug message level and
reworded.

(closes issue PRI-137)
Reported by: Bart Coninckx

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=2290&r1=2289&r2=2290
==============================================================================
--- branches/1.4/q921.c (original)
+++ branches/1.4/q921.c Mon Jul 30 11:20:47 2012
@@ -1484,8 +1484,20 @@
 	int tei;
 
 	if (!BRI_NT_PTMP(ctrl) && !BRI_TE_PTMP(ctrl)) {
-		return pri_mkerror(ctrl,
-			"Received MDL/TEI managemement message, but configured for mode other than PTMP!\n");
+		/*
+		 * Some telco switches send out MDL messages even though they
+		 * are configured for PTP.  Usually they are checking for
+		 * assigned TEI's.
+		 */
+		if (ctrl->debug & PRI_DEBUG_Q921_STATE) {
+			/*
+			 * Send out this message in debug modes since it is possible the
+			 * user has misconfigured their link for the wrong mode.
+			 */
+			pri_message(ctrl, "Not configured for PTMP.  Ignoring MDL message: %d(%s)\n",
+				h->data[3], q921_tei_mgmt2str(h->data[3]));
+		}
+		return NULL;
 	}
 
 	if (ctrl->debug & PRI_DEBUG_Q921_STATE) {




More information about the svn-commits mailing list