DEV Community

Cover image for Forwarding SMS and voice calls to an alternate phone number

Forwarding SMS and voice calls to an alternate phone number

Tilde A. Thurium on April 13, 2020

Balancing privacy and convenience can be tricky. Today I’ll show you how to forward messages and phone calls with Twilio so that you can give out a...
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.

Collapse
 
jonyx profile image
jonyx

Love to take this post,
Thanks

Collapse
 
jep profile image
Jim

Great timing! I'm working on my #twiliohackathon project, which involves forwarding numbers and I've never used Twilio before. This was just what I needed. Thank you!

Collapse
 
annthurium profile image
Tilde A. Thurium

yay, so glad it was helpful!