Ozeki NG SMS Gateway

Mobile message type specification - Binary SMS XML
(SMS message type, SMS message format)


To be able to send a binary XML SMS, you need to have a thorough knowledge of the structure of an SMS message. You need to be familiar with the following: Data Coding Scheme (TP-DCS), Protocol Identifier (TP-PID), User Data Header (UDH) and User Data (UD).
Also, you need to be able to encode different message types into WBXML format. This is usually different with each message type.
In the SMS message to be sent, the values mentioned above have to specified as hexadecimal numbers.

Why it is convenient

This message type allows you to send all types of binary messages.

Message type


The format of the message data is:

    <pid>PID in hexadecimal format (1 byte)</pid>
    <dcs>DCS in hexadecimal format (1 byte)</dcs>
    <udh>UDH in hexadecimal format</udh>
    <ud>UD in hexadecimal format</ud>

Take a look at an example (e.g., Wap Push):


Interpretation of the string of characters between the UDH tags:

06: User Data Header length (6 bytes follow)
05: UDH IE Identifier: Port numbers
04: UDH Port number IE length (4 bytes follow: 2 for Destinating port, 2 for Originating port)
0B84: Destinating port
23F0: Originating port

Interpretation of the string of characters between the UD tags:

EA: Transaction ID
06: PDU type (push)
01: Length of header (1 byte follows)
AE: Content-type: application/vnd.wap.sic
These are followed by the XML of the WAP Push message type encoded into WBXML format, following the respective encoding rules. This is the Wap Push message:

    <indication href="http://wap.ozeki.hu" action="signal-high">

SQL example:

If you use the Database user to send and receive SMS messages with Ozeki NG - SMS Gateway, you can use the following SQL statement to send a Binary XML message, which is a WAP PUSH Service Indication message:

insert into ozekimessageout (receiver,msgtype,msg,status) values ("+36205222245",