From 3ad3dca0f39f00578a2f1ec9ecf0d07aa5f247f7 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 22 May 2007 01:29:31 +0000 Subject: [PATCH] missing changes from previous commit. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@89 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/isdn/Q921.c | 8 ++++---- libs/freetdm/src/isdn/include/Q921.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/freetdm/src/isdn/Q921.c b/libs/freetdm/src/isdn/Q921.c index 3f768e4116..1a7e3d402b 100644 --- a/libs/freetdm/src/isdn/Q921.c +++ b/libs/freetdm/src/isdn/Q921.c @@ -90,7 +90,7 @@ void Q921Init() if your trunk is not TE (user) mode (i.e. NET). *****************************************************************************/ -int Q921_InitTrunk(long trunk, int sapi, int tei, Q921NetUser_t NetUser) +int Q921_InitTrunk(long trunk, L2UCHAR sapi, L2UCHAR tei, Q921NetUser_t NetUser) { if (trunk > Q921MAXTRUNK) return 0; @@ -173,9 +173,9 @@ int Q921SendI(int trunk, L2UCHAR Sapi, char cr, L2UCHAR Tei, char pf, L2UCHAR *m int Q921Rx32(long trunk, L2UCHAR * Mes, L2INT Size) { return Q921SendI(trunk, - Q921DevSpace[x].sapi, - Q921DevSpace[x].NetUser == Q921_TE ? 0 : 1; - Q921DevSpace[x].tei, + Q921DevSpace[trunk].sapi, + Q921DevSpace[trunk].NetUser == Q921_TE ? 0 : 1, + Q921DevSpace[trunk].tei, 0, Mes, Size); diff --git a/libs/freetdm/src/isdn/include/Q921.h b/libs/freetdm/src/isdn/include/Q921.h index cec349820a..aba3fab9a0 100644 --- a/libs/freetdm/src/isdn/include/Q921.h +++ b/libs/freetdm/src/isdn/include/Q921.h @@ -110,19 +110,19 @@ typedef struct L2UCHAR vs; L2UCHAR vr; L2INT state; - L2INT sapi; - L2INT tei; + L2UCHAR sapi; + L2UCHAR tei; Q921NetUser_t NetUser; }Q921Data; void Q921Init(); -int Q921_InitTrunk(long trunk, int sapi, int tei, Q921NetUser_t NetUser); +int Q921_InitTrunk(long trunk, L2UCHAR sapi, L2UCHAR tei, Q921NetUser_t NetUser); void Q921SetHeaderSpace(int hspace); void Q921SetTx21CB(int (*callback)(int dev, L2UCHAR *, int)); void Q921SetTx23CB(int (*callback)(int dev, L2UCHAR *, int)); int Q921QueueHDLCFrame(int trunk, L2UCHAR *b, int size); int Q921Rx12(long trunk); - +int Q921Rx32(long trunk, L2UCHAR * Mes, L2INT Size); #endif