Call forwarding not working
# support
s
Hello I am trying to forward a call and it's not working. I set up the transferCall tool as described here : https://docs.vapi.ai/call-forwarding The tool gets triggered however the call ends abruptly instead of being transfered. The ended_reason is "Assistant forwarded call" which is weird. Here is the call ID for logs 7682cafe-40a7-4809-85db-d9730c6cdf6c. See below for logs of the tool being called:
Copy code
{
  "role": "tool_calls",
  "time": 1733879991618,
  "message": "",
  "toolCalls": [
    {
      "id": "call_veNuxgVSXbirWOFOVvaPTMae",
      "type": "function",
      "function": {
        "name": "transferCall",
        "arguments": "{\"destination\": \"+16282988617\"}"
      },
      "isPrecededByText": true
    }
  ],
  "secondsFromStart": 27.04
}

{
  "name": "transferCall",
  "role": "tool_call_result",
  "time": 1733880006174,
  "result": "Success.",
  "toolCallId": "call_veNuxgVSXbirWOFOVvaPTMae",
  "secondsFromStart": 41.596
}
@Shubham Bajaj any idea what might be happening here?
@Vapi can you help?
v
@Skan Absolutely, I'd be glad to assist you with this issue. Based on the logs you've provided, it seems that the
transferCall
tool was triggered successfully, and the call was intended to be transferred to the destination number "+16282988617". However, the call ended unexpectedly with the reason "Assistant forwarded call." This could be due to a few different reasons: 1. The destination number might be incorrect or not set up to receive forwarded calls. 2. There could be an issue with the
transferCall
tool's configuration or with the network connectivity. 3. The call might be ending as designed, but the expected behavior might not be clearly understood. To further investigate this issue, I would need to check the system logs associated with the call ID you provided and review the configuration of the
transferCall
tool. Since I don't have the capability to directly access logs or configurations, I recommend reaching out to VAPI support with the call ID and the detailed description of the issue. If you have already checked the destination number and confirmed that it is correct and capable of receiving calls, and if you have verified that the
transferCall
tool is configured correctly according to the documentation, then contacting support would be the next best step. Would you like me to guide you on how to contact VAPI support, or is there anything else I can assist you with?
message has been deleted
@Skan Hello! I'm sorry to hear you're experiencing issues with the call forwarding feature. Based on the logs you've provided, it seems that the
transferCall
tool was executed successfully, but the call ended unexpectedly with the reason "Assistant forwarded call." Let's try to troubleshoot this issue: 1. Please check your Vici system to ensure it can handle SIP REFER messages, as this is often required for transferring calls. 2. If the
forwardingPhoneNumber
attribute was used in your API call, consider omitting it or setting it to null or an empty string to see if that resolves the issue. If you've already checked these and the problem persists, there might be an issue with the destination number or with the Vici system's configuration. If you need further assistance, please provide additional details or error messages from the logs, if available.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
@Shubham Bajaj let me know, Vapi Bot didnt help
s
@Skan remove the server event of type
phone-call-control
it is used for controlling how the transfer call should work. Hence, call was not transfered. TLDR: remove
phone-call-control
server event and try again. https://cdn.discordapp.com/attachments/1316214019174174781/1317358069595770920/Screenshot_2024-12-14_at_10.38.55_AM.png?ex=675e64cf&is=675d134f&hm=306d189851f5592c3489ce23d95d312aef337342c7e48e1ec2b16e72d2936dd3&
4 Views