Melannie Carranza-Iglesias
11/25/2025, 7:09 PMVapi Support Bot
11/25/2025, 7:10 PMChiranjeet Mishra
11/26/2025, 5:39 PMpython
from vapi import Vapi
client = Vapi(token=os.getenv("VAPI_API_KEY"))
call = client.calls.get("ca123456xxxxx")
print(f"End reason: {call.ended_reason}")
If the endedReason is not "assistant-forwarded-call", review your assistant's configuration.
2. Check Configuration:
- Ensure "phone-call-control" is not in your serverMessages to prevent conflicting call control.
- Set phoneCallProviderBypassEnabled to false for standard Vapi forwarding.
3. **Verify Transfer Compatibility**:Confirm that your transfer scenario is supported. Unsupported scenarios include web calls to phone numbers and PSTN to SIP transfers.
4. **Telephony Provider Logs**:If Vapi shows a successful forwarding ("assistant-forwarded-call"), check your telephony provider's logs for potential issues:
- For Twilio: [Twilio Console > Call Logs](https://console.twilio.com/us1/monitor/logs/calls)
- For Vonage: [Vonage API Dashboard](https://dashboard.nexmo.com/)
- For Telnyx: [Telnyx Mission Control Portal](https://portal.telnyx.com/)
5. **SIP Trunking**:If applicable, use Wireshark to analyze SIP signaling for missing or errored REFER packets.
For more detailed troubleshooting steps, please refer to our [debug forwarding drops guide](https://docs.vapi.ai/phone-calling/in-call-control/transfer-calls/debug-forwarding-drops).