Abrupt ending calls/ Goodbye messages
# support
n
There was a bug in a assistant where the call abruptly ends in the middle of the conversation We have tried disabling the endcall function and tried explicitly telling the assistant to when to end the call via prompting as well but the test case is still failing most of the time. Would like to have further assistance regarding this.
Hi there! 👋 I understand you're experiencing issues with calls abruptly ending in your assistant, even after disabling the endcall function and using prompting. I'm unable to diagnose the specific bug in your assistant or analyze your particular test case without more details. However, I can definitely help with common causes and solutions for this issue! ## Common Causes of Abrupt Call Endings Several factors could be causing your calls to end unexpectedly: 1. **Endpointing Model Issues**: Problems with the endpointing model (which determines when a user has finished speaking) can lead to abrupt call endings. Network issues and websocket connections can also cause unexpected disconnections [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333877747453395014). 2. **Silence Timeout**: If the assistant goes silent after a tool call or stops talking to the caller, the call might end due to silence timeout [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341441918831431680). 3. **Incorrect VAPI Configuration**: Especially related to voicemail detection settings that conflict with
silenceTimeoutSeconds
[(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1344633027925377064). 4. **Network Delays**: Network delays and configuration settings on voice services can lead to abrupt call endings [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1332133296347549797). ## Troubleshooting Steps Here are some steps you can take to diagnose and fix the issue: 1. **Check Call Logs**: Examine the Vapi call logs for error messages or clues about why calls are ending [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335002895736635402).
2. **Review VAPI Configuration**: Double-check settings like
silenceTimeoutSeconds
,
responseDelaySeconds
, and
llmRequestDelaySeconds
[(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1332286268805087272). 3. **Check for Tool Call Issues**: Ensure your assistant properly handles tool calls and doesn't go silent after making them [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334114042876264518). ## Alternative Methods for Call Control Instead of relying solely on the
endcall
function, you could try: 1. **Using
say
with `endCallAfterSpoken`**: Use the
say
method with the
endCallAfterSpoken
parameter set to
true
to gracefully end calls [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336004944150401166). 2. **Configure `assistantOverrides.endCallPhrases`**: Set up specific phrases that trigger call ending [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334188247676358656). 3. **Use Custom Endpointing Rules**: Implement custom rules to pause for user input for a specified duration [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335807780287676456). 4. **Adjust
numWordsToInterruptAssistant
and `maxDurationSeconds`**: These settings in the VAPI dashboard can help control conversation flow [(Discord thread)](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334027136305991750). Would you be able to share more details about your specific implementation or the error messages you're seeing in your call logs so I can provide more targeted assistance? Sources: - [Discord thread on endpointing model issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333877747453395014)
i
I had this happen as well. the assistant said its first thing, i started talking, and it almost immediately played the end call message and hung up on me.
v
Message marked as helpful by @Nirasha! 🎉
n
Will get back to you after trying these as well. Thank you very much
s
Hey! To help track down this issue, could you share: - The call ID - When exactly this happened (the timestamp) - What response you expected to get - What response you actually got instead This would really help us figure out what went wrong!