use of net.java.slee.resource.diameter.rf.events.RfAccountingAnswer in project jain-slee.diameter by RestComm.
the class RfServerSessionActivityImpl method sendRfAccountingAnswer.
public void sendRfAccountingAnswer(RfAccountingAnswer answer) throws IOException {
try {
RfAccountingAnswerImpl aca = (RfAccountingAnswerImpl) answer;
this.serverSession.sendAccountAnswer(new org.jdiameter.common.impl.app.rf.RfAccountingAnswerImpl((Answer) aca.getGenericData()));
// FIXME: check this?
if (isTerminateAfterProcessing()) {
endActivity();
// this.serverSession.release();
//
// if(!serverSession.isValid()) {
// String sessionId =
// this.serverSession.getSessions().get(0).getSessionId();
// this.baseListener.sessionDestroyed(sessionId,
// this.serverSession);
// }
}
// clean
clean(aca);
} catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
} catch (Exception e) {
if (logger.isDebugEnabled()) {
logger.debug("Failed to send message, due to: ", e);
}
throw new IOException("Failed to send message, due to: " + e.getMessage());
}
}
Aggregations