worthy-roseW
VAPI2mo ago
worthy-rose

Outbound calls

I want to transfer the call but the call ends.

Context: I have created a Vapi number (US number), and when I tested it calling from my phone and asked to be transfered using the Forwarding Phone Number function to a mexican sumber the call ends. I added to the system prompt the instruction: if the intention of the user is to... transfer the call using the transfer call function to the number .... I also tried using the transfer call tool. I added the E164 format and all. In the log it appears: [ { "name": "transferCall", "toolCallId": "call_axDPotgfnHm9M9942QBxWmRA", "type": "transferCall", "result": "Transfer initiated." } ]. I also run:

import { VapiClient } from "@Vapi-ai/server-sdk";

const client = new VapiClient({ token: "xxx" });
const call = await client.calls.get("xxx");
console.log("End reason:", call.endedReason);

and it appears: End reason: assistant-forwarded-call

how can i solve it?
Was this page helpful?