From: Andreas Eversberg Date: Sun, 19 Aug 2012 10:33:54 +0000 (+0200) Subject: Fix: Encoding of 3PTY result facility IE X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=29d2da58fcb4ed82d2ea5ed7df5ced876a64fd50 Fix: Encoding of 3PTY result facility IE --- diff --git a/dss1.cpp b/dss1.cpp index fe4188a..00bdb06 100644 --- a/dss1.cpp +++ b/dss1.cpp @@ -2327,17 +2327,17 @@ void Pdss1::message_3pty(unsigned int epoint_id, int message_id, union parameter if (param->threepty.result) { fac.comp = CompReturnResult; fac.u.retResult.invokeId = param->threepty.invoke_id; + fac.u.retResult.operationValuePresent = 1; + if (param->threepty.begin) + fac.u.retResult.operationValue = Fac_Begin3PTY; + if (param->threepty.end) + fac.u.retResult.operationValue = Fac_End3PTY; } if (param->threepty.error) { fac.comp = CompReturnError; fac.u.retError.invokeId = param->threepty.invoke_id; fac.u.retError.errorValue = FacError_Gen_InvalidCallState; } - fac.u.retResult.operationValuePresent = 1; - if (param->threepty.begin) - fac.u.retResult.operationValue = Fac_Begin3PTY; - if (param->threepty.end) - fac.u.retResult.operationValue = Fac_End3PTY; encodeFac(fac_ie, &fac); /* sending facility */