chich2221
09/11/2025, 2:29 PMVapi Support Bot
09/11/2025, 2:31 PMjs
// 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)chich2221
09/11/2025, 2:40 PMChiranjeet Mishra
09/19/2025, 9:36 AM