Example deliver_sm request and response messages

The following show examples of deliver_sm request and deliver_sm_resp response messages.

Note: Although OpenMarket might not use or support a particular parameter in an operation, that parameter must still be passed using a 0x00 (NULL) value.

MO from a UK VMN to a UK VMN

An MO is created with these parameters:

Example deliver_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x0000005d
 
Command ID
0x00000005
DELIVER_SM
Command Status
0x00000000
 
Sequence Number
0x00000001
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x01
VMN
Source Address NPI
0x01
 
Source Address
0x34343737303039303037363500
447700900765
Destination Address TON
0x01
 
Destination Address NPI
0x01
 
Destination Address
0x34343737303039303037353000 
447700900750
ESM Class
0x00
 
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
0x00 
180105120000004+
Registered Delivery
0x00
 
Replace If Present Flag
0x00
 
Data Coding
0x00
Defaulted to GSM
Short Message Default Message ID
0x00
 
Short Message Length
0x04
 
Short Message
48656c70
Help
TLV 0x001E, Receipted Message ID
Tag: 0x001e
Length: 0x0018
Value: 0x313631385A2D30313032472D323333334D2D3235464A4600
The OpenMarket MO ticket ID: 1618Z-0102G-2333M-25FJF

When generated, the following encoded file is created:

0000005d0000000500000000000000014f4d5634000101343437373030393030373635000101343437373030393030373530000000000000000000000448656c70001e0018313631385a2d30313032472d323333334d2d3235464a4600

Once submitted, an encoded deliver_sm_resp response is returned:

00000010800000050000000000000001

The response contains these parameters:

Example submit_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000010
 
Command ID
0x80000005
DELIVER_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x00000001
 
PDU Body:
Message ID
0x00000000

 

First part of a multi-part MO from a US phone number to a US short code. A mobile operator ID TLV is included

An MO is created with these parameters:

Example deliver_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x000000f6
 
Command ID
0x00000005
DELIVER_SM
Command Status
0x00000000
 
Sequence Number
0x1c9d466a
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x01
VMN
Source Address NPI
0x01
 
Source Address
0x34343737303039303037363500
12066613984
Destination Address TON
0x03
 
Destination Address NPI
0x00
 
Destination Address
0x313039353000 
10950
ESM Class
0x40
Indicating a user data header (UDH) is on the short message
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
0x00 
 
Registered Delivery
0x00
 
Replace If Present Flag
0x00
 
Data Coding
0x00
Defaulted to Latin-1 in this example
Short Message Default Message ID
0x00
 
Short Message Length
0x9f
 
Short Message
050003030201204c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742c2073656420646f20656975736d6f642074656d706f7220696e6369646964756e74207574206c61626f726520657420646f6c6f7265206d61676e6120616c697175612e20557420656e696d206164206d696e696d2076656e69616d2c20717569

User data header (UDH): 050003030201.

See Single and multipart messages for more information.

Message: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, qui

TLV 0x001E, Receipted Message ID
Tag: 0x001e
Length: 0x0018
Value: 0x373131385a2d30313130452d30303139312d353748364300
The OpenMarket MO ticket ID: 7118Z-0110E-00191-57H6C
OpenMarket TLV 0x2150, Mobile Operator ID
Tag: 0x001e
Length: 0x0002
Value: 0x017f
383

When generated, the following encoded file is created:

000000f600000005000000001c9d466a4f4d563400010131323036363631333938340003003130393530004000000000000000009f050003030201204c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e73656374657475722061646970697363696e6720656c69742c2073656420646f20656975736d6f642074656d706f7220696e6369646964756e74207574206c61626f726520657420646f6c6f7265206d61676e6120616c697175612e20557420656e696d206164206d696e696d2076656e69616d2c20717569001e0018373131385a2d30313130452d30303139312d35374836430021500002017f

Once submitted, an encoded deliver_sm_resp response is returned:

0000001080000005000000001c9d466a

The response contains these parameters:

Example deliver_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000010
 
Command ID
0x80000005
DELIVER_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x1c9d466a
 
PDU Body:
Message ID
0x00000000