trouble with basic call forwarding
# support
b
I need the most basic call forwarding for when a caller wants to talk to a live agent (just one number to forward to). With only the forwardingPhoneNumber and prompt instruction to call "transferCall", I'm getting what looks like the log I should want. The call looks like it should transfer but no phone call seems to be made. I get a phone-call-control webhook that looks like it has the right data but I don't ever actually see any tool-* logs. Can you confirm exactly what is needed to get call forwarding setup? I've been through [this doc](https://docs.vapi.ai/call-forwarding#2-using-the-transfercall-function) - but I had a validation error when trying to set the parameters object in the function definition, but then I also felt like I read somewhere you don't need to define the transferCall function 😵‍💫 https://cdn.discordapp.com/attachments/1335869152535121960/1335869152715345950/Screenshot_2025-02-02_at_11.00.27_PM.png?ex=67a1bc99&is=67a06b19&hm=d56513b436b86f8d67c25ab0393dc1823ab8c4a51d82150c18fed2aecca3396f&
v
message has been deleted
You can continue this conversation by mentioning me in the message.
@blehh I understand that setting up call forwarding can be a bit confusing, but I'm here to help you through it. To set up basic call forwarding to a live agent, you typically need to use the
transferCall
function with the
forwardingPhoneNumber
parameter. Here's a simplified version of what you need to do: 1. When the caller indicates they want to talk to a live agent, you should invoke the
transferCall
function. 2. Pass the
forwardingPhoneNumber
parameter to this function, which should be the phone number of the live agent or the call center you want to forward the call to. You mentioned that you're seeing the correct logs, but no actual call is being made. This could be due to a few reasons: - The
forwardingPhoneNumber
might be incorrectly formatted or invalid. - There might be an issue with your Vici system handling SIP REFER messages if you're using such a system. - There could be a problem with the
forwardingPhoneNumber
attribute in the API, as you've mentioned validation errors. To troubleshoot this issue, please ensure the following: - The
forwardingPhoneNumber
is in the correct E.164 format (e.g., +15558675309). - If you're using a Vici system, check that it can handle SIP REFER messages. - If you encountered a validation error with the
forwardingPhoneNumber
, try setting it to null or an empty string as a test. If you've already checked these and the issue persists, please provide me with any error messages you're seeing in the logs, and I can assist you further. If there are no error messages, it might be best to reach out to support for a more in-depth investigation.
b
that's not really describing exactly the steps that need to be taken. the number is being passed to transfer call, but in what looks like a json string with the destination attribute on the object (much like the other docs look like). the forwardingphonenumber is not giving me a validation err
@Vapi for example: - do i need to create a tool separately and reference it from the assistant? - does there need to be a tool embedded in the assistant? Can you provide an assistant json that would have all the options needed (prompt, tool, forwarding number, etc)?
@Vapi i'm following [this guide](https://docs.vapi.ai/assistants/function-calling) to using the transferCall function. My logs show that the assistant is calling the transferCall queue but the call is not transferred and then eventually assistant hangs up. the number shown is correct and it's failed to forward to both my cell phone and another twilio number (twilio shows no inbound call log on that number). how can i figure out why the built in transferCall tool isn't working on my assistant? https://cdn.discordapp.com/attachments/1335869152535121960/1336207484653801482/Screenshot_2025-02-03_at_9.26.28_PM.png?ex=67a2f7b1&is=67a1a631&hm=01ec6f1b95072cb6a5c6732b604307c98f05cae8e6b06e99b14e279fc71a0b09&
@User i'd appreciate if yall could take a look at let me know what i'm missing here too 🙏
if helpful or affects how i need to do tool setup - my assistants are created dynamically by my server
s
@blehh Please remove the phone-call-control server event from your assistant. After doing so, calls will be forwarded appropriately. When this server event is utilized, the call forwarding control and logic are managed by you rather than VAPI. Therefore, kindly remove it and attempt again in accordance with the documentation.
b
omg thank you, totally makes sense @Shubham Bajaj