Webhook end-of-call-report is not working
# support
m
All my assistants its not sendind Webhook when the call finishes using phone numbers. If i call from web inside VAPI website, working ok, but using phone numbers not work.
v
Hi there! 👋 I see you're having an issue with webhook end-of-call-reports not working when using phone numbers, but they work fine when calling from the Vapi website. I can help troubleshoot this! Here are some potential causes and troubleshooting steps: ### 1. Check Webhook URL Configuration Make sure your webhook URL is correctly configured in both Vapi and Twilio (if you're using Twilio): - Double-check that the URL for call events is set to your server URL in the Vapi dashboard - Verify that the webhook URL is accessible from the internet - Ensure there are no typos in the URL According to [troubleshooting information](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334280135683084328), webhook URL misconfiguration is a common cause of this issue. ### 2. Verify Webhook URL Precedence Vapi sends webhooks based on a specific order of precedence: 1.
assistant.server.url
2.
phoneNumber.serverUrl
3.
org.serverUrl
Make sure the correct URL is set at the appropriate level for phone number calls, as noted in the [Vapi API reference](https://docs.vapi.ai/api-reference/assistants/update). ### 3. Check Twilio Configuration (if applicable) If you're using Twilio: - Ensure that the webhook URL in Twilio for incoming calls correctly points to the Vapi endpoint - Review Twilio number settings to make sure there are no forwarding rules causing issues - Check Twilio logs for any errors related to the calls ### 4. Investigate Vapi Worker System There might be an issue with Vapi's worker system that prevents the webhook event for call end status from triggering. This has been [reported previously](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333787835144343553) as a potential cause. ### 5. Review Server Logs Check your server logs for any errors or intermittent downtime that could be affecting the webhook calls. Also verify that your firewall or security settings aren't blocking requests from Vapi.
### 6. Check Phone Number Status Newly created phone numbers might take a few minutes to be fully activated. During this period, calls and related webhooks might not function properly, as mentioned in the [Vapi documentation](https://docs.vapi.ai/free-telephony). Is there any specific part of this troubleshooting process you'd like me to elaborate on? Sources: - [Webhook Troubleshooting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334280135683084328) - [Vapi API Reference](https://docs.vapi.ai/api-reference/assistants/update) - [Worker System Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333787835144343553) - [Phone Number Activation](https://docs.vapi.ai/free-telephony)
k
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
6 Views