Skip to content

Tracking Exact Moment When User Answers Outbound Call #136

Closed

Description

@OxSever

We are facing an issue with tracking the exact moment when a user answers a call (picks up the phone) during outbound calling. We wanted to use the participant joined webhook for this, but we noticed that it triggers when the ringing starts, not when the user actually picks up.

Is there a way to more accurately track the moment when the user picks up the phone during an outbound call? Perhaps there is another webhook or method that we can use for this purpose?

Thank you for your assistance!

Activity

  1. davidzhao commented on Aug 9, 2024

    @davidzhao
    Member

    this makes sense.. we need to align the lifecycle better to match user expectations. we'll work on improving this behavior

  2. OxSever commented on Oct 4, 2024

    @OxSever
    Author

    Hi @davidzhao , could you kindly clarify which status I should listen for to identify that the user has picked up the phone during an outbound call? If I'm not mistaken, I should listen to the tracks?

  3. dennwc commented on Oct 4, 2024

    @dennwc
    Contributor

    Hey @vlxdisluv! First, participant created by SIP will update it's sip.callStatus to active, which can be observed with participant attribute hook in the SDK. Second, outbound SIP participant will not subscribe to anyone's tracks until the call is dialed. So this could be another indicator.

  4. OxSever commented on Oct 10, 2024

    @OxSever
    Author

    Hey @vlxdisluv! First, participant created by SIP will update it's sip.callStatus to active, which can be observed with participant attribute hook in the SDK. Second, outbound SIP participant will not subscribe to anyone's tracks until the call is dialed. So this could be another indicator.

    Is there a way to reliably detect whether a SIP INVITE request was unsuccessful, particularly when the SIP trunk service is unavailable and a 500 error is returned? Can this be tracked through specific events or mechanisms? Additionally, is it possible to determine whether the call was answered by the intended recipient or an answering machine the call was forwarded to?

  5. dennwc commented on Oct 10, 2024

    @dennwc
    Contributor

    Yes, SIP service will set DisconnectReason for a LK participant to a specific value in this case, see #191. The actual change is livekit/protocol#845.

    Regarding answering machine detection - we do not support it directly yet. Should be done externally with an Agent for now. The issue is #117. We now plan to emit specific events via the data channel when SIP service detects telephony tones. This may help the Agent detect it more reliably.

  6. onur-yildirim-infinitusai commented on Feb 8, 2025

    @onur-yildirim-infinitusai

    @dennwc Tracking on this to see whether anything in progress to emit the events for SIP Service answering machine detection

  7. amirjabarivasal-ops commented on Apr 1, 2026

    @amirjabarivasal-ops

    Guessing this still hasn't been solved - major issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions