Airtel SMS Gateway
Airtel offers bulk SMS to business customers over SMPP, a protocol for talking directly to the operator's SMS server (SMSC). With this plugin MicroPowerManager sends its SMS, for example token and payment confirmations, through such an Airtel account.
The plugin only sends SMS. Incoming SMS and delivery reports are not supported.
Supported countries
This integration has been confirmed to work in production by MicroPowerManager users with Airtel Tanzania.
The plugin implements the SMPP v3.4 specification and relies on no country-specific behaviour. Airtel operating companies in other countries that provide SMPP access according to the same specification are therefore expected to be compatible. Such deployments have not yet been verified.
Prerequisites
- Access to the MPM admin panel
- An Airtel bulk SMS account with SMPP access, see Getting an Airtel SMPP account
- A sender name registered with Airtel, at most 11 characters
- A server for MicroPowerManager that can reach Airtel's SMS server, see Network access
Getting an Airtel SMPP account
Airtel runs bulk SMS for businesses on its Airtel IQ platform. There is no self-service sign-up; you get the account through a bulk SMS contract with Airtel.
- Contact Airtel Business in your country and ask for a bulk SMS contract. For Tanzania, use Talk to an Expert on the Airtel bulk SMS page. In Tanzania bulk SMS is handled by Airtel's Wholesale and Carrier Services team.
- Airtel creates your account on Airtel IQ and gives you a login for its dashboard.
- Register your sender name, at most 11 characters. In the Airtel IQ dashboard, open the asset management section and create a request for a Sender ID of the type Transactional. Airtel asks for a description of what you send and may ask for supporting documents. You can use the sender name once Airtel has approved it.
- Ask Airtel for the SMPP bind details for transactional messages. Airtel IQ also has an HTTP API, but this plugin uses SMPP.
- Airtel sends you four values: an IP address, a port, a system ID and a password. You enter them in step 2; the IP address goes into the Host field.
Network access
For each SMS, MicroPowerManager establishes an outgoing TCP connection to the IP address and port provided by Airtel. Any firewall between MicroPowerManager and Airtel must permit this connection.
Airtel Tanzania does not restrict SMPP connections by source IP address. This has been confirmed by Airtel and verified in practice by connecting from an IP address that had not been registered with Airtel. Consequently, a fixed outgoing IP address is not required for Airtel Tanzania.
The network requirements of Airtel operating companies in other countries have not yet been verified. Where Airtel restricts an account to registered IP addresses, MicroPowerManager must connect from a static IP address. In that case, deploy MicroPowerManager on a server with a fixed outgoing IP address and register that address with Airtel.
Step 1: Enable the Airtel SMS plugin in MPM
- Log into your MPM admin panel
- Navigate to Settings → Configuration → Plugins
- Find the AirtelSmsGateway plugin in the list
- Toggle the switch to enable the plugin
Step 2: Enter the connection details
- Click on Airtel SMS Gateway in the sidebar, then on Overview
- Enter the details Airtel gave you:
- Host and Port: the address of Airtel's SMS server
- System ID and Password: the login of your account
- Sender name: the name your messages are sent from
- Click Save
The password is stored encrypted.
Step 3: Select Airtel SMS as your SMS gateway
- Navigate to Settings → Configuration → Main Settings
- Select Airtel SMS Gateway (SMPP) in the SMS Gateway dropdown field
- Click Save
Step 4: Test SMS functionality
- Navigate to Customers and select a customer
- On the customer detail page, send a test message with Send SMS
- The message should arrive from your sender name
Good to know
- For every SMS the plugin connects to Airtel, logs in, hands over the message and disconnects.
- Phone numbers are sent in international format without the plus sign, for example
255712345678. - Messages are sent in the standard SMS character set (GSM 03.38). Characters outside it, such as emoji or non-Latin scripts, are replaced with a question mark.
- A message longer than 160 characters is sent in several parts that the phone joins again. Airtel charges each part as one SMS.
- An SMS counts as sent when Airtel's server accepts it. Whether it reached the phone is not reported back.
Troubleshooting
A failed SMS shows the reason in the SMS list.
| Message | What to do |
|---|---|
Airtel SMS credentials are not configured. | Fill in all fields on the overview page (step 2). |
Could not connect to the SMSC at … | Check host and port, your firewall, and whether Airtel allows your server's IP address. |
The SMSC rejected the request: Invalid password … | Check the password. |
The SMSC rejected the request: Invalid system ID … | Check the system ID. |
The SMSC rejected the request: Bind failed … | The login was refused. Check system ID and password, and ask Airtel whether the account is active. |
The SMSC rejected the request: Invalid source address … | The sender name is not the one registered for your account. |
The SMSC rejected the request: Throttling error … | Too many messages in a short time. The message can be sent again later. |
The SMSC did not answer in time. | Airtel's server was reachable but slow or busy. The message can be sent again later. |
No active SMS provider is configured. … | Select Airtel SMS as the SMS gateway in Main Settings (step 3). |
