Call Forwarding Not working
# support
v
Hi @Dillon, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Call Forwarding]() * [Function Calling]() * [Inbound Support Example]() * [List Calls]() -----------------------------
### Answer It appears that you are facing issues with the call forwarding functionality where the calls are ending instead of being transferred. This is likely related to how the forwarding function is being handled or triggered within your configuration. To address this issue, ensure that: 1. Correct Number Format: The phone number for forwarding should be in the correct E.164 format, without spaces, dashes, or parentheses. Misformatted numbers can cause the forwarding to fail. 2. Function Configuration: Verify that the
forwardingPhoneNumber
is correctly set up in your assistant configuration. If multiple forwarding options are needed, use the
forwardingPhoneNumbers
array to define multiple destinations [(1)]() . 3. API Handling: Ensure that the API request handling the transfer does not have errors. Specifically, check that the
transferCall
function is not encountering issues due to incorrect parameters or setup [(2)]() . 4. SIP Calls: If the calls are SIP originated, ensure that
sipUri
is used within the
forwardingPhoneNumbers
when necessary [(1)]() . You might also want to look at the logs to see if there are error messages related to the failed transfer. If the issue persists, reviewing the specific call parameters and configuration via the API might help diagnose the problem further [(3)]() . For immediate troubleshooting, here’s a general format to ensure your forwarding settings are correct:
Copy code
json
{
  "forwardingPhoneNumber": "+11234567890"
}
Ensure that the phone number follows the international format as shown above. If these steps do not resolve the issue, it might be beneficial to look into the detailed logs provided by Vapi for the specific Call ID to understand why the transfer function is failing [(4)]() .
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.