xmlmsg += "\n";
}
else {
- xmlmsg = "<unable to decode, check traces>";
+ xmlmsg = "<unable to decode, check traces>";
}
if (msg != "") result->createAttribute("Message", msg);
try {
if (a_waitForRequestStepNumber != -1) {
+ bool thisIsAnswer = anna::diameter::codec::functions::isAnswer(getMsgDataBlock());
+ LOGDEBUG(
+ std::string trace = anna::functions::asString("'Wait For Request' step number for this %s: %d", (thisIsAnswer ? "answer":"request"), a_waitForRequestStepNumber);
+ anna::Logger::debug(trace, ANNA_FILE_LOCATION);
+ );
// Referenced request in the 'wait for request step':
tsw = static_cast<const TestStepWait*>(a_testCase->getStep(a_waitForRequestStepNumber));
const anna::DataBlock &referenceRequest = tsw->getMsgDataBlock();
std::string sessionIdReferenceRequest = anna::diameter::helpers::base::functions::getSessionId(referenceRequest);
- bool thisIsAnswer = anna::diameter::codec::functions::isRequest(getMsgDataBlock());
if (thisIsAnswer) { // is an answer: try to copy sequence information; alert about Session-Id discrepance
anna::diameter::HopByHop hbh = anna::diameter::codec::functions::getHopByHop(referenceRequest);
xmlmsg += "\n";
}
else {
- xmlmsg = "<unable to decode, check traces>";
+ xmlmsg = "<unable to decode, check traces>";
}
}