how to setup voicemail detection/hangup
# support
i
whenever the call goes to voicemail the assistant still thinks it’s speaking to a person and bugs out, is there a way to fix this? i would like it to hangup at the voicemail. i’m new to this so bare with me. thanks
v
@imbylo Absolutely, I'd be happy to help you with that! To ensure that the assistant can detect when a call has gone to voicemail and hang up accordingly, you'll need to implement a voicemail detection mechanism within your voice application. While VAPI doesn't have the capability to hang up the phone at the end of the call as of the current guide, you can usually handle this by analyzing the call progress events and setting up logic to detect when a voicemail greeting is being played. This typically involves detecting prolonged silence or a beep tone that indicates the start of a voicemail recording. Once you've detected that the call has reached a voicemail system, you can programmatically end the call from your application's side. The specific implementation details will depend on the capabilities of your voice platform and the programming language you're using. If you need detailed guidance on how to implement this feature, I recommend checking the documentation of your voice platform or reaching out to their support team for assistance. If VAPI provides updates on this feature in the future, it will likely be included in their guides or API documentation. Please let me know if you need further assistance or have any other questions!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
i
not really sure how to do the programming side of it i’m just using the vapi dashboard to do it at the moment so i have no idea and no prior programming knowledge
s
Hey @imbylo can you enable twilio voice mail for your assistant and they try? FYI: if you don't se the voicemail messages then voicemail calls won't end with reason voice-mail-detected. Enable this for your assistant and it will work.
Copy code
json
  "voicemailDetection": {
    "provider": "twilio",
    "enabled": true,
    "voicemailDetectionTypes": [
      "machine_end_beep",
      "machine_end_other",
      "machine_end_silence",
      "machine_start",
      "unknown"
    ],
    "machineDetectionTimeout": 5,
    "machineDetectionSpeechThreshold": 2400,
    "machineDetectionSpeechEndThreshold": 1000,
    "machineDetectionSilenceTimeout": 3000
  }
Do let me know how it goes.
i
i don’t use twillio i use vonage sorry
s
Vonage doesn't has capability to detect voicemails, you have to be dependant on LLM to detect if user input is voicemail. Try using Vapi voicemail tool or custom tool if it's works perfectly for you.
7 Views