user1584061
user1584061

Reputation: 23

Getting updates with the Twilio CallStatus changes

I can't figure out how to tell when a Twilio call changes its CallStatus. I know about the StatusCallback (https://www.twilio.com/docs/api/twiml/twilio_request#asynchronous) but it only seems to fire when the call ends. Is there any callback that will fire when the state changes to any of the states here?: https://www.twilio.com/help/faq/voice/what-do-the-call-statuses-mean

Upvotes: 0

Views: 225

Answers (1)

xmjw
xmjw

Reputation: 3434

Twilio Developer Evangelist here.

I'm afraid that there is no explicit way of doing this. However, when Twilio makes an initial request for you TwiML, the call status will typically have changed from queued or ringing to in-progress. Then the Status callback will be fired when the call goes from in-progress to completed.

The callback should also be fired on busy, no-answer, canceled and failed.

So while there is not an explicit callback, you should pretty much know what is happening from the flow of you application.

Is there something specific you're trying to do that you can't with the above? Happy to help!

Upvotes: 1

Related Questions