From 59d403173548065746ae77be9568cfe62bb60ffb Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 30 Jan 2008 16:24:54 +0000 Subject: [PATCH] allow diag bytes on Cause IE git-svn-id: http://svn.openzap.org/svn/openzap/trunk@382 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/isdn/Q931ie.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/openzap/src/isdn/Q931ie.c b/libs/openzap/src/isdn/Q931ie.c index 23e4f010ed..d3cea9936f 100644 --- a/libs/openzap/src/isdn/Q931ie.c +++ b/libs/openzap/src/isdn/Q931ie.c @@ -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);