Skip to content

Instantly share code, notes, and snippets.

@odigity
Created September 20, 2012 21:58
Show Gist options
  • Save odigity/3758598 to your computer and use it in GitHub Desktop.
Save odigity/3758598 to your computer and use it in GitHub Desktop.
Summary of Twilio behaviour after initiating call using REST API with IfMachine="Hangup" and Timeout=10
if pickup
TWILIO REQUESTS
Voice URL
AnsweredBy 'human'
StatusCallback URL
CallStatus 'completed'
CALL RESOURCE
AnsweredBy 'human'
Status 'completed'
if send to voicemail
TWILIO REQUESTS
StatusCallback URL
AnsweredBy 'machine'
CallStatus 'completed'
CALL RESOURCE
AnsweredBy 'machine'
Status 'completed'
if no pickup, timeout
TWILIO REQUESTS
none
CALL RESOURCE
Status 'no-answer'
if no pickup, timeout (with explicit StatusCallback)
TWILIO REQUESTS
StatusCallback URL
CallStatus 'no-answer'
CALL RESOURCE
Status 'no-answer'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment