4

I just need to forward whatever incoming SMS to my mobile phone. I would prefer to just use a Twimlet like Echo but what I've tried so far doesn't work.

https://www.twilio.com/labs/twimlets/echo

Ex:

Where should be or be replaced with whatever keyword is used for the body of the incoming text.

Charles
  • 50,943
  • 13
  • 104
  • 142
Brian Boatright
  • 36,294
  • 34
  • 81
  • 102
  • Given that echo just emits TwiML, you'd do it [the same way you'd normally forward an SMS](https://www.twilio.com/help/faq/sms/how-do-i-forward-my-sms-messages-to-another-phone-number). – Charles Jan 15 '14 at 18:59

2 Answers2

6

Twilio evangelist here.

Unfortunately I'm not sure there is a way to do this by using Twimlets since we don't have one that knows how to grab the body of the inbound message and use it generate the TwiML needed to send a new outbound message.

Its a good idea though and I've passed it to the team that owns Twimlets.

If you don't want to run your own server, then you could look at using a service like Parse (which has a free tier and an integrated Twilio SDK) to stand up a simple endpoint that takes the inbound message body and then asks Twilio to send a new outbound message with that body.

devin

Devin Rader
  • 10,260
  • 1
  • 20
  • 32
  • Thanks for tip, Devin! I wrote a little app which does exactly that on parse if someone needs it - https://github.com/dabido/TwilioSmsRedirect – patchrail Jan 17 '15 at 10:31
  • Good news, now Twilio supports templates, read in this article How-To https://twilioinc.wpengine.com/2016/10/introducing-templates-for-twiml-bins.html – dikirill Oct 25 '16 at 15:51
0

There is a way to do this now.

http://twimlets.com/echo?Twiml=<Response><Message>Hello there!<%2FMessage><%2FResponse>

This twimlet was built for voice, but I have tested it with SMS and it works.

Beachhouse
  • 4,972
  • 3
  • 25
  • 39
  • 1
    How would you actually forward the inbound message using the echo twimlet? It is passed in the body of the request or as a url parameter. – regretoverflow Mar 30 '16 at 15:46