ICE connection state goes from completed to failed in TURN server

Open
#229 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, kotlin

Research direction

Reproduce the ICE transition with stream-webrtc-android 1.2.2, the reported TURN server, and the packet-capture conditions. Start by tracing the 40-second consent-request behavior and compare it with the successful web application; the issue is done when the cause of the transition to FAILED is identified and the connection remains valid after a successful binding response.

Written by the indexing model from the issue text.

Description

I am using stream-webrtc-android version 1.2.2 in my android project and trying to connect an audio call using my turn server. The connection is initially successful, I get COMPLETED state and audio is being transferred but after 40 seconds, the connection state changes to DISCONNECTED->FAILED. A packet capture of my TURN server showed that after 40 seconds the client sends a binding request and server responds with a binding success response, which I assume is the consent request involved in the Ice connection process. In this case the connection should stay alive because server replied with binding success response but it goes to FAILED state.
I have a separate web application as well, which uses the official webRTC library, and I can see that after every 40 second it goes to COMPLETED state after the successful consent requests so this doesn't seem to be a server specific issue.
I request you to kindly help me with this problem.

Dominant language
Kotlin
Stars
890
Forks
109
Avg merge
11m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GetStream/webrtc-android

All issues in GetStream/webrtc-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.