}
public void processDialogTimeout(DialogTimeoutEvent timeoutEvent) {
System.out.println("processDialogTerminated " + timeoutEvent.getDialog());
DialogTimeoutEvent dialogAckTimeoutEvent = (DialogTimeoutEvent)timeoutEvent;
Dialog timeoutDialog = dialogAckTimeoutEvent.getDialog();
if(timeoutDialog == null){
TxTimeoutTest.fail(
"Shootist: Exception on timeout, dialog shouldn't be null");
stateIsOk = false;
return;
}
if(dialogAckTimeoutEvent.getReason() == Reason.AckNotReceived) {
stateIsOk = true;
}
if(dialogAckTimeoutEvent.getReason() == Reason.EarlyStateTimeout && !sendOK) {
stateIsOk = true;
}
TimerTask timerTask = new CheckAppData(timeoutDialog);
new Timer().schedule(timerTask, 9000);
}