From 16735718420e480e8b48bbc7664a4370f4899edc Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 24 May 2007 20:16:45 +0000 Subject: [PATCH] add Q931MegGetIE function to simplify the Pmes functions. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@147 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/isdn/Q931.c | 153 +++++++++++++++++++++++++++ libs/openzap/src/isdn/include/Q931.h | 8 ++ 2 files changed, 161 insertions(+) diff --git a/libs/openzap/src/isdn/Q931.c b/libs/openzap/src/isdn/Q931.c index afc57539d0..2f3bf63028 100644 --- a/libs/openzap/src/isdn/Q931.c +++ b/libs/openzap/src/isdn/Q931.c @@ -64,6 +64,156 @@ L3INT (*Q931Pmes [Q931MAXDLCT][Q931MAXMES]) (Q931_TrunkInfo_t *pTrunk, Q931mes_ L3INT (*Q931Uie [Q931MAXDLCT][Q931MAXIE]) (Q931_TrunkInfo_t *pTrunk, ie *pIE, L3UCHAR * IBuf, L3UCHAR * OBuf, L3INT *IOff, L3INT *OOff); L3INT (*Q931Pie [Q931MAXDLCT][Q931MAXIE]) (Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, L3UCHAR *OBuf, L3INT *Octet); +L3UINT Q931MsgieOffset[Q931MAXIE]; + +void Q931Initialize_MsgieOffset() +{ + L3INT x; + Q931mes_Generic msg; + ie *index; + + for(x=0; x