Soma_Szileczki
05/28/2025, 5:36 AMKings_big💫
05/28/2025, 6:46 AMVapi Support Bot
05/28/2025, 6:48 AMcustomer-did-not-answer
or customer-busy
) and ensure your application does not trigger another outbound call for the same number if the previous attempt failed.
Here’s a basic example of handling this in your webhook:
js
app.post("/call-status", (req, res) => {
if (["customer-did-not-answer", "customer-busy"].includes(req.body.endedReason)) {
// Do NOT trigger another call for this number
}
res.sendStatus(200);
});
This way, you can prevent unwanted retries programmatically.
Sources:
- [Call ended reasons (Vapi docs)](https://docs.vapi.ai/calls/call-ended-reason)
- [Outbound calling (Vapi docs)](https://docs.vapi.ai/calls/outbound-calling)