Correct setup for inbound call logic?
# support
r
I need to run custom logic when handling inbound calls on Twilio numbers imported into Vapi (e.g., routing to my AI assistant during work hours, or forwarding to another number after hours). Right now, my setup is: 1. Import the phone number into Vapi 2. Assign the assistant to the number 3. Update the Twilio webhook URL to point to my server (where I handle the logic) Can you confirm if this is the correct approach, or is there a better way to intercept and manage inbound calls while still using Vapi’s assistant?
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
r
@Vapi Support Bot do you know the answer to my question?
c
Hi RyGuy, To help troubleshoot and address call forwarding issues that drop immediately upon transfer initiation, follow these key steps: 1. Verify Vapi Forwarding: - Use Vapi API to ensure the call forwarding was initiated successfully. - Check the
endedReason
in the API response ([reference](https://docs.vapi.ai/phone-calling/transfer-calls/debug-forwarding-drops)). 2. Configuration Check: - Ensure
serverMessages
in your Vapi configuration does not include
"phone-call-control"
, unless implementing custom transfer logic. - Set
phoneCallProviderBypassEnabled
to
false
for standard Vapi-managed call transfers. 3. Analyze Telephony Provider Logs: - Use the
phoneCallProviderId
to search call logs in your telephony provider's dashboard (e.g., Twilio, Vonage, Telnyx). - Look for errors related to the transfer. 4. For SIP Calls: - Download and examine the SIP packet capture using tools like Wireshark. - Check for
REFER
packets to ensure the transfer request was sent ([see guide](https://docs.vapi.ai/phone-calling/transfer-calls/debug-forwarding-drops)). 5. Common Solutions: - Ensure the destination number format includes the country code. - Test calling the destination directly. - Consider any call blocking features that may interfere. By following these steps, you should be able to identify and resolve any underlying issues causing call drops during forwarding.
3 Views