Call forwarding with Twilio
# support
c
Hey there, I am another customer who has trouble with the forwarding functionality. I work with Twilio as a provider and everytime I try to forward a call from the assitant to a landline, a cell phone or any other number the call fails. I have contacted support multiple times and still have no answer as to why this happens. Seems like a lot of people experience the same issues. WHen will there be a fix to this crucial functionality?
v
Try this actionable example for Twilio call forwarding with Vapi:
Copy code
js
// Place user in conference and dial specialist
app.post("/connect", async (req, res) => {
  await client.calls(globalCallSid).update({ url: conferenceUrl, method: "POST" });
  await client.calls.create({
    to: TO_NUMBER,
    from: FROM_NUMBER,
    url: conferenceUrl,
    method: "POST",
    statusCallback: statusCallbackUrl,
    statusCallbackMethod: "POST",
  });
  res.json({ status: "Specialist call initiated" });
});
Ensure all environment variables are set and your Twilio number is configured to hit your server endpoints. This setup helps diagnose and resolve most forwarding issues with Twilio and Vapi. [See full example in the documentation](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio) Source: - [Call Handling with Vapi and Twilio](https://docs.vapi.ai/calls/call-handling-with-vapi-and-twilio)
c
Thank you, but as of now we are using the VAPI UI to set up the agent and the forwarding
c
Hey! To help track down this issue, could you share: \- The call ID \- When exactly this happened (the timestamp) \- What response you expected to get \- What response you actually got instead This would really help us figure out what went wrong!
2 Views