[libss7-commits] mattf: trunk r262 - in /trunk: isup.c libss7.h ss7.c
SVN commits to the libss7 project
libss7-commits at lists.digium.com
Tue Apr 28 17:19:54 CDT 2009
Author: mattf
Date: Tue Apr 28 17:19:49 2009
New Revision: 262
URL: http://svn.digium.com/svn-view/libss7?view=rev&rev=262
Log:
Add support for setting the ISDN access indicator bits (#13495)
Modified:
trunk/isup.c
trunk/libss7.h
trunk/ss7.c
Modified: trunk/isup.c
URL: http://svn.digium.com/svn-view/libss7/trunk/isup.c?view=diff&rev=262&r1=261&r2=262
==============================================================================
--- trunk/isup.c (original)
+++ trunk/isup.c Tue Apr 28 17:19:49 2009
@@ -422,7 +422,11 @@
static FUNC_SEND(forward_call_ind_transmit)
{
parm[0] = 0x60;
- parm[1] = 0x01;
+ parm[1] = 0x0;
+
+ if (ss7->flags & SS7_ISDN_ACCESS_INDICATOR)
+ parm [1] |= 0x01;
+
return 2;
}
@@ -679,9 +683,14 @@
static FUNC_SEND(backward_call_ind_transmit)
{
parm[0] = 0x40;
- parm[1] = 0x14;
+ parm[1] = 0x04;
+
if (c->local_echocontrol_ind)
parm[1] |= 0x20;
+
+ if (ss7->flags | SS7_ISDN_ACCESS_INDICATOR)
+ parm[1] |= 0x10;
+
return 2;
}
Modified: trunk/libss7.h
URL: http://svn.digium.com/svn-view/libss7/trunk/libss7.h?view=diff&rev=262&r1=261&r2=262
==============================================================================
--- trunk/libss7.h (original)
+++ trunk/libss7.h Tue Apr 28 17:19:49 2009
@@ -169,6 +169,7 @@
/* FLAGS */
#define SS7_INR_IF_NO_CALLING (1 << 0) /* request calling num, if the remote party didn't send */
+#define SS7_ISDN_ACCESS_INDICATOR (1 << 1) /* originating/access indicator */
struct ss7;
struct isup_call;
Modified: trunk/ss7.c
URL: http://svn.digium.com/svn-view/libss7/trunk/ss7.c?view=diff&rev=262&r1=261&r2=262
==============================================================================
--- trunk/ss7.c (original)
+++ trunk/ss7.c Tue Apr 28 17:19:49 2009
@@ -417,7 +417,7 @@
s->linkset_up_timer = -1;
- s->flags = 0;
+ s->flags = SS7_ISDN_ACCESS_INDICATOR;
s->sls_shift = 0;
return s;
More information about the libss7-commits
mailing list