- Quick start guide
- System requirements
- Installation guide
- Mobile networks
- OZX connection
- SMPP connection
- SMPP error codes
- Secure SMPP Client
- SMPP delivery reports
- UCP connection
- CIMD2 connection
- HTTP sms client
- Android smpp
- SMS modem
- SMS modem pool
- User guide
- Developers guide
- Service providers
SMPP client connection
This guide is about SMPP client connection setup. It defines what an SMPP connection is, what does SMPP stand for and how you can use an SMPP client connection to connect your Ozeki SMS gateway system directly to the Short Message Service Center (SMSC) of a mobile network operator over the Internet.
What is an SMPP connection?
An SMPP client is a software that allows you to connect to an SMS service provider on the Internet. An SMPP client, such as Ozeki SMS Gateway, uses the SMPP protocol to send and receive SMS text messages.
What does SMPP stand for?
SMPP stands for Short Message Peer-to-Peer Protocol. This is an industry standard protocol designed to deliver SMS messages over TCP/IP connections through the Internet. This protocol is implemented by Ozeki SMS Gateway.
How to connect an SMPP connection
The following short video shows the steps you need to create to setup an SMPP client connection in Ozeki 10 SMS Gateway. The video starts with the login form, and takes you all the way to sending your first SMS test message over the newly created SMPP connection.
- Open https://localhost:9515 in your browser
- Login using your username and password
- Click on "Add new connection"
- Select "SMPP client"
- Enter the smpp host name and port
- Enter the telephone number
- Click ok and send a test message
Detailed setup instructions
Setting up an SMS connection in Ozeki SMS Gateway is a relatively simple procedure. You need to login to the SMS gateway using a web browser as administrator, and you need to perform a few simple steps. For configuration we recommend to login using the administrator account. The administrator account username is "admin", and the password is the one you provided during install.
How to create a new SMPP connection
To create a new SMPP connection after login, you need to click on the 'Add new connection' link in the management console of the Ozeki 10 SMS Gateway app. This will bring up a list of available protocols. You will have to select SMPP client from the list. Note, that an SMPP client connection is used if you wish to connect your SMS gateway to an SMS service provider over the Internet. (If you wish to provide an SMS service, and you want your customers to connect to your SMS gateway over SMPP, you need to setup an SMPP user account and you need to configure an SMPP service.)
Select the 'SMPP Client Connection' from the list and click on install next to it.
Configure your SMPP connection
In order to configure your SMPP connection, you need to provide the host name and port number of the SMPP service, your SMPP credentials and your must specify telephone number associated with this connection. There could be more than one phone numbers associated with this connection. In this case provide the first one and check the overridable checkbox. If this checkbox is checked, you will be able to use all phone numbers as sender IDs.SMPP connection configuration steps:
- Select the General tab on the SMPP connection form
- Give a name to this SMPP connection
- Enter the SMPP hostname
- Enter the SMPP port number
- Provide your SMPP username
- Enter your password
- Assign a telephone number to this SMPP connection
- Click OK
It is important to mention that the SMPP hostname and port plus the username and password are provided by your SMS service provider. For example if you contact Vodafone, and ask for an SMPP SMS service, you will sign a contract with them, and often an attachment of this contract will contain the connection following information. If you subscribe to an SMS service on-line, you will likely find this information in the on-line control panel of your SMS service provider. Of course you can always ask your SMS service provider in e-mail and ask what are the SMPP server connection details.
Check the SMPP log
Once the SMPP connection is configured, you should check the SMPP connection log to see if the system connected properly to your SMS service provider. If the system connected properly you will see the "Connection online" log entry. The SMS connection logs can be found in the following directory in Windows: C:\Program Files\Ozeki\Data\Logs\Connections\. In this Event tab of the SMPP connection's details page, you can see a preview of the log. This page contains the last 100 log entries. Note that the SMPP log files are rotated to save disk space.How to view the SMPP connection log:
- Open the SMPP connection's details page
- Click on the Events tab
- Click on the eye icon next to the Events title
- Copy the file name next to the Events title
- Open notepad
- Paste the filename into the File/Open dialog in notepad
- Click OK to open the SMPP log file
- Use F3 to find the date you are interested in
- Search for "ERRO" to find errors in the log
Send a test SMS message
Once your connection is connected, you can check to see if it is ready to deliver SMS messages by sending a test SMS. To send a test SMS message, you need to open the Test tab, and you need to enter the phone number and message text. It is recommended to provide the phone number in international format. This means the phone number should start with a plus sign followed by a country code. If your local phone number starts with a 0, it is likely that you will need to drop the 0 prefix. For example if your UK phone number 07958663698, you would send the test SMS to +447958663698.How to send a test SMPP message:
- Navigate to the SMPP connection's details page
- Select the Test tab
- Enter the recipient phone number
- Make sure the phone number is in international format
- Enter the message text
- Make sure the message text is less than 160 characters
- Click on the Send button
- Check the SMPP logs
You might ask why should the message text be less than 160 characters. This is because GSM system was designed to send 160 character long text messages. If a message is longer, it will be split into multiple message segments, and will be delivered in more than one SMS message.
After the message is successfully sent, you should check the SMPP logs. The SMPP logs will reveal the low level SMPP messages, that are used to pass the message content to the SMS service provider. These messages are also called an SMPP PDU (SMPP protocol data unit). If there is a problem with message submission, your SMS service provider will ask for the SMPP logs. In this case, you need to send the SMPP PDUs to them. For every SMS submission, two SMPP PDUs will appear in the log. One is the SMPP SUBMIT_SM pdu, which passes the message to the SMS service provider's over, and the SMPP SSUBMIT_SM_RESP, which returns a reference ID, that can be used for tracking a message, and for finding the delivery reports returned to you when the message is delivered to the recipient handset.
SMPP protocol specification
The SMPP protocol specification can be used to understand each SMPP PDU you see in the logs. You will see, that there are several operations in this protocol specifications. For example there is an operation for keeping the SMPP connection alive using keep alive messages, and there are multiple operations for submitting and receiving SMS messages and SMS delivery reports.SMPP protocol specification:
SMPP protocol versions
The SMPP standard is an evolving protocol. The first widely adopted version was v3.3. Currently the most common version you will find is v3.4, but there is also a newer version v5.0 which is rarely used in SMS services.
SMPP 3.3 the oldest version supports GSM SMS messages only. It generates an immediate response for each message sent. In most cases this version is not supported over SSL connections. The problem with SMPP 3.3 is that it requires two SMPP links: an SMPP transmitter and an SMPP receiver link to the SMS service provider. When you setup an SMPP v3.3 link in Ozeki SMS Gateway, you will have to create two SMPP connections, and configure on as SMPP transmitter and the other as SMPP receiver.
The SMPP 3.4 protocol is similar to SMPP 3.3, but it has a strong advantage: it allows you to send and receive SMS messages over a single TCP/IP link. In Ozeki SMS gateway you will only have to setup on SMPP client connection if you wish to use this protocol. SMPP v3.4 also adds optional Tag-Length-Value (TLV) parameters, to the SMS message, which allows the user to work with non-GSM SMS technologies, such as SMS messaging in CDMA networks.
SMPP 5.0 is the latest version of SMPP. It extends v3.4 by adding support for cell broadcasting, smart flow control. Not many SMS service providers use this protocol. We recommend you to setup SMPP v3.4 connections in Ozeki SMS gateway.