[libss7-commits] mattf: branch mattf/libss7-ss7cluster r288 - /team/mattf/libss7-ss7cluster/

SVN commits to the libss7 project libss7-commits at lists.digium.com
Wed Jun 16 10:24:57 CDT 2010


Author: mattf
Date: Wed Jun 16 10:24:53 2010
New Revision: 288

URL: http://svnview.digium.com/svn/libss7?view=rev&rev=288
Log:
Allow setting of forward call indicators.  This is used mostly for setting the indicator that we are using ported numbers that we have already looked up in the DB.

Modified:
    team/mattf/libss7-ss7cluster/isup.c
    team/mattf/libss7-ss7cluster/isup.h
    team/mattf/libss7-ss7cluster/libss7.h

Modified: team/mattf/libss7-ss7cluster/isup.c
URL: http://svnview.digium.com/svn/libss7/team/mattf/libss7-ss7cluster/isup.c?view=diff&rev=288&r1=287&r2=288
==============================================================================
--- team/mattf/libss7-ss7cluster/isup.c (original)
+++ team/mattf/libss7-ss7cluster/isup.c Wed Jun 16 10:24:53 2010
@@ -381,6 +381,7 @@
 {
 	parm[0] = 0x60;
 	parm[1] = 0x01;
+	parm[1] |= (c->forward_call_ind_national_bits & 0xf) << 4;
 	return 2;
 }
 
@@ -2084,6 +2085,11 @@
 struct isup_call * isup_new_call(struct ss7 *ss7)
 {
 	return __isup_new_call(ss7, 0);
+}
+
+void isup_set_forward_call_ind_nat_bits(struct isup_call *c, unsigned int bits)
+{
+	c->forward_call_ind_national_bits = bits;
 }
 
 void isup_set_call_dpc(struct isup_call *c, unsigned int dpc)

Modified: team/mattf/libss7-ss7cluster/isup.h
URL: http://svnview.digium.com/svn/libss7/team/mattf/libss7-ss7cluster/isup.h?view=diff&rev=288&r1=287&r2=288
==============================================================================
--- team/mattf/libss7-ss7cluster/isup.h (original)
+++ team/mattf/libss7-ss7cluster/isup.h Wed Jun 16 10:24:53 2010
@@ -194,6 +194,8 @@
 	unsigned char generic_name_typeofname;
 	unsigned char generic_name_avail;
 	unsigned char generic_name_presentation;
+
+	unsigned int forward_call_ind_national_bits;
 	char generic_name[ISUP_MAX_NAME];
 	int range;
 	unsigned char status[255];

Modified: team/mattf/libss7-ss7cluster/libss7.h
URL: http://svnview.digium.com/svn/libss7/team/mattf/libss7-ss7cluster/libss7.h?view=diff&rev=288&r1=287&r2=288
==============================================================================
--- team/mattf/libss7-ss7cluster/libss7.h (original)
+++ team/mattf/libss7-ss7cluster/libss7.h Wed Jun 16 10:24:53 2010
@@ -567,6 +567,8 @@
 
 void isup_set_call_dpc(struct isup_call *c, unsigned int dpc);
 
+void isup_set_forward_call_ind_nat_bits(struct isup_call *c, unsigned int bits);
+
 void isup_set_called(struct isup_call *c, const char *called, unsigned char called_nai, const struct ss7 *ss7);
 
 void isup_set_calling(struct isup_call *c, const char *calling, unsigned char calling_nai, unsigned char presentation_ind, unsigned char screening_ind);




More information about the libss7-commits mailing list