use of org.jdiameter.common.impl.app.ro.RoCreditControlAnswerImpl in project jain-slee.diameter by RestComm.
the class RoServerSessionActivityImpl method sendRoCreditControlAnswer.
/*
* (non-Javadoc)
*
* @see net.java.slee.resource.diameter.cca.CreditControlServerSession#
* sendCreditControlAnswer
* (net.java.slee.resource.diameter.cca.events.CreditControlAnswer)
*/
public void sendRoCreditControlAnswer(RoCreditControlAnswer cca) throws IOException {
fetchCurrentState(cca);
DiameterMessageImpl msg = (DiameterMessageImpl) cca;
try {
session.sendCreditControlAnswer(new RoCreditControlAnswerImpl((Answer) msg.getGenericData()));
} 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);
}
}
Aggregations