X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter.comm%2FEntity.cpp;h=17c1ebf9cff2066b076cb1de96c3e00d79e5deb6;hb=ceba20e0efab1bc4e564c18fe05a9a0047983653;hp=25a879c388fb4b650ef8cdf7a5e65fa37ce008e2;hpb=129af2a9a7c287843be5bd443c5b1ad9b08438a8;p=anna.git diff --git a/source/diameter.comm/Entity.cpp b/source/diameter.comm/Entity.cpp index 25a879c..17c1ebf 100644 --- a/source/diameter.comm/Entity.cpp +++ b/source/diameter.comm/Entity.cpp @@ -90,10 +90,11 @@ int Entity::readSocketId(const Message* message, int maxClientSessions) const th anna::diameter::helpers::base::functions::decodeSessionId(sid, diameterIdentity, high, low /* context-teid */, optional); return (low % maxClientSessions); } - //case anna::diameter::helpers::dcca::ChargingContext::SMS: - //case anna::diameter::helpers::dcca::ChargingContext::MMS: - //default: - // return -1; // IEC model and Unknown traffic types + case anna::diameter::helpers::dcca::ChargingContext::SMS: + case anna::diameter::helpers::dcca::ChargingContext::MMS: + case anna::diameter::helpers::dcca::ChargingContext::Unknown: + default: + return -1; // IEC model and Unknown traffic types } } catch(anna::RuntimeException &ex) { LOGDEBUG( @@ -323,7 +324,11 @@ void Entity::eventPeerShutdown(const ClientSession* clientSession) throw() { void Entity::eventRequestRetransmission(const ClientSession* clientSession, Message *request) throw() { LOGWARNING( std::string msg(clientSession->asString()); - msg += " | eventRequestRetransmission"; + + HopByHop hopByHop = codec::functions::getHopByHop(request->getBody()); // context identification + int retries = request->getRetries(); + + msg += anna::functions::asString(" | eventRequestRetransmission: request with application HopByHop: %u; remaining %d retries", hopByHop, retries); anna::Logger::warning(msg, ANNA_FILE_LOCATION); ); }