[libss7-commits] mattf: trunk r4 - in /trunk: isup.c libss7.h ss7.c

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Wed Aug 2 15:30:54 MST 2006


Author: mattf
Date: Wed Aug  2 17:30:53 2006
New Revision: 4

URL: http://svn.digium.com/view/libss7?rev=4&view=rev
Log:
Add support for the connect message.

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

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?rev=4&r1=3&r2=4&view=diff
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Wed Aug  2 17:30:53 2006
@@ -48,6 +48,8 @@
 static int acm_params[] = {ISUP_PARM_BACKWARD_CALL_IND, -1};
 
 static int anm_params[] = { -1};
+
+static int con_params[] = { ISUP_PARM_BACKWARD_CALL_IND, -1};
 
 static int rel_params[] = { ISUP_PARM_CAUSE, -1};
 
@@ -65,6 +67,7 @@
 	{ISUP_IAM, 4, 1, 1, iam_params},
 	{ISUP_ACM, 1, 0, 1, acm_params},
 	{ISUP_ANM, 0, 0, 1, anm_params},
+	{ISUP_CON, 1, 0, 1, con_params},
 	{ISUP_REL, 0, 1, 1, rel_params},
 	{ISUP_RLC, 0, 0, 1, rlc_params},
 	{ISUP_GRS, 0, 1, 0, grs_params},
@@ -899,6 +902,11 @@
 			e->acm.cic = c->cic;
 			e->acm.call = c;
 			return 0;
+		case ISUP_CON:
+			e->e = ISUP_EVENT_CON;
+			e->con.cic = c->cic;
+			e->con.call = c;
+			return 0;
 		case ISUP_ANM:
 			e->e = ISUP_EVENT_ANM;
 			e->anm.cic = c->cic;
@@ -946,6 +954,11 @@
 	return isup_send_message(ss7, c, ISUP_ANM, anm_params);
 }
 
+int isup_con(struct ss7 *ss7, struct isup_call *c)
+{
+	return isup_send_message(ss7, c, ISUP_CON, con_params);
+}
+
 int isup_rel(struct ss7 *ss7, struct isup_call *c, int cause)
 {
 	if (cause < 0)

Modified: trunk/libss7.h
URL: http://svn.digium.com/view/libss7/trunk/libss7.h?rev=4&r1=3&r2=4&view=diff
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Wed Aug  2 17:30:53 2006
@@ -14,6 +14,7 @@
 /* Circuit group reset */
 #define ISUP_EVENT_GRS		10
 #define ISUP_EVENT_GRA		11
+#define ISUP_EVENT_CON		12
 
 /* Different SS7 types */
 #define SS7_ITU		(1 << 0)
@@ -57,6 +58,12 @@
 	int e;
 	int cic;
 	struct isup_call *call;
+} ss7_event_con;
+
+typedef struct {
+	int e;
+	int cic;
+	struct isup_call *call;
 } ss7_event_anm;
 
 typedef struct {
@@ -92,6 +99,7 @@
 	ss7_event_rlc rlc;
 	ss7_event_anm anm;
 	ss7_event_acm acm;
+	ss7_event_con con;
 } ss7_event;
 
 void ss7_set_message(void (*func)(struct ss7 *ss7, char *message));
@@ -134,9 +142,7 @@
 
 int isup_anm(struct ss7 *ss7, struct isup_call *c);
 
-#if 0
-int isup_call_setcalled(struct isup_call *c, int cic);
-#endif
+int isup_con(struct ss7 *ss7, struct isup_call *c);
 
 struct isup_call * isup_new_call(struct ss7 *ss7);
 

Modified: trunk/ss7.c
URL: http://svn.digium.com/view/libss7/trunk/ss7.c?rev=4&r1=3&r2=4&view=diff
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Wed Aug  2 17:30:53 2006
@@ -218,6 +218,8 @@
 			return "ISUP_EVENT_GRS";
 		case ISUP_EVENT_GRA:
 			return "ISUP_EVENT_GRA";
+		case ISUP_EVENT_CON:
+			return "ISUP_EVENT_CON";
 		default:
 			return "Unknown Event";
 	}



More information about the libss7-commits mailing list