Skip to content

sip: add pinEnteredTime and answerTime attributes - #1928

Open
boks1971 wants to merge 1 commit into
mainfrom
raja/sip-join-time-attrs
Open

boks1971 wants to merge 1 commit into
mainfrom
raja/sip-join-time-attrs

Conversation

@boks1971

@boks1971 boks1971 commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

lk.sip.inviteTime records when an inbound call arrives. Two more SIP times are needed to measure how long a caller waits for an agent. On an inbound PIN call, part of the wait is the caller entering the PIN. On an outbound call, the callee is there only once they answer.

Change

  • lk.sip.pinEnteredTime: when the caller finished entering the PIN on an inbound PIN call, in Unix milliseconds.
  • lk.sip.answerTime: when the callee answered an outbound call, in Unix milliseconds.
  • Helpers to set and parse both. They share code with InviteTimeAttributes and ParseInviteTime.

livekit/sip#948 sets both attributes.

Verified

  • go test ./sip/ -run TestTimeAttributes passes for all three attributes, including missing and malformed values.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@boks1971 boks1971 self-assigned this Nov 2, 2026
@changeset-bot

changeset-bot Bot commented Nov 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f03ba6c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
github.com/livekit/protocol Patch
@livekit/protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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