Skip to content

TELCU-30 - Record inbound call status codes - #853

Merged
ChelseaBradbury merged 14 commits into
mainfrom
chelsea/TELCU-30-record-inbound-call-status-codes
Sep 22, 2026
Merged

ChelseaBradbury merged 14 commits into
mainfrom
chelsea/TELCU-30-record-inbound-call-status-codes

Conversation

@ChelseaBradbury

Copy link
Copy Markdown
Contributor

Currently we don't record the terminal SIP status code for inbound calls in a way that allows them to be persisted to analytics. So when a caller hangs up before the call is answered, or if there's a media failure, etc. we still display a 200 sip status for the call on the dashboard.

If you look here, you can see that we always set the SIP code for inbound calls to 200, since we never populate SIPCallInfo.CallStatusCode:
https://github.com/livekit/cloud-sip/blob/cb72d104bc70c8c0dafe74f7a30135c42bde4da2/pkg/service/analytics.go#L415-L418
https://github.com/livekit/cloud-sip/blob/cb72d104bc70c8c0dafe74f7a30135c42bde4da2/pkg/service/analytics.go#L485-L489

@ChelseaBradbury
ChelseaBradbury requested a review from a team as a code owner September 17, 2026 01:41
devin-ai-integration[bot]

This comment was marked as resolved.

@ChelseaBradbury
ChelseaBradbury marked this pull request as draft September 17, 2026 16:10
@ChelseaBradbury
ChelseaBradbury force-pushed the chelsea/TELCU-30-record-inbound-call-status-codes branch from b478cfa to b91b9ff Compare September 18, 2026 19:44
@ChelseaBradbury
ChelseaBradbury marked this pull request as ready for review September 18, 2026 20:23
devin-ai-integration[bot]

This comment was marked as resolved.

Comment thread pkg/sip/inbound.go Resolved
Comment thread pkg/sip/inbound_test.go Resolved
devin-ai-integration[bot]

This comment was marked as resolved.

@ChelseaBradbury
ChelseaBradbury force-pushed the chelsea/TELCU-30-record-inbound-call-status-codes branch from cca20ff to 8d640f6 Compare September 21, 2026 19:21
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@genseric-ghiro genseric-ghiro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@ChelseaBradbury
ChelseaBradbury merged commit cd4ba73 into main Sep 22, 2026
7 checks passed
@ChelseaBradbury
ChelseaBradbury deleted the chelsea/TELCU-30-record-inbound-call-status-codes branch September 22, 2026 18:28
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