Kannel – setting up active-active load-balanced SMPP gateways

This post documents setting up Kannel to balance across two SMPP gateways in active-active mode such that messages are set using both the gateways

Note: Kannel does not monitor the quality of service of each link. If a gateway is connected and is not delivering messages, it will continue using the gateway until the connection to the gateway goes offline.

Prerequisites

This post assumes that you have working knowledge of setting up and running Kannel. Only relevant config is documented, rest of the config parts are snipped off for readability

Setting up active-active gateways

The trick in setting up active-active gateways in Kannel is to set the same smpp-id for both the SMPP gateways.

[SMPP connection 1 config]
group = smsc
smsc = smpp
smsc-id = smpp_carrier_gw
host = carrier1.example.com
smsc-username = carrier1
smsc-password = carrier1

[SMPP connection 2 config]
group = smsc
smsc = smpp
smsc-id = smpp_carrier_gw
host = carrier2.example.com
smsc-username = carrier2
smsc-password = carrier2
Hooking the gateways to an account

group = sendsms-user
username = company_1
password = compant_1_admin
name = company_1
.
.
default-smsc = smpp_carrier_gw
forced-smsc = smpp_carrier_gw

Leave a Reply