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

SVN commits to the libss7 project libss7-commits at lists.digium.com
Tue Oct 2 18:16:13 CDT 2007


Author: mattf
Date: Tue Oct  2 18:16:11 2007
New Revision: 108

URL: http://svn.digium.com/view/libss7?view=rev&rev=108
Log:
Add dump support for transmission medium requirements

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=108&r1=107&r2=108
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Tue Oct  2 18:16:11 2007
@@ -411,6 +411,41 @@
 
 static FUNC_DUMP(transmission_medium_reqs_dump)
 {
+	char *type;
+
+	switch (parm[0]) {
+		case 0:
+			type = "Speech";
+			break;
+		case 1:
+			type = "Spare";
+			break;
+		case 2:
+			type = "64 kbit/s unrestricted";
+			break;
+		case 4:
+			type = "3.1 khz audio";
+			break;
+		case 6:
+			type = "64 kbit/s preferred";
+			break;
+		case 7:
+			type = "2 x 64 kbit/s unrestricted";
+			break;
+		case 8:
+			type = "384 kbit/s unrestricted";
+			break;
+		case 9:
+			type = "1536 kbit/s unrestricted";
+			break;
+		case 10:
+			type = "1920 kbit/s unrestricted";
+			break;
+		default:
+			type = "N x 64kbit/s unrestricted or possibly spare";
+			break;
+	}
+	ss7_message(ss7, "\t\t\t%s (%d)\n", type, parm[0]);
 	return 1;
 }
 

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




More information about the libss7-commits mailing list