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

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Thu Sep 7 19:14:51 MST 2006


Author: mattf
Date: Thu Sep  7 21:14:51 2006
New Revision: 40

URL: http://svn.digium.com/view/libss7?rev=40&view=rev
Log:
Make sure we set the priority field in ansi

Modified:
    trunk/mtp3.c

Modified: trunk/mtp3.c
URL: http://svn.digium.com/view/libss7/trunk/mtp3.c?rev=40&r1=39&r2=40&view=diff
==============================================================================
--- trunk/mtp3.c (original)
+++ trunk/mtp3.c Thu Sep  7 21:14:51 2006
@@ -303,13 +303,18 @@
 	unsigned char *sio;
 	unsigned char *sif;
 	struct mtp2 *winner;
+	int priority = 3;
 
 	sio = m->buf + MTP2_SIZE;
 	sif = sio + 1;
 
 	winner = sls_to_link(ss7, sls);
 
-	(*sio) = (ss7->ni << 6) | userpart;
+	if (ss7->switchtype == SS7_ITU)
+		(*sio) = (ss7->ni << 6) | userpart;
+	else
+		(*sio) = (ss7->ni << 6) | (priority << 4) | userpart;
+
 
 	return mtp2_msu(winner, m);
 }



More information about the libss7-commits mailing list