DEV Community

Discussion on: Forwarding SMS and voice calls to an alternate phone number

Collapse
 
jc00ke profile image
Jesse Cooke

Nice write-up! I just did this for my dad's old landline phone only using TwiML Bins.

Here's the voice:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Dial>+19998887777</Dial>
</Response>

and here's the SMS:

<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <Message>This phone number redirects to 999-888-7777. Please send text messages there. Thanks!</Message>
</Response>

Twilio Studio is super powerful. If you want to do anything with logic, it's the way to go... unless your logic is tightly tied to your app, then you probably need TwiML responses.