projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New Batch Converter. Fix flags problem regarding may/shouldnot uncertainty
[anna.git]
/
source
/
diameter.comm
/
ClientSession.cpp
diff --git
a/source/diameter.comm/ClientSession.cpp
b/source/diameter.comm/ClientSession.cpp
index
71be8a3
..
d521b60
100644
(file)
--- a/
source/diameter.comm/ClientSession.cpp
+++ b/
source/diameter.comm/ClientSession.cpp
@@
-1,8
+1,8
@@
-// ANNA - Anna is Not
'N'
Anymore
+// ANNA - Anna is Not
Nothingness
Anymore
//
// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
//
//
// (c) Copyright 2005-2014 Eduardo Ramos Testillano & Francisco Ruiz Rayo
//
-// http
s://bitbucket.org/testillano/anna
+// http
://redmine.teslayout.com/projects/anna-suite
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
@@
-14,7
+14,7
@@
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
-// *
Neither the name of Google Inc.
nor the names of its
+// *
Neither the name of the copyright holder
nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
@@
-582,7
+582,10
@@
throw(anna::RuntimeException) {
}
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) {
}
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) {
- LOGWARNING(anna::Logger::warning("Received CEA with non-success Result-Code. Unbinding connection.", ANNA_FILE_LOCATION));
+ LOGWARNING(
+ std::string msg = anna::functions::asString("Received CEA with non-success Result-Code (%d). Unbinding connection.", resultCode);
+ anna::Logger::warning(msg, ANNA_FILE_LOCATION);
+ );
doUnbind = true;
} else {
setState(State::Bound);
doUnbind = true;
} else {
setState(State::Bound);
@@
-598,7
+601,10
@@
throw(anna::RuntimeException) {
setWatchdogState(WatchdogState::WaitingTimerExpiration);
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS)
setWatchdogState(WatchdogState::WaitingTimerExpiration);
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS)
- LOGWARNING(anna::Logger::warning("Received DWA with non-success Result-Code... but ASSUME keep-alive is reached", ANNA_FILE_LOCATION));
+ LOGWARNING(
+ std::string msg = anna::functions::asString("Received DWA with non-success Result-Code (%d)... but ASSUME keep-alive is reached", resultCode);
+ anna::Logger::warning(msg, ANNA_FILE_LOCATION);
+ );
if(a_state == State::Failover) {
setState(State::Bound);
if(a_state == State::Failover) {
setState(State::Bound);
@@
-619,7
+625,10
@@
throw(anna::RuntimeException) {
if(a_state == State::WaitingDPA) {
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) {
if(a_state == State::WaitingDPA) {
if(resultCode != helpers::base::AVPVALUES__Result_Code::DIAMETER_SUCCESS) {
- LOGWARNING(anna::Logger::warning("Received DPA with non-success Result-Code. Ignoring and recovering Bound state", ANNA_FILE_LOCATION));
+ LOGWARNING(
+ std::string msg = anna::functions::asString("Received DPA with non-success Result-Code (%d). Ignoring and recovering Bound state", resultCode);
+ anna::Logger::warning(msg, ANNA_FILE_LOCATION);
+ );
setState(State::Bound);
} else {
LOGWARNING(anna::Logger::warning("Received DPA With Result-Code = DIAMETER_SUCCESS. Disconnect now.", ANNA_FILE_LOCATION));
setState(State::Bound);
} else {
LOGWARNING(anna::Logger::warning("Received DPA With Result-Code = DIAMETER_SUCCESS. Disconnect now.", ANNA_FILE_LOCATION));