Request request = requestEvent.getRequest();
if (request.getMethod().equals(Request.INVITE)) {
if (requestEvent.getServerTransaction() == null) {
ServerTransactionExt serverTransaction = (ServerTransactionExt) this.provider
.getNewServerTransaction(request);
Response tryingResponse = messageFactory
.createResponse(100, request);
serverTransaction.sendResponse(tryingResponse);
Thread.sleep(1000);
Response ringingResponse = messageFactory
.createResponse(Response.RINGING, request);
serverTransaction.sendResponse(ringingResponse);
}
} else if (request.getMethod().equals(Request.CANCEL)) {
ServerTransaction stx = requestEvent.getServerTransaction();
Response okResponse = messageFactory.createResponse(200,