From d995bca407884856973f1737d07757755c48691e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 9 Sep 2008 18:10:04 +0000 Subject: [PATCH] fix leading space on calling number git-svn-id: http://svn.openzap.org/svn/openzap/trunk@548 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/isdn/Q931ie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/openzap/src/isdn/Q931ie.c b/libs/openzap/src/isdn/Q931ie.c index 095e8cd577..b936c20fe9 100644 --- a/libs/openzap/src/isdn/Q931ie.c +++ b/libs/openzap/src/isdn/Q931ie.c @@ -767,7 +767,7 @@ L3INT Q931Uie_CallingNum(Q931_TrunkInfo_t *pTrunk, Q931mes_Generic *pMsg, L3UCHA pie->NumPlanID = IBuf[Octet + Off] & 0x0f; /* Octet 3a */ - if ((IBuf[Octet + Off] & 0x80) != 0) { + if ((IBuf[Octet + Off] & 0x80) == 0) { Off++; pie->PresInd = (IBuf[Octet + Off] >> 5) & 0x03; pie->ScreenInd = IBuf[Octet + Off] & 0x03;