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.

select a routing rule in sms gateway
Figure 1 - Select a routing rule in SMS Gateway

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.

select the modify menu
Figure 2 - Select the Modify menu

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.

configure the sender phone number
Figure 3 - Configure the Replace the text message content

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.

write a simple test message
Figure 4 - 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.

see that the routing rule changed the message text
Figure 5 - See that the routing rule changed the message text

More information