add Q921Start

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@100 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2007-05-22 19:21:55 +00:00
parent 4b3113f56d
commit b9d3b86363
2 changed files with 10 additions and 0 deletions

View File

@ -259,6 +259,15 @@ int Q921SendSABME(L2TRUNK trunk, int Sapi, int cr, int Tei, int pf)
return Q921Tx21Proc(trunk, mes, trunk->Q921HeaderSpace+3);
}
int Q921Start(L2TRUNK trunk)
{
return Q921SendSABME(trunk,
trunk->sapi,
trunk->NetUser == Q921_TE ? 0 : 1,
trunk->tei,
0);
}
/*****************************************************************************
Function: Q921SendDM

View File

@ -124,5 +124,6 @@ void Q921_InitTrunk(L2TRUNK trunk,
int Q921QueueHDLCFrame(L2TRUNK trunk, L2UCHAR *b, L2INT size);
int Q921Rx12(L2TRUNK trunk);
int Q921Rx32(L2TRUNK trunk, L2UCHAR * Mes, L2INT Size);
int Q921Start(L2TRUNK trunk);
#endif