1. Home
  2. SMS Gateway
Developers

SMS Gateway

An SMS gateway is the system that sits between your application and the mobile networks. It accepts messages from software (over an API or SMPP), decides which network each recipient belongs to, submits the message over a carrier connection, and collects the delivery receipt. Ontech BulkSMS is an SMS gateway with direct connections to the three Zambian networks.

Published 2026-09-13 · Updated 2026-09-13 · By Ontech Solutions Limited

Definition.

An SMS gateway is the system between your application and the mobile networks. It accepts messages from software — over an HTTP API or SMPP — works out which network each recipient is on, submits the message over a carrier connection, and collects the delivery receipt. Ontech BulkSMS is an SMS gateway with direct connections to MTN, Airtel and Zamtel in Zambia.

Why a gateway exists

A mobile network does not accept messages from arbitrary software. It accepts them from a connected party over an SMPP link, with agreed sender IDs and throughput, and it reports delivery back over the same link. Setting that up per network, keeping the sessions alive, handling receipts and routing is a full-time job, which is why applications use a gateway: one integration, one account, one place to see what was delivered.

What happens inside the gateway

  1. Ingress. A message arrives from the web console, the mobile app, the HTTP/JSON API or an SMPP bind, and is authenticated to an account.
  2. Validation. The number is normalised to international form and checked as Zambian; the account's blacklist is applied; the sender ID is checked against those approved for the account; the credit cost is calculated from the message length and encoding (160 GSM-7 characters or 70 Unicode characters per segment) and reserved.
  3. Queueing. The message is written to an outbox with a message ID and returned to the caller. Sends are paced per carrier connection so bursts from one account do not starve another.
  4. Routing. The recipient's number prefix decides the network — Zambian ranges are allocated to MTN, Airtel and Zamtel — and the message is submitted over that network's SMPP connection with the account's sender ID.
  5. Receipts. The network returns a delivery receipt when it has a final result. The gateway matches it to the message ID and stores the state, then makes it available in the dashboard, on the status endpoint, on the account's callback URL, and to any SMPP receiver bind.
  6. Inbound. Messages from handsets to the gateway's short code or long numbers are attributed to an account by keyword or reply window and delivered to its inbox or SMPP session.

A2P messaging and sender identity

A2P (application-to-person) is the class of traffic a gateway carries: messages from software to people. Unlike a text from a SIM, an A2P message can carry an alphanumeric sender ID — a company name of up to 11 characters — because the gateway submits it on the account's behalf over its carrier connection. That is also why sender IDs are approved: the gateway is responsible to the networks for what is sent under each name, so an authorization letter is required before a name is used.

Interfaces into the gateway

InterfaceBest forNotes
Web consoleStaff sending campaigns, uploads and scheduled messagesNo integration needed; personalised preview and cost before sending
Android appField teams and small businessesQuick sends, campaigns, contacts, mobile money top-ups
HTTP / JSON APIApplications sending event-driven messagesSimple requests; 60 per minute; batch via JSON
SMPP 3.4High-volume, low-latency systems (banks, platforms)Persistent bind; receipts and inbound on the same session; per-credential TPS

Delivery receipts

A gateway is only as useful as its reporting. Every message through Ontech BulkSMS has a delivery state — delivered, failed, rejected, queued, submitted — that comes from the network, not from the gateway's own guess. Final states can lag a send by minutes or longer when a handset is unreachable and the network is retrying. The delivery reports guide covers each state and how to collect them.

Gateway versus aggregator versus SMSC

Security and accountability

Frequently asked questions

What is an SMS gateway?

An SMS gateway is a service that converts messages from one form to another — typically from an HTTP API call or an SMPP submission into a message carried by a mobile network — and returns the result. It hides carrier connections, routing and delivery reporting behind a single interface.

What is A2P messaging?

Application-to-person messaging: text messages sent by software (an application) to a mobile user. A2P traffic is carried over dedicated carrier connections and can use alphanumeric sender IDs, which distinguishes it from person-to-person texts sent from a SIM.

How does the gateway know which network to use?

By the recipient's number prefix. Zambian mobile numbers are allocated to MTN, Airtel and Zamtel in known ranges, and the gateway routes each message to the connection for that network.

What is a delivery receipt?

A delivery receipt (DLR) is the network's confirmation of what happened to a message — delivered to the handset, failed, or rejected. The gateway stores it against the message ID so you can query or receive it.

Can I connect my own SMPP client to the gateway?

Yes. Ontech BulkSMS runs an SMPP 3.4 server for direct binds, gated by your account's IP whitelist, with delivery receipts and inbound messages returned on the bind.

Ready to start sending?

Create a free account with trial credits, or talk to us about enterprise and reseller arrangements.