tweak the state stuff

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@253 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Anthony Minessale 2007-06-14 01:54:51 +00:00
parent deba84fe3b
commit d26289fc92
1 changed files with 8 additions and 2 deletions

View File

@ -761,7 +761,12 @@ L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
Q931mes_Generic *pMes = (Q931mes_Generic *)&buf[Q931L4HeaderSpace];
L3INT state = Q931GetCallState(pTrunk, pMes->CRV);
L3INT ret = Q931E_NO_ERROR;
if(state == Q931_U0 && iFrom == 2)
if(iFrom == 4)
{
/* TODO Add proc here*/
ret = Q931Tx32(pTrunk,buf,pMes->Size);
}
else if(state == Q931_U0 && iFrom == 2)
{
ret = Q931ReleaseComplete(pTrunk, iFrom);
}
@ -785,7 +790,8 @@ L3INT Q931ProcReleaseCompleteTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT i
L3INT ret = Q931E_NO_ERROR;
if(state == Q931_U0 && iFrom == 2)
{
/* no action */
/* TODO Add proc here*/
ret = Q931Tx34(pTrunk,buf,pMes->Size);
}
return ret;
}