use of org.jdiameter.common.impl.app.auth.SessionTermAnswerImpl in project jain-slee.diameter by RestComm.
the class AuthServerSessionActivityImpl method sendSessionTerminationAnswer.
public void sendSessionTerminationAnswer(SessionTerminationAnswer request) throws IOException {
try {
// super.sendMessage(request);
DiameterMessageImpl msg = (DiameterMessageImpl) request;
this.serverSession.sendSessionTerminationAnswer(new SessionTermAnswerImpl((Answer) msg.getGenericData()));
} catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
} catch (Exception e) {
throw new IOException("Failed to send message, due to: " + e);
}
}
Aggregations