jain-sip
jain-sip copied to clipboard
processDialogTimeout not called
In SIPDialog.java raiseErrorEvent(SIPDialogErrorEvent.DIALOG_ACK_NOT_RECEIVED_TIMEOUT);
nextListener.dialogErrorEvent(newErrorEvent);
The listener is SIPStackImpl not provider, SIPStackImpl inherit from SIPTransactionStack
then call below code, do nothing just exit & close timer, not call provider dialogErrorEvent or our own listener's processDialogTimeout
/*
* (non-Javadoc)
*
* @see
* gov.nist.javax.sip.stack.SIPDialogEventListener#dialogErrorEvent(gov.
* nist.javax.sip.stack.SIPDialogErrorEvent)
*/
public synchronized void dialogErrorEvent(
SIPDialogErrorEvent dialogErrorEvent) {
SIPDialog sipDialog = (SIPDialog) dialogErrorEvent.getSource();
SipListener sipListener = ((SipStackImpl)this).getSipListener();
// if the app is not implementing the SipListenerExt interface we delete
// the dialog to avoid leaks
if(sipDialog != null && !(sipListener instanceof SipListenerExt)) {
sipDialog.delete();
}
}