How to get forwarded Vapi phone number in Twilio W...
# support
a
Hello everyone. This is the situation. I called Vapi phone number using web. While calling, Vapi forwarded the call to Twilio phone number. I implemented webhook for Twilio phone number and I tried to get the phone number of Vapi but I could not find the number. The body of the request of Twilio webhook has fields like 'from' but this field has value of my web phone number. How can I get the Vapi phone number in twilio webhook?
v
message has been deleted
@adam Hello there! When you're dealing with forwarded calls in Twilio, the information about the original caller and the forwarding number can be found in different parameters of the webhook request. If Vapi forwarded the call to a Twilio number, the Twilio webhook should receive data about the incoming call. Typically, the
From
parameter in the Twilio webhook request will contain the caller's number (in your case, the web phone number). To find the Vapi phone number that was used to forward the call to Twilio, you should look for a parameter that indicates the called number, which is usually the
To
parameter. Here's what you can check in the Twilio webhook request: - `From`: This should be the number of the caller (your web phone number). - `To`: This should be the Twilio phone number that received the call. If you're looking for the Vapi number that was used to forward the call, and it's not appearing in the
To
field, it's possible that the forwarding service (Vapi) is not passing that information along, or it may be included in a different parameter or SIP header, depending on how the forwarding is set up. If you're unable to find the Vapi number in the standard parameters, you may need to check if there are any custom parameters or headers being sent in the webhook request that might contain this information. If you're still having trouble locating the Vapi number, please provide more details about how the forwarding is configured, or reach out to Vapi support for further assistance.
You can continue this conversation by mentioning me in the message.
s
@adam can you share the call id you have used for POC?
Because of no response closing this ticket!!
2 Views