[libss7-commits] mattf: trunk r32 - in /trunk: README isup.c libss7.h

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Wed Aug 30 13:47:44 MST 2006


Author: mattf
Date: Wed Aug 30 15:47:44 2006
New Revision: 32

URL: http://svn.digium.com/view/libss7?rev=32&view=rev
Log:
Add support for reset messages.

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

Modified: trunk/README
URL: http://svn.digium.com/view/libss7/trunk/README?rev=32&r1=31&r2=32&view=diff
==============================================================================
--- trunk/README (original)
+++ trunk/README Wed Aug 30 15:47:44 2006
@@ -26,6 +26,8 @@
 
 Completed:
 ==========
+MTP2
+Basic MTP3
 Basic call messages (IAM, ACM, ANM, REL, RLC)
 CIC Reset (GRS, GRA)
 Connect message (CON)

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?rev=32&r1=31&r2=32&view=diff
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Wed Aug 30 15:47:44 2006
@@ -86,6 +86,7 @@
 	{ISUP_UBL, 0, 0, 0, empty_params},
 	{ISUP_BLA, 0, 0, 0, empty_params},
 	{ISUP_UBA, 0, 0, 0, empty_params},
+	{ISUP_RSC, 0, 0, 0, empty_params},
 };
 
 static int isup_send_message(struct ss7 *ss7, struct isup_call *c, int messagetype, int parms[]);
@@ -127,6 +128,8 @@
 			return "CGBA";
 		case ISUP_CGUA:
 			return "CGUA";
+		case ISUP_RSC:
+			return "RSC";
 		default:
 			return "Unknown";
 	}
@@ -1005,6 +1008,11 @@
 
 			isup_free_call(ss7, c); /* Won't need this again */
 			return 0;
+		case ISUP_RSC:
+			e->e = ISUP_EVENT_RSC;
+			e->rsc.cic = cic;
+			isup_free_call(ss7, c);
+			return 0;
 		case ISUP_REL:
 			e->e = ISUP_EVENT_REL;
 			e->rel.cic = c->cic;
@@ -1183,6 +1191,11 @@
 	return res;
 }
 
+int isup_rsc(struct ss7 *ss7, int cic)
+{
+	return isup_send_message_ciconly(ss7, ISUP_RSC, cic);
+}
+
 int isup_blo(struct ss7 *ss7, int cic)
 {
 	return isup_send_message_ciconly(ss7, ISUP_BLO, cic);

Modified: trunk/libss7.h
URL: http://svn.digium.com/view/libss7/trunk/libss7.h?rev=32&r1=31&r2=32&view=diff
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Wed Aug 30 15:47:44 2006
@@ -25,6 +25,7 @@
 #define ISUP_EVENT_CGU		20
 #define ISUP_EVENT_CGBA		19
 #define ISUP_EVENT_CGUA		20
+#define ISUP_EVENT_RSC		21
 
 /* Different SS7 types */
 #define SS7_ITU		(1 << 0)
@@ -123,6 +124,7 @@
 	ss7_event_ciconly ubl;
 	ss7_event_ciconly bla;
 	ss7_event_ciconly uba;
+	ss7_event_ciconly rsc;
 } ss7_event;
 
 void ss7_set_message(void (*func)(struct ss7 *ss7, char *message));
@@ -195,5 +197,7 @@
 
 int isup_uba(struct ss7 *ss7, int cic);
 
+int isup_rsc(struct ss7 *ss7, int cic);
+
 void isup_init_call(struct isup_call *c, int cic, char *calledpartynum, char *callingpartynum);
 #endif /* _LIBSS7_H */



More information about the libss7-commits mailing list