Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processDialogTimeout not called #202

Open
kingle-zhuang opened this issue Sep 27, 2023 · 0 comments
Open

processDialogTimeout not called #202

kingle-zhuang opened this issue Sep 27, 2023 · 0 comments

Comments

@kingle-zhuang
Copy link

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();
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant