adam
01/07/2025, 6:33 AMVapi
01/07/2025, 6:35 AMVapi
01/07/2025, 6:35 AMTo
field in the webhook data.
When a call is forwarded, the From
field usually contains the caller's number (in your case, the web phone number), and the To
field should contain the number that the call was forwarded to (which should be your Twilio phone number).
If you're expecting to see the Vapi number and it's not present in the To
field, there might be an issue with how the forwarding is set up. Please ensure that the forwarding is configured correctly to pass along the Vapi number to the Twilio webhook.
If you're still unable to find the Vapi phone number in the webhook data, it's possible that additional configuration or troubleshooting may be required. In that case, please ask support for more info on this, as they may need to look into the specific details of your setup.Vapi
01/07/2025, 6:35 AMadam
01/07/2025, 6:37 AMVapi
01/07/2025, 6:38 AMadam
01/07/2025, 6:40 AMadam
01/07/2025, 6:40 AMadam
01/07/2025, 7:44 PMShubham Bajaj
01/09/2025, 3:20 PMadam
01/10/2025, 3:37 PMShubham Bajaj
01/10/2025, 5:47 PMadam
01/10/2025, 5:48 PMadam
01/10/2025, 5:49 PMShubham Bajaj
01/10/2025, 5:52 PMadam
01/10/2025, 5:52 PMShubham Bajaj
01/10/2025, 6:07 PMforwardedFrom
property, and the second is setting the caller ID
for the destination number of the Vapi phone number. Twilio includes a ForwardedFrom parameter in webhook requests when it detects call forwarding. You can examine this parameter in your webhook handler to see if it contains the vapi's number. If you don't receive(let me know, I will investigate if we can send it when it's not present.) the ForwardedFrom parameter in the request body, you can use the caller ID solution insteadadam
01/10/2025, 6:09 PMadam
01/10/2025, 6:10 PMShubham Bajaj
01/10/2025, 6:39 PMsh
curl -X POST https://api.vapi.ai/tool \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"type": "transferCall",
"async": false,
"function": {
"name": "customTransferCall"
},
"destinations": [
{
"type": "number",
"number": "number-to-forward-call",
"callerId": "vapi-phone-number",
"numberE164CheckEnabled": false
}
]
}'
Ref: https://docs.vapi.ai/api-reference/tools/create?playground=%2Fapi-reference%2Ftools%2Fcreate
**Step2**: Attach the tool within your assistant
**Step3**: Trigger the customTransferCall tool with your
Here number is to number-to-forward-call.Shubham Bajaj
01/10/2025, 6:39 PMadam
01/10/2025, 8:07 PMadam
01/10/2025, 8:07 PMShubham Bajaj
01/11/2025, 10:50 AM