jain-sip icon indicating copy to clipboard operation
jain-sip copied to clipboard

processDialogTimeout not called

Open kingle-zhuang opened this issue 1 year ago • 0 comments

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();
    }
}

kingle-zhuang avatar Sep 27 '23 08:09 kingle-zhuang