Forwarding Messages

Forwarding messages with SignalWire is exceedingly simple - you can be completely set up in under 5 minutes!

How to Write a Message Forwarding Bin

As message forwarding in a super easy use case with SignalWire, you can use our serverless code hosting bins to keep your life code free!

Within your SignalWire space, click the LaML tab on the left-hand side nav. Click on Bins and create a new Bin. You can paste your SignalWire Compatible XML code in these serverless bins. To learn how to use these bins as a webhook for handling inbound calls, check out our article webhook for handling inbound messages and calls.

You can use Message to send the inbound message to the number you would like to receive it. Make sure to set

<?xml version="1.0" encoding="UTF-8"?>


    <Message to='+1xxxxxxxxxx'> You received a message from: {{From}}. The message is: "{{Body}}" </Message>


How to Assign the Bin to a SignalWire Phone Number

Read here for more information about webhooks and how they work with SignalWire!

Click the Phone Numbers tab on your lefthand side nav within your SignalWire space, and click the specific number that you would like to set up call forwarding on. If you don't have a number yet, now is the time to buy one!

Make sure that Handle Messages Using is set to LaML Webhooks, and paste your Bin URL in as the value for When a Message Comes In. Save, and you're done! Your messages to this SignalWire number will now be forwarded to the number that you designated in the bin.

Did this page help you?