Pickup first then send call to VAPI
# support
m
Hello! @User I'm trying to get my assistant to only trigger if the person doens't pickup the phone or denies the call. When the call is denied/rejected I send a request to twilio to forward the call to VAPI: twiml.redirect({ method: 'POST', }, 'https://api.vapi.ai/twilio/inbound_call'); however I seem to be getting an error: Got HTTP 400 response to https://api.vapi.ai/twilio/inbound_call {"message":["property DialCallStatus should not exist","property DialCallSid should not exist","property DialBridged should not exist","property ErrorUrl should not exist","property ErrorCode should not exist","CallStatus must be one of the following values: ringing"],"error":"Bad Request","statusCode":400} I'm not sure why I get this error because I'm not forwarding dialCallStatus or DialCallSid... I also have set that URL as a fallback url but I'm still not able to get it to work. Any ideas?
c
Hi Mistermanu#000, If you're having issues with call transfer using Vapi, here are some troubleshooting steps you might find useful: 1. **Verify Forwarding Initiation**: Check if Vapi successfully initiated the transfer by verifying the
endedReason
for the call. If the reason is
"assistant-forwarded-call"
, Vapi forwarded the call successfully. Otherwise, review your assistant configuration to ensure proper setup. 2. **Check Configuration**: Make sure the
phoneCallProviderBypassEnabled
flag is set to
false
. Remove
"phone-call-control"
from
serverMessages
unless implementing custom logic. 3. **Provider Logs**: Examine the call logs on your telephony provider's dashboard using the
phoneCallProviderId
from Vapi. Look for any transfer-related errors. 4. **SIP Transfers**: If applicable, ensure SIP REFER packets are present in a downloaded packet capture file and look for any errors. For more detailed instructions, you can refer to the [Debug call forwarding drops](https://docs.vapi.ai/phone-calling/transfer-calls/debug-forwarding-drops) documentation. These steps should help resolve your call transfer issues. If problems persist, consider checking destination number formats or availability, as these can also impact successful transfers.
m
I figured it out thanks
c
Glad you were able to get this resolved. If anything else comes up or you need further assistance, we’re here to help.
2 Views