and then after explaining that my api or rather VAPI was not terminating the call this was the response
Aldo Vergara (Twilio)
Nov 29, 2024, 3:31 PM PST
Santiago,
Happy to be of assistance sir!
Apologies if I did not make myself clear enough, as is not the API per-sé what is hanging up the call, but the call resource. From the document shared, you can see it mentiones the behaviour you are experiencing:
Real-time call modification allows you to interrupt an in-progress call and terminate it or have it begin processing TwiML from either a new URL or from the TwiML provided with modification. Call modification is useful for any application where you want to change the behavior of a running call asynchronously, e.g., hold music, call queues, transferring calls, or forcing a hangup.
What is currently happening on your end, is this
https://www.twilio.com/docs/voice/api/call-resource#code-update-a-call-resource-to-end-the-call but instead of using
as the example, your calls are being terminated with a
instead.
Many factors can cause a call to be disconnected and appear the callee as the party who hung up, but in this case, the call is intentionally being updated via POST with a TwiML to update its behaviour, which in this case terminates the call.
Are you perhaps aware of any user who may have access to your account SID and auth token and might be maybe updating the live calls via Postman for example? This is a sample I recreated of a call being hangup via call resource:
Call Resource | Twilio
Full detailed REST API reference for the Call resource in Twilio's Programmable Voice REST API.