Least SMS cost routing

This is a configuration example on how to setup least cost routing in Ozeki NG SMS Gateway. Least cost routing means, that SMS messages are routed to the appropriate SMS service provider connection based on the telephone number prefix.



In our example, there are four SMS Service provider connections: MTN, T-Mobile, Orange, Vodafone. The routing is setup the following way:
  • If an SMS is sent to a phone number that starts with +3670 it should be routed to MTN
  • If an SMS is sent to a phone number that starts with +3630 it should be routed to T-Mobile
  • If an SMS is sent to a phone number that starts with +3620 it should be routed to Orange
  • All other SMS messages should be routed to Vodafone

To setup this routing the outbound routing table should be modified. The outbound routing table, that determines which service provider connection will be used to send an SMS message, can be found in the bottom part of the center panel of the management form of Ozeki NG (Figure 1).

an outbounding routing table in the sms gateway
Figure 1 - Outbound routing table

To configure the desired routing, the routing table must have four entries. The first 3 entries should have a regular expression condition to match a telephone number prefix. The last entry should have a condition that matches all SMS messages (Figure 2).

routing table entries in the sms gateway
Figure 2 - Routing table entries

More information