Question
Why was my <Dial> action URL not called after a call ended?
Product
- Programmable Voice
Answer
The <Dial> verb’s action URL in Twilio Programmable Voice is called when the <Dial> completes, and the callee (the party being dialed) hangs up first. If the caller hangs up first and their call disconnects before the callee (child call), the action URL is not triggered. In some cases, delays in disconnecting the parent call may cause the child call to terminate first, resulting in the action URL being called even when the caller hangs up first. However, this is not guaranteed and depends on the timing of call disconnections.
For consistent notifications when a <Dial> completes—regardless of who hangs up—use the statusCallback URL with a <Dial> Noun: <Number> <Sip> <Conference> <Client>. This callback is always triggered when the <Dial> ends, no matter which party disconnects.