re-set our decode buffer to get rid of the previous message.
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@496 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
7ea0f83baf
commit
7d9be1f65a
|
@ -340,10 +340,13 @@ L3INT Q931Rx23(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT Size)
|
||||||
|
|
||||||
L3INT IOff = 0;
|
L3INT IOff = 0;
|
||||||
|
|
||||||
/* Protocol Discriminator */
|
/* Reset our decode buffer */
|
||||||
|
memset(pTrunk->L3Buf, 0, sizeof(pTrunk->L3Buf));
|
||||||
|
|
||||||
|
/* Protocol Discriminator */
|
||||||
m->ProtDisc = Mes[IOff++];
|
m->ProtDisc = Mes[IOff++];
|
||||||
|
|
||||||
/* CRV */
|
/* CRV */add
|
||||||
m->CRVFlag = Mes[IOff + 1] & 0x80;
|
m->CRVFlag = Mes[IOff + 1] & 0x80;
|
||||||
m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);
|
m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue