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

SVN commits to the libss7 project libss7-commits at lists.digium.com
Tue Apr 28 17:03:03 CDT 2009


Author: mattf
Date: Tue Apr 28 17:03:00 2009
New Revision: 260

URL: http://svn.digium.com/svn-view/libss7?view=rev&rev=260
Log:
Add support for setting calling party category

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

Modified: trunk/isup.c
URL: http://svn.digium.com/svn-view/libss7/trunk/isup.c?view=diff&rev=260&r1=259&r2=260
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Tue Apr 28 17:03:00 2009
@@ -498,7 +498,7 @@
 
 static FUNC_SEND(calling_party_cat_transmit)
 {
-	parm[0] = 0x0a; /* Default to Ordinary calling subscriber */
+       parm[0] = c->calling_party_cat;
 	return 1;
 }
 
@@ -2484,6 +2484,7 @@
 	c->oli_ani2 = -1;
 	c->range = 0;
 	c->got_sent_msg = 0;
+	c->calling_party_cat = 0x0a; /* Default to Ordinary calling subscriber */
 }
 
 static struct isup_call * __isup_new_call(struct ss7 *ss7, int nolink)
@@ -2671,6 +2672,11 @@
 {
 	c->call_ref_ident = call_ref_ident;
 	c->call_ref_pc = call_ref_pc;
+}
+
+void isup_set_calling_party_category(struct isup_call *c, unsigned int category)
+{
+        c->calling_party_cat = category;
 }
 
 void isup_init_call(struct ss7 *ss7, struct isup_call *c, int cic, unsigned int dpc)

Modified: trunk/libss7.h
URL: http://svn.digium.com/svn-view/libss7/trunk/libss7.h?view=diff&rev=260&r1=259&r2=260
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Tue Apr 28 17:03:00 2009
@@ -596,6 +596,8 @@
 
 void isup_set_callref(struct isup_call *c, unsigned int call_ref_ident, unsigned int call_ref_pc);
 
+void isup_set_calling_party_category(struct isup_call *c, unsigned int category);
+
 /* End of call related sets */
 
 int isup_show_calls(struct ss7 *ss7, void (* cust_printf)(int fd, const char *format, ...), int fd);




More information about the libss7-commits mailing list