Skip to content

Report full duration for outbound SIP calls - #910

Open
dennwc wants to merge 2 commits into
mainfrom
fix/outbound-call-full-duration
Open

dennwc wants to merge 2 commits into
mainfrom
fix/outbound-call-full-duration

Conversation

@dennwc

@dennwc dennwc commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Outbound calls dropped calls_active as soon as Dial returned, never
observed dur_call_sec/dur_session_sec, and published SCS_ERROR before
setting EndedAtNs. End the call in close(), with the end time taken
before BYE, and don't mark a call active once it has ended, so every
terminal update and metric covers the whole call.

Outbound calls dropped calls_active as soon as Dial returned, never
observed dur_call_sec/dur_session_sec, and published SCS_ERROR before
setting EndedAtNs. End the call in close(), with the end time taken
before BYE, and don't mark a call active once it has ended, so every
terminal update and metric covers the whole call.
devin-ai-integration[bot]

This comment was marked as resolved.

close() set EndedAtNs while leaving CallStatus ACTIVE until the BYE
completed, so an ended call could read as active. Set the terminal status
in the same update. Start the outbound session timer when the INVITE is
sent, matching dur_session_sec's INVITE-to-close definition, so room
setup and pre-INVITE failures are not counted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants