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

WebRTC session is not being closed #329

Open
avoylenko opened this issue Jan 9, 2024 · 5 comments
Open

WebRTC session is not being closed #329

avoylenko opened this issue Jan 9, 2024 · 5 comments

Comments

@avoylenko
Copy link
Contributor

When the browser page with running webrtc client closed by the user, the ongoing session is not being released and the session stays running without audio. Is it by design or we can do something with it?

@spointer
Copy link

I think this issue is not related to drachtio-server.
Does your client send SIP BYE when call ended?

@avoylenko
Copy link
Contributor Author

The BYE message is missing since the WS connection is dropped on web page close.

@spointer
Copy link

I think you can do that like this.

        $(window).on('beforeunload', () => {
            // send SIP BYE
        });

BTW, I think this is not related to drachtio-server.

@avoylenko
Copy link
Contributor Author

@spointer thank you for the suggestion, but this won't solve the case when the network connection is dropped

@davehorton
Copy link
Collaborator

Currently, there is no notification provided by sofia sip to the application (drachtio server in this case) when the wss connection is dropped. At some point I may look into adding something for this in sofia sip

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

3 participants