Benoit Alvarez
10/15/2025, 1:22 PMGIDEON
10/15/2025, 1:39 PMNir Simionovich (CEO@Cloudonix)
10/15/2025, 1:40 PMBenoit Alvarez
10/15/2025, 3:12 PMBenoit Alvarez
10/15/2025, 3:16 PMNir Simionovich (CEO@Cloudonix)
10/15/2025, 3:34 PMChiranjeet Mishra
10/16/2025, 7:09 PMendedReason and ensure it's "assistant-forwarded-call".
- You can do this with the following TypeScript code snippet:
typescript
import { VapiClient } from "@vapi-ai/server-sdk";
const client = new VapiClient({ token: process.env.VAPI_API_KEY });
const call = await client.calls.get("YOUR_CALL_ID");
console.log("End reason:", call.endedReason);
2. **Check Configuration**:
- Ensure your assistant configuration does not include "phone-call-control" within serverMessages, unless custom logic is implemented.
- Set phoneCallProviderBypassEnabled to false unless managing call control directly.
3. **Telephony Provider Logs**:
- Access your telephony provider's dashboard (e.g., Twilio, Vonage, Telnyx) using the phoneCallProviderId and check for any transfer-related errors.
4. SIP Packet Analysis (for SIP-Based Calls):
- Download the PCAP file from the Vapi API and open it in Wireshark.
- Use the filter sip.Method == "REFER" to see if the transfer request was sent.
For more detailed steps, refer to the [debugging guide](https://docs.vapi.ai/phone-calling/transfer-calls/debug-forwarding-drops).
Ensure these steps are followed before considering potential issues with your telephony provider. If the call still drops, your provider's logs may offer additional insights into the failure.