use of org.jdiameter.common.impl.app.s13.JMEIdentityCheckAnswerImpl in project jain-slee.diameter by RestComm.
the class S13ServerSessionImpl method sendMEIdentityCheckAnswer.
public void sendMEIdentityCheckAnswer(MEIdentityCheckAnswer eca) throws IOException {
DiameterMessageImpl msg = (DiameterMessageImpl) eca;
JMEIdentityCheckAnswerImpl answer = new JMEIdentityCheckAnswerImpl((Answer) msg.getGenericData());
try {
appSession.sendMEIdentityCheckAnswer(answer);
} catch (org.jdiameter.api.validation.AvpNotAllowedException anae) {
throw new AvpNotAllowedException(anae.getMessage(), anae.getAvpCode(), anae.getVendorId());
} catch (Exception e) {
if (logger.isDebugEnabled()) {
logger.debug("Failed to send message.", e);
}
throw new IOException(e.getMessage());
}
}
Aggregations