add Q931InitMesRestartAck

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@103 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2007-05-22 22:24:43 +00:00
parent 795f2f6d31
commit aecacc27df
2 changed files with 15 additions and 0 deletions

View File

@ -404,6 +404,20 @@ L3INT Q931InitMesResume(Q931mes_Resume * pMes)
return 0;
}
L3INT Q931InitMesRestartAck(Q931mes_RestartAck * pMes)
{
pMes->ProtDisc = 0x80;
pMes->CRV = 0; /* CRV to be allocated, might be receive*/
pMes->MesType = Q931mes_RESTART_ACKNOWLEDGE;
pMes->Size = Q931GetMesSize((L3UCHAR*)pMes);
pMes->ChanID = 0; /* Channel Identification */
pMes->Display = 0;
pMes->RestartInd = 0;
pMes->RestartWin = 0;
return 0;
}
L3INT Q931InitIEBearerCap(Q931ie_BearerCap *pIE)
{
pIE->IEId = Q931ie_BEARER_CAPABILITY;

View File

@ -2395,6 +2395,7 @@ void Q931SetIEProc(L3UCHAR iec, L3UCHAR dialect,
void Q931Initialize();
void Q931AddDialect(L3UCHAR iDialect, void (*Q931CreateDialectCB)(L3UCHAR iDialect));
L3INT Q931InitMesSetup(Q931mes_Setup *p);
L3INT Q931InitMesRestartAck(Q931mes_RestartAck * pMes);
L3INT Q931CreateCRV(Q931_TrunkInfo_t *pTrunk, L3INT * callIndex);
L3INT Q931AllocateCRV(Q931_TrunkInfo_t *pTrunk, L3INT iCRV, L3INT * callIndex);