]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Steps towards parsing NI2 Setup message.
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 24 May 2007 18:16:04 +0000 (18:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 24 May 2007 18:16:04 +0000 (18:16 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@146 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/Makefile
libs/freetdm/src/isdn/nationalie.c
libs/freetdm/src/isdn/nationalmes.c

index 1703dfd9dfea5e16927ac923328d037758563627..f913e93e6555287685f8357fffd3471793d968c6 100644 (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)
 
index b6e24463504647a75434c924b87b17e048beb4c8..184c11aa183b2076da9f0c1fad1decf1c0ddb73a 100644 (file)
                 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;\
index 23eb68d18594c48074371e3fb7991cc3bf7072b8..971016167f77a6572eb0f8fa925e257abaa0b396 100644 (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;