use of org.jdiameter.common.impl.app.rx.RxSessionTermAnswerImpl in project jain-slee.diameter by RestComm.
the class RxServerSessionActivityImpl method sendSessionTermAnswer.
/**
* {@inheritDoc}
*/
@Override
public void sendSessionTermAnswer(final SessionTerminationAnswer sta) throws IOException {
fetchCurrentState(sta);
final DiameterMessageImpl msg = (DiameterMessageImpl) sta;
try {
session.sendSessionTermAnswer(new RxSessionTermAnswerImpl((Answer) msg.getGenericData()));
} catch (org.jdiameter.api.validation.AvpNotAllowedException e) {
final AvpNotAllowedException anae = new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId());
throw anae;
} catch (Exception e) {
throw new IOException("Failed to send message.", e);
}
}
Aggregations