allow diag bytes on Cause IE

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@382 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2008-01-30 16:24:54 +00:00
parent 84d9aca9b9
commit 59d4031735
1 changed files with 6 additions and 1 deletions

View File

@ -1029,7 +1029,12 @@ L3INT Q931Uie_Cause(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHAR * I
pie->Value = IBuf[Octet+Off] & 0x7f;
Octet++;
Q931IESizeTest(Q931E_CAUSE);
/* Consume optional Diagnostic bytes */
while (Q931MoreIE()) {
Off++;
};
Q931IESizeTest(Q931E_CAUSE);
Q931SetIE(*pIE, *OOff);