[svn-commits] mattf: trunk r84 - in /trunk: isup.c libss7.h mtp2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed May 23 08:29:19 MST 2007


Author: mattf
Date: Wed May 23 10:29:18 2007
New Revision: 84

URL: http://svn.digium.com/view/libss7?view=rev&rev=84
Log:
Pass cause back up the stack for REL.  Also display SLC when debug message is printed

Modified:
    trunk/isup.c
    trunk/libss7.h
    trunk/mtp2.c

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?view=diff&rev=84&r1=83&r2=84
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Wed May 23 10:29:18 2007
@@ -1183,6 +1183,7 @@
 			e->e = ISUP_EVENT_REL;
 			e->rel.cic = c->cic;
 			e->rel.call = c;
+			e->rel.cause = c->cause;
 			return 0;
 		case ISUP_ACM:
 			e->e = ISUP_EVENT_ACM;

Modified: trunk/libss7.h
URL: http://svn.digium.com/view/libss7/trunk/libss7.h?view=diff&rev=84&r1=83&r2=84
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Wed May 23 10:29:18 2007
@@ -80,6 +80,7 @@
 typedef struct {
 	int e;
 	int cic;
+	int cause;
 	struct isup_call *call;
 } ss7_event_rel;
 

Modified: trunk/mtp2.c
URL: http://svn.digium.com/view/libss7/trunk/mtp2.c?view=diff&rev=84&r1=83&r2=84
==============================================================================
--- trunk/mtp2.c (original)
+++ trunk/mtp2.c Wed May 23 10:29:18 2007
@@ -770,7 +770,7 @@
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
 
-			ss7_message(link->master, "%c FISU\n", prefix);
+			ss7_message(link->master, "%c[%d] FISU\n", prefix, link->slc);
 			break; 
 		case 1:
 			if (prefix == '<' && link->lastsurxd == h->data[0])
@@ -801,13 +801,13 @@
 			}
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
-			ss7_message(link->master, "%c LSSU %s\n", prefix, mtypech);
+			ss7_message(link->master, "%c[%d] LSSU %s\n", prefix, link->slc, mtypech);
 			break;
 		case 2:
 			ss7_dump_buf(link->master, buf, len);
 			ss7_message(link->master, "FSN: %d FIB %d\n", h->fsn, h->fib);
 			ss7_message(link->master, "BSN: %d BIB %d\n", h->bsn, h->bib);
-			ss7_message(link->master, "%c MSU\n", prefix);
+			ss7_message(link->master, "%c[%d] MSU\n", prefix, link->slc);
 			mtp3_dump(link->master, link, h->data, len - MTP2_SU_HEAD_SIZE);
 			break;
 	}



More information about the svn-commits mailing list