[libss7-commits] mattf: trunk r139 - /trunk/mtp3.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Fri Jan 18 16:27:25 CST 2008


Author: mattf
Date: Fri Jan 18 16:27:25 2008
New Revision: 139

URL: http://svn.digium.com/view/libss7?view=rev&rev=139
Log:
Fix for sometimes stupid telco SLC settings

Modified:
    trunk/mtp3.c

Change Statistics:
 trunk/mtp3.c |    9 +++++++++
 1 file changed, 9 insertions(+)

Modified: trunk/mtp3.c
URL: http://svn.digium.com/view/libss7/trunk/mtp3.c?view=diff&rev=139&r1=138&r2=139
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Fri Jan 18 16:27:25 2008
@@ -162,6 +162,7 @@
 		return ss7->links[sls % ss7->numlinks];
 	else {
 		struct mtp2 *winner = ss7->links[0];
+		int i;
 
 		for (i = 0; i < ss7->numlinks; i++) {
 			if (ss7->mtp2_linkstate[i] == MTP2_LINKSTATE_UP) {
@@ -385,7 +386,15 @@
 		drl.type = ss7->switchtype;
 		drl.dpc = rl.opc;
 		drl.opc = ss7->pc;
+#if 0
 		drl.sls = mtp2->slc;
+#else
+		/* 
+		 * I hate that we would have to do this, but it would seem that
+		 * some telcos set things up stupid enough that we have to
+		 */
+		drl.sls = rl.sls;
+#endif
 
 		layer4 = ss7_msg_userpart(m);
 




More information about the libss7-commits mailing list