- Product Manual
- Introduction
- Installation Guide
- User Guide
- Developers Guide
- Tutorials
- Autoresponding SMS Applications
- Application Port Numbers in SMS
- SMS response format
- Regular expressions
- ASP SMS API
- PHP SMS API
- HTTP SMS API
- SQL SMS API
- C# SMS API
- AJAX SMS API
- Delphi SMS API
- Cpp SMS API
- Java SMS API
- VB.NET SMS API
- Python SMS API
- Perl SMS API
- TCL/TK SMS API
- Coldfusion SMS API
- VB 6 SMS API
- Examples and Solutions
- Appendix
- SMS FAQ
- Feature list
- Commercial Information
- Search
Ozeki brings you outstanding
SMS Gateway technology. Use our SMS Server products on Windows,Linux, or Android
C# SMS API
Developers can use our C# SMS API to send SMS from C#.Net. The C# SMS API comes with full source code
PHP SMS API
The ozeki PHP SMS gateway software can be used to send SMS from PHP and to receive SMS usig PHP on your website
SMPP SMS Gateway
SMS service providers use our SMPP gateway solution, that offers a high performance SMPP server and SMPP client gateway with amazing routing capabilities
Application Port Numbers in SMS
On this page software developers can learn how to use application port numbers in SMS using the Ozeki SMS software.
Introduction
Application port numbers can be used in SMS messages to deliver a particular SMS to an application on a mobile phone. In most cases, applications on mobile phones are developed using Java technology (J2ME). The application port addressing feature of SMS messages allows specifying a source port and a destination port number for an SMS message (Figure 1).
Technical realization
The Ozeki SMS software supports the setting of both the source port and the destination port. You can perform this by putting the source port number after the sender phone number, and the destination port number after the receiver phone number. Put a colon between the phone number and the port number, without using any spaces.
Look at the example SMS below:
From: +44777888:1128
To: +441234567:3224
Message: Hello World
The source port number in the example is 1128, and the destination port number is 3224. The port number has to be specified as a decimal value. This value can range between 0 and 65535. The application port number information is transmitted in the user data header (UDH) of the SMS message.
Examples
For example to send a message to the hexadecimal destination port 3333, with the following user data header (UDH): 06050433330000, you should send a message to phone number: 13107. The reason for this, is that the decimal port number 13107
To check if your outgoing message contain a port number, you can enable low
level communication logging in the GSM Modem configuration form. After low
level communication logging is enabled, you will see the PDU, that is
submitted when a message is sent. The should contain a user data header field
(UDH), that includes the port number.
If you send the message: From: +44777888:1128, To: +441234567:3224, Message:
Hello World
through a GSM modem your message will contain the following user data header:
0605040C980468 (Figure 2).
In this PDU, the 06 is the length, 05 means port number, 04 means data length,
0C98 is the destination
port, that has a hexadecimal value of 3224, and 0468 is the source port, which
has a hexadecimal value of 1128.
Hints
This port number functionality is available from all Application Programming Interfaces (API) with the help of modifying the telephone numbers.
If you use a GMS modem, please note that port numbers work only if PDU mode is configured (PDU mode is the default configuration).
More information
- Tutorials for SMS solution developers
- Application Port Numbers in SMS
- Autoresponding SMS applications
- Regular expressions
- FAQ of the Ozeki NG SMS Gateway