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

SIP plugin: Fix sending BYE #2709

Merged
merged 1 commit into from
Jun 23, 2021
Merged

SIP plugin: Fix sending BYE #2709

merged 1 commit into from
Jun 23, 2021

Conversation

ihusejnovic
Copy link
Contributor

Hello,
I noticed that we sometimes receive the following error from sofia sip when the call should be terminated.
[nua_i_error]: 500 Responding to a Non-Existing Request

After further investigation, I found out that this is happening when ICE or DTLS negotiation fails. The problem was in this condition if BYE or 480 should be sent. It should use method janus_sip_call_is_established because session->established is set to TRUE only when ICE and DTLS negotiation finish.

I already tested this and it's working fine but the feedback is welcome.

@lminiero
Copy link
Member

This feels like deja-vù: haven't we discussed this already in the past? IIRC there were a couple of "conflicting" PRs that tried to address the same thing in different ways.

@lminiero
Copy link
Member

It may be #2554.

@ihusejnovic
Copy link
Contributor Author

#2554 addressed the issue when the session is destroyed in "sip inviting" status. This one is fixing the issue when the SIP call is established by SIP protocol (INVITE sent and 200 OK received or INVITE received and 200 OK sent), but the webrtc side is not. In this case, SIP BYE should be sent too.

@lminiero
Copy link
Member

Makes sense 👍
Merging then, thanks!

@lminiero lminiero merged commit 23535f0 into meetecho:master Jun 23, 2021
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

Successfully merging this pull request may close these issues.

2 participants