X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2FMessage.cpp;h=6f906f85fe6750a00cd38070efba59475c093a51;hb=0c646b4aa99a84ef6976a51b6d4554aea11ded35;hp=3a989cf4c8d5d66798c03ee8c6e53208003f63d5;hpb=8808902f3d5e768a02f3936c4a1a8732da682895;p=anna.git diff --git a/source/diameter/codec/Message.cpp b/source/diameter/codec/Message.cpp index 3a989cf..6f906f8 100644 --- a/source/diameter/codec/Message.cpp +++ b/source/diameter/codec/Message.cpp @@ -460,7 +460,7 @@ int Message::getResultCode() const throw() { //------------------------------------------------------------------------------ //------------------------------------------------------ Message::setFailedAvp() //------------------------------------------------------------------------------ -void Message::setFailedAvp(const parent_t &parent, AvpId wrong) throw(anna::RuntimeException) { +void Message::setFailedAvp(const parent_t &parent, AvpId wrong, const char *wrongName) throw(anna::RuntimeException) { if(isRequest()) return; @@ -495,7 +495,7 @@ void Message::setFailedAvp(const parent_t &parent, AvpId wrong) throw(anna::Runt LOGDEBUG( std::string msg = "Adding to Failed-AVP, the wrong avp "; - msg += anna::diameter::functions::avpIdAsPairString(wrong); + msg += wrongName ? wrongName : (anna::diameter::functions::avpIdAsPairString(wrong)); msg += " found inside "; msg += parent.asString();