mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
try to release call table entry a bit more.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@396 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
42233ec499
commit
7235194cc4
@ -759,6 +759,7 @@ L3INT Q931ProcDisconnectTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
|
|||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
|
L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
|
||||||
{
|
{
|
||||||
|
L3INT callIndex;
|
||||||
Q931mes_Generic *pMes = (Q931mes_Generic *)&buf[Q931L4HeaderSpace];
|
Q931mes_Generic *pMes = (Q931mes_Generic *)&buf[Q931L4HeaderSpace];
|
||||||
L3INT state = Q931GetCallState(pTrunk, pMes->CRV);
|
L3INT state = Q931GetCallState(pTrunk, pMes->CRV);
|
||||||
L3INT ret = Q931E_NO_ERROR;
|
L3INT ret = Q931E_NO_ERROR;
|
||||||
@ -771,6 +772,12 @@ L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom)
|
|||||||
} else {
|
} else {
|
||||||
ret = Q931ProcUnexpectedMessage(pTrunk, buf, iFrom);
|
ret = Q931ProcUnexpectedMessage(pTrunk, buf, iFrom);
|
||||||
}
|
}
|
||||||
|
if (pMes->CRV) {
|
||||||
|
/* Find the call using CRV */
|
||||||
|
if ((Q931FindCRV(pTrunk, pMes->CRV, &callIndex)) != Q931E_NO_ERROR)
|
||||||
|
return ret;
|
||||||
|
pTrunk->call[callIndex].InUse = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user