Ozeki 10 SMS Gateway
OZX connection OZX connection | SMPP PDU logging SMPP PDU logging

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.

Connection steps

  1. Open https://localhost:9515 in your browser
  2. Login using your username and password
  3. Click on "Add new connection"
  4. Select "SMPP client"
  5. Enter the smpp host name and port
  6. Enter the telephone number
  7. 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.

smpp client connection login details
Figure 1 - Logging in to Ozeki 10 for SMPP client connection setup

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.)

how to create a new smpp connection
Figure 2 - Create a new SMPP connection

Select the 'SMPP Client Connection' from the list and click on install next to it.

how to install an smpp connection
Figure 3 - Installing the SMPP connection

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:
  1. Select the General tab on the SMPP connection form
  2. Give a name to this SMPP connection
  3. Enter the SMPP hostname
  4. Enter the SMPP port number
  5. Provide your SMPP username
  6. Enter your password
  7. Assign a telephone number to this SMPP connection
  8. Click OK

Smpp connection security credetial setup
Figure 4 - Providing SMPP Client credentials

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:
  1. Open the SMPP connection's details page
  2. Click on the Events tab
  3. Click on the eye icon next to the Events title
  4. Copy the file name next to the Events title
  5. Open notepad
  6. Paste the filename into the File/Open dialog in notepad
  7. Click OK to open the SMPP log file
  8. Use F3 to find the date you are interested in
  9. Search for "ERRO" to find errors in the log

View smpp connection logs
Figure 5 - View the SMPP connection 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:
  1. Navigate to the SMPP connection's details page
  2. Select the Test tab
  3. Enter the recipient phone number
  4. Make sure the phone number is in international format
  5. Enter the message text
  6. Make sure the message text is less than 160 characters
  7. Click on the Send button
  8. 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.

Send a test sms over an smpp connection
Figure 6 - Sending a test 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 submit sm pdu example in the smpp log
Figure 7 - SMPP SMS submit result in the logs

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:

Download: smpp-protocol-specification-v3.4.pdf

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.

Copyright © 2000- - Ozeki Ltd | info@ozeki.hu
Home > Mobile networks > SMPP connection
Legal | Privacy | Terms of use | 7617 | | Login