[libss7-commits] mattf: trunk r145 - /trunk/isup.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Sat Mar 15 17:54:06 CDT 2008


Author: mattf
Date: Sat Mar 15 17:54:06 2008
New Revision: 145

URL: http://svn.digium.com/view/libss7?view=rev&rev=145
Log:
Add more dump support for backward call indicator

Modified:
    trunk/isup.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=145&r1=144&r2=145
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Sat Mar 15 17:54:06 2008
@@ -598,6 +598,30 @@
 
 static FUNC_DUMP(backward_call_ind_dump)
 {
+	unsigned char ba = parm[0] & 0x3;
+	unsigned char dc = (parm[0] >> 2) & 0x3;
+	unsigned char fe = (parm[0] >> 4) & 0x3;
+	unsigned char hg = (parm[0] >> 6) & 0x3;
+	unsigned char i = parm[1] & 0x1;
+	unsigned char j = (parm[1] >> 1) & 0x1;
+	unsigned char k = (parm[1] >> 2) & 0x1;
+	unsigned char l = (parm[1] >> 3) & 0x1;
+	unsigned char m = (parm[1] >> 4) & 0x1;
+	unsigned char n = (parm[1] >> 5) & 0x1;
+	unsigned char pq = (parm[1] >> 7) & 0x3;
+
+	ss7_message(ss7, "\t\t\tCharge indicator: %d\n", ba);
+	ss7_message(ss7, "\t\t\tCalled party's status indicator: %d\n", dc);
+	ss7_message(ss7, "\t\t\tCalled party's category indicator: %d\n", fe);
+	ss7_message(ss7, "\t\t\tEnd to End method indicator: %d\n", hg);
+	ss7_message(ss7, "\t\t\tInterworking indicator: %d\n", i);
+	ss7_message(ss7, "\t\t\tEnd to End information indicator: %d\n", j);
+	ss7_message(ss7, "\t\t\tISDN user part indicator: %d\n", k);
+	ss7_message(ss7, "\t\t\tHolding indicator: %d\n", l);
+	ss7_message(ss7, "\t\t\tISDN access indicator: %d\n", m);
+	ss7_message(ss7, "\t\t\tEcho control device indicator: %d\n", n);
+	ss7_message(ss7, "\t\t\tSCCP method indicator: %d\n", pq);
+
 	return 2;
 }
 




More information about the libss7-commits mailing list