Repository navigation
fix(calls): close the caller's own stale active call on redial - #15
Merged
Merged
Conversation
When the app is force-quit mid-call it cannot report the end, and LiveKit takes about 20 seconds to drop the participant (measured locally on 1.13.10 with the production room settings; departure_timeout does not change it). Redialing in that window hit 409 and the other person stayed in a silent call. The app cannot start a call while it is in one, so an ACTIVE call the caller is still part of is stale: finish it (which also deletes the room and frees the other side) before reserving the new call. Ringing calls are left alone because the callee is not in the room yet and would not learn that the old call ended.
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
무엇
POST /v1/calls: 전화를 거는 사람이 아직 들어 있는 진행 중(ACTIVE) 통화가 있으면, 새 통화를 예약하기 전에 그 통화를finish한다(방 삭제 포함 → 남아 있던 상대도 그 통화에서 풀림).왜
/end를 보낼 수 없고, LiveKit 이 참가자를 빼기까지 약 21초가 걸린다(로컬 livekit-server 1.13.10 + 운영 방 설정으로 3회 측정,departure_timeout을 5초로 바꿔도 같음). 그 사이 다시 걸면 409.확인
ended_at·room_closed_at, 울리는 중 다시 걸기 = 409). 새 테스트는 고친 줄을 빼면 실패함을 확인.