missing changes from previous commit.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@89 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
252496d12c
commit
3ad3dca0f3
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue