Steps towards parsing NI2 Setup message.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@146 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-05-24 18:16:04 +00:00
parent adb55eaedc
commit afb3f35a82
3 changed files with 11 additions and 3 deletions

View File

@ -57,6 +57,9 @@ isdn/nationalStateNT.o \
isdn/nationalStateTE.o \
isdn/Q932mes.o
HEADERS=isdn/include/Q931.h \
include/openzap.h
PWD=$(shell pwd)
INCS=-I$(PWD)/include -I$(PWD)/isdn/include
CFLAGS=$(ZAP_CFLAGS) $(INCS)
@ -67,7 +70,7 @@ include general.makefile $(ZAP_MODS)
all: $(MYLIB)
$(MYLIB): $(OBJS)
$(MYLIB): $(OBJS) $(HEADERS)
ar rcs $(MYLIB) $(OBJS)
ranlib $(MYLIB)

View File

@ -66,10 +66,10 @@
the current IE.
*****************************************************************************/
#define Q931MoreIE() (Octet+Off - 2 < IESize)
#define Q931MoreIE() (Octet+Off - 2< IESize)
#define Q931IESizeTest(x) {\
if(Octet+Off-2 != IESize)\
if(Octet + Off - 2!= IESize)\
{\
Q931SetError(pTrunk,x, Octet, Off);\
return x;\

View File

@ -159,6 +159,11 @@ L3INT nationalUmes_Setup(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generi
break;
case nationalie_GENERIC_DIGITS:
/* TODO: Implement this ie */
IOff = IOff + 4;
break;
case Q931ie_SHIFT:
/* TODO: Implement this ie */
IOff++;
break;
default:
return Q931E_ILLEGAL_IE;