Revision: 14997
Author: brainslog
Date: Wed Nov 3 18:05:05 2010
Log: Diameter fixes
http://code.google.com/p/mobicents/source/detail?r=14997
Modified:
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ClientRfSessionListener.java
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ServerRfSessionListener.java
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/rf/ClientRfSessionImpl.java
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/common/impl/app/rf/RfSessionFactoryImpl.java
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/server/impl/app/rf/ServerRfSessionImpl.java
=======================================
---
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ClientRfSessionListener.java
Tue Nov 2 17:07:33 2010
+++
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ClientRfSessionListener.java
Wed Nov 3 18:05:05 2010
@@ -50,7 +50,7 @@
* @throws RouteException The NoRouteException signals that no route
exist for a given realm.
* @throws OverloadException The OverloadException signals that
destination host is overloaded.
*/
- void doRfAnswerEvent(ClientRfSession appSession, RfAccountingRequest
request, RfAccountingAnswer answer) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException;
+ void doRfAccountingAnswerEvent(ClientRfSession appSession,
RfAccountingRequest request, RfAccountingAnswer answer) throws
InternalException, IllegalDiameterStateException, RouteException,
OverloadException;
/**
* Notifies this AccSessionEventListener that the ClientAccSesssion has
received not account message.
=======================================
---
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ServerRfSessionListener.java
Tue Nov 2 17:07:33 2010
+++
/trunk/servers/diameter/core/jdiameter/api/src/main/java/org/jdiameter/api/rf/ServerRfSessionListener.java
Wed Nov 3 18:05:05 2010
@@ -48,7 +48,7 @@
* @throws RouteException The NoRouteException signals that no route
exist for a given realm.
* @throws OverloadException The OverloadException signals that
destination host is overloaded.
*/
- void doRfRequestEvent(ServerRfSession appSession, RfAccountingRequest
request) throws InternalException, IllegalDiameterStateException,
RouteException, OverloadException;
+ void doRfAccountingRequestEvent(ServerRfSession appSession,
RfAccountingRequest request) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException;
/**
* Notifies this AuthSessionEventListener that the ServerAuthSesssion
has recived not authentication message.
=======================================
---
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/rf/ClientRfSessionImpl.java
Tue Nov 2 17:07:33 2010
+++
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/client/impl/app/rf/ClientRfSessionImpl.java
Wed Nov 3 18:05:05 2010
@@ -646,7 +646,7 @@
if (request.getCommandCode() == RfAccountingRequest.code) {
//FIXME: any reason for this to be after handle?
try {
- listener.doRfAnswerEvent(this, createAccountRequest(request),
createAccountAnswer(answer));
+ listener.doRfAccountingAnswerEvent(this,
createAccountRequest(request), createAccountAnswer(answer));
}
catch (Exception e) {
logger.debug("Unable to deliver message to listener.", e);
@@ -685,7 +685,7 @@
if (request.getCommandCode() == RfAccountingRequest.code) {
try {
// FIXME Is this wrong?
- listener.doRfAnswerEvent(this, createAccountRequest(request),
null);
+ listener.doRfAccountingAnswerEvent(this,
createAccountRequest(request), null);
}
catch (Exception e) {
logger.debug("Can not process received request", e);
=======================================
---
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/common/impl/app/rf/RfSessionFactoryImpl.java
Tue Nov 2 17:07:33 2010
+++
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/common/impl/app/rf/RfSessionFactoryImpl.java
Wed Nov 3 18:05:05 2010
@@ -289,11 +289,11 @@
// Event listeners //
// ///////////////////
- public void doRfRequestEvent(ServerRfSession appSession,
RfAccountingRequest acr) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
+ public void doRfAccountingRequestEvent(ServerRfSession appSession,
RfAccountingRequest acr) throws InternalException,
IllegalDiameterStateException, RouteException, OverloadException {
logger.info("Diameter Base RfSessionFactory :: doAccRequestEvent ::
appSession[" + appSession + "], Request[" + acr + "]");
}
- public void doRfAnswerEvent(ClientRfSession appSession,
RfAccountingRequest acr, RfAccountingAnswer aca) throws InternalException,
IllegalDiameterStateException, RouteException,
+ public void doRfAccountingAnswerEvent(ClientRfSession appSession,
RfAccountingRequest acr, RfAccountingAnswer aca) throws InternalException,
IllegalDiameterStateException, RouteException,
OverloadException {
logger.info("doRfAnswerEvent :: appSession[" + appSession + "],
Request[" + acr + "], Answer[" + aca + "]");
}
=======================================
---
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/server/impl/app/rf/ServerRfSessionImpl.java
Tue Nov 2 17:07:33 2010
+++
/trunk/servers/diameter/core/jdiameter/impl/src/main/java/org/jdiameter/server/impl/app/rf/ServerRfSessionImpl.java
Wed Nov 3 18:05:05 2010
@@ -139,7 +139,7 @@
// New State: IDLE
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
}
catch (Exception e) {
logger.debug("Can not handle event", e);
@@ -154,7 +154,7 @@
// New State: IDLE
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
}
catch (Exception e) {
logger.debug("Can not handle event", e);
@@ -170,7 +170,7 @@
// New State: IDLE
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
}
catch (Exception e) {
logger.debug("Can not handle event", e);
@@ -185,7 +185,7 @@
// New State: IDLE
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
}
catch (Exception e) {
logger.debug("Can not handle event", e);
@@ -216,7 +216,7 @@
if (((RfAccountingRequest)
event.getData()).getMessage().isReTransmitted()) {
// FIXME: Alex is this ok?
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this, (RfAccountingRequest)
event.getData());
// FIXME: should we do this before passing to lst?
cancelTsTimer();
timerId_ts = startTsTimer();
@@ -242,7 +242,7 @@
// New State: OPEN
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
cancelTsTimer();
timerId_ts = startTsTimer();
if (context != null) {
@@ -264,7 +264,7 @@
// New State: IDLE
if (listener != null) {
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
}
catch (Exception e) {
logger.debug("Can not handle event", e);
@@ -283,7 +283,7 @@
// Action: Send accounting interim answer, Restart Ts
// New State: OPEN
try {
- listener.doRfRequestEvent(this, (RfAccountingRequest)
event.getData());
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
cancelTsTimer();
timerId_ts = startTsTimer();
if (context != null) {
@@ -303,7 +303,7 @@
// Action: Send accounting stop answer, Stop Ts
// New State: IDLE
try {
- listener.doRfRequestEvent(this,
+ listener.doRfAccountingRequestEvent(this,
(RfAccountingRequest) event.getData());
cancelTsTimer();
if (context != null) {
@@ -461,7 +461,7 @@
}
try {
- listener.doRfRequestEvent(this, createAccountRequest(request));
+ listener.doRfAccountingRequestEvent(this,
createAccountRequest(request));
}
catch (Exception e) {
logger.debug("Can not handle event", e);