From: Anthony Minessale Date: Fri, 2 May 2008 23:37:01 +0000 (+0000) Subject: update X-Git-Tag: v1.0.6~38^2~399 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a90ef152f953dd11836dd3aeb75b36dc799f197d;p=thirdparty%2Ffreeswitch.git update git-svn-id: http://svn.openzap.org/svn/openzap/trunk@468 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/openzap/src/isdn/Q931StateTE.c b/libs/openzap/src/isdn/Q931StateTE.c index f001029ac6..da028b5867 100644 --- a/libs/openzap/src/isdn/Q931StateTE.c +++ b/libs/openzap/src/isdn/Q931StateTE.c @@ -772,7 +772,7 @@ L3INT Q931ProcReleaseTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT iFrom) } else { ret = Q931ProcUnexpectedMessage(pTrunk, buf, iFrom); } - if (pMes->CRV) { + if (pMes->CRV && iFrom == 2) { /* Find the call using CRV */ if ((Q931FindCRV(pTrunk, pMes->CRV, &callIndex)) != Q931E_NO_ERROR) return ret; @@ -797,16 +797,17 @@ L3INT Q931ProcReleaseCompleteTE(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT i { /* TODO Add proc here*/ ret = Q931Tx34(pTrunk,buf,pMes->Size); - } + } else { - if (pMes->CRV) { - /* Find the call using CRV */ - ret = Q931FindCRV(pTrunk, pMes->CRV, &callIndex); - if(ret != Q931E_NO_ERROR) - return ret; - pTrunk->call[callIndex].InUse = 0; - } + if (pMes->CRV) { + /* Find the call using CRV */ + ret = Q931FindCRV(pTrunk, pMes->CRV, &callIndex); + if(ret != Q931E_NO_ERROR) + return ret; + pTrunk->call[callIndex].InUse = 0; + } + } return ret; }