]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
re-set our decode buffer to get rid of the previous message.
authorMichael Jerris <mike@jerris.com>
Tue, 1 Jul 2008 22:34:59 +0000 (22:34 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 1 Jul 2008 22:34:59 +0000 (22:34 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@496 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/isdn/Q931.c

index 272d7687668d2918c8b828215f543551ca208bd7..0415f395120581190577210a6c10939558f49101 100644 (file)
@@ -340,10 +340,13 @@ L3INT Q931Rx23(Q931_TrunkInfo_t *pTrunk, L3UCHAR * buf, L3INT Size)
 
     L3INT IOff = 0;
 
-    /* Protocol Discriminator */
+       /* Reset our decode buffer */
+       memset(pTrunk->L3Buf, 0, sizeof(pTrunk->L3Buf));
+
+       /* Protocol Discriminator */
     m->ProtDisc = Mes[IOff++];
 
-    /* CRV */
+    /* CRV */add 
     m->CRVFlag = Mes[IOff + 1] & 0x80;
     m->CRV = Q931Uie_CRV(pTrunk, Mes, m->buf, &IOff, &ISize);