bool isRequest = anna::diameter::codec::functions::isRequest(db);
bool registerSessionId = ((isRequest && toEntity) || (!isRequest && !toEntity) /* (*) */);
// (*) we register answers Session-Id assuming that we will know the Session-Id values created by the client (OCS)
- // This is another solution for TODO(***) regarding diameter server testing. No tsure about the final implementation.
+ // This is another solution for TODO(***) regarding diameter server testing. No sure about the final implementation.
// Check hop-by-hop:
if (isRequest) {
}
else {
a_sessionIdTestCaseMap[sessionId] = const_cast<TestCase*>(testCase);
+ LOGDEBUG(anna::Logger::debug(anna::functions::asString("TestManager::registerSessionId for test case (id = %llu): %s)", testCase->getId(), sessionId.c_str()), ANNA_FILE_LOCATION));
}
}
if (a_messageCodec) return true;
a_messageCodec = new anna::diameter::codec::Message;
if (::decodeMessage(a_message, *a_messageCodec)) return true;
- if (trust) return true;
+ if (trust) {
+ LOGDEBUG(anna::Logger::debug("Error DECODING, but trusting it ...", ANNA_FILE_LOCATION));
+ return true;
+ }
delete a_messageCodec;
a_messageCodec = NULL;