Skip to content

Instantly share code, notes, and snippets.

@chuckreynolds
Created May 2, 2017 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuckreynolds/0ff041df6754e02e53b4c459fc36ddfa to your computer and use it in GitHub Desktop.
Save chuckreynolds/0ff041df6754e02e53b4c459fc36ddfa to your computer and use it in GitHub Desktop.
How to forward SMS and/or Calls with Twilio and TwiMLbins.
// to forward a call and setup voicemail on timeout
<Response>
<Dial timeout="20" record="record-from-answer">xxx-xxx-xxxx</Dial>
</Response>
// to forward a sms to another number
<Response>
<Message to="+1xxxxxxxxxx">{{From}}: {{Body}}</Message>
</Response>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment