Skip to content

How to Detect If an Outbound Call Went to Voicemail #117

Closed as not planned
Closed as not planned

Description

@akshatvg

Description:
I am currently using LiveKit for handling SIP calls and have integrated Twilio SIP for outbound call functionalities. I would like to know if there is a way to detect if an outbound call went to voicemail.

Here are the details of the packages we are using:

  • livekit==0.9.2
  • livekit-agents==0.4.0
  • livekit-api==0.4.3
  • livekit-protocol==0.3.2

Problem Statement:
When making outbound calls using Twilio SIP through LiveKit, we need to programmatically determine if the call was answered by a human or if it went to voicemail. This is crucial for our use case where calls need to be handled differently based on whether they reach a person or a voicemail.

Questions:

  1. Does LiveKit provide any built-in support or mechanisms to detect if an outbound call went to voicemail?
  2. If not, are there any recommended approaches or best practices using Twilio SIP in conjunction with LiveKit to achieve this?

Additional Context:
Any insights or examples on how to implement this feature would be highly appreciated. We are open to exploring potential workarounds or integrations if direct support is not available.

Activity

  1. self-assigned this
    on Jul 5, 2024
  2. added
    question
    on Jul 5, 2024
  3. dennwc commented on Jul 5, 2024

    @dennwc
    Contributor

    I did a brief research, and it looks like there's no explicit SIP signal that we can use to detect voicemail (or any other automated response). I think you'll have to use Twilio's Answering Machine Detection. From the LiveKit side, we will soon release SIP attributes on Participant, which will include Twilio Call SID. You could then lookup this call on Twilio platform and check the machine detection result.

  4. aniket-esmagico commented on Mar 11, 2026

    @aniket-esmagico

    Any update on this issue, have we added this functionality yet?

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

Metadata

Metadata

Assignees

Labels

question

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions