How to change the SMS text with SMS routing rules
In this guide, you will be learn how you can modify the text of the SMS messages. You are presented with an sms routing rule that is replacing the content with a predefined text message. You can find a list of detailed configuration steps. So, let's start right now!
Step 1 - Open a routing rule
The first step is to select a route that you want to modify. If you are not familiar with routing rules, here you can learn about SMS routing in SMS Gateway. SMS Gateway creates default routes, so you can simply select the default outgoing route as you can see it in Figure 1.
By selecting a routing rule from the list of available routes, the next menu that you will be able to see is the details menu of the selected route. Here, you need to select the 'Modify' tab, as you can see it in Figure 2.
Step 2 - Configure the message text
In the Modify menu, you can configure the modification of the message text for the outgoing messages. To be able to change the text of the outgoing messages, select the 'Replace message text' submenu. Here, you can write a message like in Figure 3, so this text is going to replace every message that is going through that route. If you finished, you can just click OK.
Step 3 - Send a test message
After you changed the text of the message in the outgoing routing rule, you just need to write a test message. For that purpose, you can set up a SMPP client, which will forward the message to the recipient. Here, you can learn how to set up a SMPP client connection. To write the message, just open the admin account, and like in Figure 4, just write a simple test message.
Step 4 - View the results in the event log
To check if you have done everything right with modifying the message, you need to open the SMPP client and select the Events tab. Here, you can see every event of the SMPP client connection. Figure 5 shows that the original text is replaced by the specified message text.
- How to change the SMS recipient phone number
- How to forward an SMS to multiple recipients
- How to encrypt SMS messages
- How to change the SMS Sender ID
- How to manipulate the recipient address using regexp
- How to append text to the end of the SMS
- How to swap the SMS sender and recipient
- How to change the SMS text with C#