try {
retryAfter.setRetryAfter((int) (10 * Math.random()));
} catch (InvalidArgumentException ex) {
ex.printStackTrace();
}
sipResponse.addHeader(retryAfter);
try {
transaction.sendMessage(sipResponse);
} catch (IOException ex) {
transaction.raiseIOExceptionEvent();
}