From b9634b84a0f0e4ff202f6162c45e4b0b5c910076 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 21 Jun 2007 14:22:05 +0000 Subject: [PATCH] tweak dms service message handling. git-svn-id: http://svn.openzap.org/svn/openzap/trunk@285 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/isdn/nationalmes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/openzap/src/isdn/nationalmes.c b/libs/openzap/src/isdn/nationalmes.c index 2f8b04394e..75e313d90d 100644 --- a/libs/openzap/src/isdn/nationalmes.c +++ b/libs/openzap/src/isdn/nationalmes.c @@ -273,7 +273,7 @@ L3INT DMSUmes_0x0f(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generic *mes L3INT rc=Q931E_NO_ERROR; if (mes->ProtDisc == 8) { - Q931Umes_ConnectAck(pTrunk, IBuf, mes, IOff, Size); + return Q931Umes_ConnectAck(pTrunk, IBuf, mes, IOff, Size); } while(IOff < Size) @@ -281,12 +281,12 @@ L3INT DMSUmes_0x0f(Q931_TrunkInfo_t *pTrunk, L3UCHAR *IBuf, Q931mes_Generic *mes switch(IBuf[IOff]) { case Q931ie_CHANNEL_IDENTIFICATION: - rc = Q931Uie[pTrunk->Dialect][Q931ie_RESTART_INDICATOR](pTrunk, mes, &IBuf[IOff], &mes->buf[OOff], &IOff, &OOff); + rc = Q931Uie[pTrunk->Dialect][IBuf[IOff]](pTrunk, mes, &IBuf[IOff], &mes->buf[OOff], &IOff, &OOff); if(rc != Q931E_NO_ERROR) return rc; break; case Q931ie_CHANGE_STATUS: - rc = Q931Uie[pTrunk->Dialect][IBuf[IOff]](pTrunk, mes, &IBuf[IOff], &mes->buf[OOff], &IOff, &OOff); + rc = Q931Uie[pTrunk->Dialect][Q931ie_RESTART_INDICATOR](pTrunk, mes, &IBuf[IOff], &mes->buf[OOff], &IOff, &OOff); if(rc != Q931E_NO_ERROR) return rc; break;