Voicemail now not working again...
# support
t
Hello again! I am having voicemail issues, once again.... Here is my request to leave a voicemail, which seems to be working fine... other than it's not hanging up:
Copy code
"voicemailDetection": {
            "provider": "twilio",
            "voicemailDetectionTypes": [
              "machine_end_beep",
              "machine_end_silence",
              "unknown",
              "machine_end_other"
            ],
            "enabled": info.info.agent.voicemail,
            "machineDetectionTimeout": 45,
            "machineDetectionSpeechThreshold": 2400,
            "machineDetectionSpeechEndThreshold": 2400,
            "machineDetectionSilenceTimeout": 6000
          },
          "voicemailMessage": info.info.agent.voicemail_message,

          "model": {
            "provider": "openai",
            "model": "gpt-4o-mini",
            "maxTokens": 250,
            "temperature": 0.3,
            "numFastTurns": 0,
            "semanticCachingEnabled": false,
            "emotionRecognitionEnabled": false,
            "tools": [{ type: "voicemail" }],
Copy code
"startSpeakingPlan": {
            "waitSeconds": 0.8,
            "smartEndpointingEnabled": true,
            "customEndpointingRules": [
              {
                "type": "assistant",
                "regex": ".*" + info.info.agent.voicemail_message + ".*",
                "timeoutSeconds": 3
              }
            ]
          }
Call IDs: 7be128e6-2301-4c48-a852-31b1b727eeee bc456f6a-dad6-4984-a9f8-0396dfaf2020 In my request, when I don't want to leave a voicemail, I am just removing the voicemail detection parts.
When I pulled up the call ID's in the API logs portion of the Dashboard, I don't even see the voicemail detection as part of my request... which I find odd, as all of this was working fine.
@Mason
v
Hi there! I see you're having issues with voicemail not hanging up. Looking at your configuration, I've identified a few potential issues that might be causing this problem: 1. **Speech End Threshold Setting**: Your
machineDetectionSpeechEndThreshold
is set to 2400ms, which is higher than the recommended range of 1000-2050ms. This might be preventing proper detection of when speech ends in the voicemail greeting. 2. **Smart Endpointing**: You have
smartEndpointingEnabled: true
which could potentially interfere with the voicemail detection process. 3. **Custom Endpointing Rules**: Your custom rules might be affecting how the system handles voicemail detection. Here are some recommended adjustments:
Copy code
json
"machineDetectionSpeechEndThreshold": 1200,
"smartEndpointingEnabled": false
Also, consider these additional troubleshooting steps: 1. **Increase Detection Timeout**: Your current timeout of 45 seconds should be sufficient, but you might want to verify it's not too long. 2. **Verify Detection Types**: Your detection types look good, but ensure they're all supported by Twilio. 3. **Check Logs**: Review the logs for the specific call IDs you provided to see if there are any error messages or warnings. 4. **Test Different Configurations**: Try removing the custom endpointing rules temporarily to see if that resolves the issue. Let me know if these adjustments help or if you need further assistance! đŸ™‚ Sources: - [Discord message about voicemail detection configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342555558984814653) - [Vapi documentation on phone calling/voice mail detection](https://docs.vapi.ai/phone-calling/voice-mail-detection) - [Discord message about voicemail detection issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334385998423130174)
t
These settings were working prior...
I've attached my complete code with the requests, obviously the lines with // are commented out, just incase you wanted to see the WHOLE request I am sending.
Is there a proper way to handle voicemail now?
I can obviously change my requests based on the proper way to do it.
m
Hey Trent, give me some time to look into this. I won't forget about you.
t
Sweet thanks
j
@Trentâ„¢ have you tried the new google gemini voicemail detection ?
t
nope
Didn't know that was an option, is it any good? @Jeebs from eva.be
j
@Trentâ„¢ I read this in their latest email. I've tried it but don't really know how it's supposed to work, couldn't have it working for now https://cdn.discordapp.com/attachments/1349180292803592284/1349373106178752604/image.png?ex=67d2dd22&is=67d18ba2&hm=f84753d9ac83d69e5e6b85e6d3aec90eaeeff9eaeaa8a7386503887d311cdcdd&
t
interesting
j
Would love to get more explanation somewhere but couldn't find any
t
that seems like the ongoing thing for the documentation on here lol
k
Hey Trent, Twilio voicemail detection can be unreliable. Please try switching to Gemini's voicemail detection in your assistant settings and test it out.
t
how can I turn on gemini's voicemail detection if I'm using api requests?
@Mason
k
Hey Trent, You can set your voicemail detection provider by making a patch request to the update assistant endpoint. Here is the field you'll be adjusting: