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

libss7-commits at lists.digium.com libss7-commits at lists.digium.com
Sat Aug 12 15:47:41 MST 2006


Author: mattf
Date: Sat Aug 12 17:47:40 2006
New Revision: 12

URL: http://svn.digium.com/view/libss7?rev=12&view=rev
Log:
More continuity check work.

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

Modified: trunk/isup.c
URL: http://svn.digium.com/view/libss7/trunk/isup.c?rev=12&r1=11&r2=12&view=diff
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Sat Aug 12 17:47:40 2006
@@ -213,12 +213,22 @@
 static FUNC_SEND(nature_of_connection_ind_transmit)
 {
 	parm[0] = 0x00;
+
+	if (c->cot_check_required)
+		parm[0] |= 0x04;
 	
 	return 1; /* Length plus size of type header */
 }
 
 static FUNC_RECV(nature_of_connection_ind_receive)
 {
+	unsigned char cci = (parm[0] >> 2) & 0x3;
+
+	if (cci == 0x1)
+		c->cot_check_required = 1;
+	else
+		c->cot_check_required = 0;
+
 	return 1;
 }
 
@@ -894,6 +904,7 @@
 			e->e = ISUP_EVENT_IAM;
 			e->iam.cic = c->cic;
 			e->iam.transcap = c->transcap;
+			e->iam.cot_check_required = c->cot_check_required;
 			strncpy(e->iam.called_party_num, c->called_party_num, sizeof(e->iam.called_party_num));
 			strncpy(e->iam.calling_party_num, c->calling_party_num, sizeof(e->iam.calling_party_num));
 			e->iam.call = c;
@@ -939,6 +950,7 @@
 			e->e = ISUP_EVENT_COT;
 			e->cot.cic = c->cic;
 			e->cot.passed = c->cot_check_passed;
+			e->cot.call = c;
 			return 0;
 		case ISUP_CCR:
 			e->e = ISUP_EVENT_CCR;

Modified: trunk/isup.h
URL: http://svn.digium.com/view/libss7/trunk/isup.h?rev=12&r1=11&r2=12&view=diff
==============================================================================
--- trunk/isup.h (original)
+++ trunk/isup.h Sat Aug 12 17:47:40 2006
@@ -125,6 +125,7 @@
 	int causecode;
 	int causeloc;
 	int cot_check_passed;
+	int cot_check_required;
 	unsigned short cic;
 	unsigned short slc;
 	struct isup_call *next;

Modified: trunk/libss7.h
URL: http://svn.digium.com/view/libss7/trunk/libss7.h?rev=12&r1=11&r2=12&view=diff
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Sat Aug 12 17:47:40 2006
@@ -40,6 +40,7 @@
 	int e;
 	int cic;
 	int transcap;
+	int cot_check_required;
 	char called_party_num[50];
 	char calling_party_num[50];
 	struct isup_call *call;
@@ -90,6 +91,7 @@
 	int e;
 	int cic;
 	int passed;
+	struct isup_call *call;
 } ss7_event_cot;
 
 typedef struct {



More information about the libss7-commits mailing list