git-svn-id: http://svn.openzap.org/svn/openzap/trunk@442 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2008-04-04 20:39:14 +00:00
parent 6223a95b0a
commit f1ced4783f
1 changed files with 3 additions and 1 deletions

View File

@ -211,7 +211,9 @@ ie Q931AppendIE( L3UCHAR *pm, L3UCHAR *pi)
L3INT Q931GetUniqueCRV(Q931_TrunkInfo_t *pTrunk) L3INT Q931GetUniqueCRV(Q931_TrunkInfo_t *pTrunk)
{ {
static L3INT crv={1}; static L3INT crv={1};
return crv++; crv++;
if (crv > 32766) crv = 1;
return crv;
} }
L3INT Q931InitMesGeneric(Q931mes_Generic *pMes) L3INT Q931InitMesGeneric(Q931mes_Generic *pMes)