Skip to content

Conversation

@alastor09
Copy link

We observed that LiveKit SIP sometimes returned SIP status 486 Busy Here when a SIP caller canceled the call. This behavior was inconsistent with expected SIP cancellation handling.

Removed duplicate cancellation handling during ringing:

  • Cancellation logic was previously executed in multiple places — both during ringing and WaitMedia.

  • This caused incorrect status (like 486 Busy Here) to be returned when the call was simply canceled by the caller.

  • Updated closeWithCancelled() to consistently mark the call as CallCancelled.

  • Based on this status, the SIP response now correctly returns 487 Request Terminated, as per SIP spec for cancellations.

  • Updated attributes to reflect that as well

@alastor09 alastor09 requested a review from a team as a code owner July 9, 2025 04:25
@CLAassistant
Copy link

CLAassistant commented Jul 9, 2025

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jul 9, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.92%. Comparing base (0460b40) to head (5c747cf).
⚠️ Report is 134 commits behind head on main.

Files with missing lines Patch % Lines
pkg/sip/participant.go 0.00% 4 Missing ⚠️
pkg/sip/inbound.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #409      +/-   ##
==========================================
- Coverage   65.25%   62.92%   -2.33%     
==========================================
  Files          51       32      -19     
  Lines        6588     6776     +188     
==========================================
- Hits         4299     4264      -35     
- Misses       1915     2129     +214     
- Partials      374      383       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alastor09 alastor09 force-pushed the fix/callCancelled branch from 88ade09 to af6e566 Compare July 16, 2025 01:56
@alastor09 alastor09 force-pushed the fix/callCancelled branch 2 times, most recently from a2a75f3 to aaeee9f Compare July 23, 2025 23:03
@alastor09
Copy link
Author

@dennwc Fixes: #449

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