[libss7-commits] mattf: trunk r109 - in /trunk: isup.c parser_debug.c

SVN commits to the libss7 project libss7-commits at lists.digium.com
Wed Oct 3 08:51:08 CDT 2007


Author: mattf
Date: Wed Oct  3 08:51:07 2007
New Revision: 109

URL: http://svn.digium.com/view/libss7?view=rev&rev=109
Log:
Add support for charge number dumping

Modified:
    trunk/isup.c
    trunk/parser_debug.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=109&r1=108&r2=109
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Wed Oct  3 08:51:07 2007
@@ -899,6 +899,17 @@
 
 static FUNC_DUMP(charge_number_dump)
 {
+	int oddeven = (parm[0] >> 7) & 0x1;
+	char numbuf[64] = "";
+
+	ss7_message(ss7, "\t\t\tOdd/even: %x\n", (parm[0] >> 7) & 0x1);
+	ss7_message(ss7, "\t\t\tNature of address: %x\n", parm[0] & 0x7f);
+	ss7_message(ss7, "\t\t\tNumbering plan: %x\n", (parm[1] >> 4) & 0x7);
+
+	isup_get_number(numbuf, &parm[2], len - 2, oddeven);
+
+	ss7_message(ss7, "\t\t\tAddress signals: %s\n", numbuf);
+
 	return len;
 }
 

Modified: trunk/parser_debug.c
URL: http://svn.digium.com/view/libss7/trunk/parser_debug.c?view=diff&rev=109&r1=108&r2=109
==============================================================================
--- trunk/parser_debug.c (original)
+++ trunk/parser_debug.c Wed Oct  3 08:51:07 2007
@@ -8,7 +8,7 @@
 int main(int argc, char **argv)
 {
 	FILE *fp;
-	struct ss7 *ss7 = ss7_new(SS7_ITU);
+	struct ss7 *ss7 = ss7_new(SS7_ANSI);
 	unsigned char mybuf[512];
 	int res = 0, i = 0, size;
 	ss7_event *e;




More information about the libss7-commits mailing list