Example submit_sm request and response messages

The following show examples of submit_sm request and submit_sm_resp response messages with Automated Originator Selector and without. The Command Length and Message Length fields shown here are for display purposes only. The lengths of these fields are determined when the request message is generated.

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.

MT from a short code with a validity period, a request for a final delivery receipt, and no OpenMarket custom TLVs

An MT is created with these parameters:

Example submit_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x0000006b
 
Command ID
0x00000004
SUBMIT_SM
Command Status
0x00000000
 
Sequence Number
0x0005c4a3
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x03
Short code
Source Address NPI
0x01
 
Source Address
0x383033363200
80362
Destination Address TON
0x01
 
Destination Address NPI
0x01
 
Destination Address
0x038313233343530303130303000 
812345001000
ESM Class
0x00
 
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
03138303130353132303030303030342b00 
180105120000004+
Registered Delivery
0x01
 
Replace If Present Flag
0x00
 
Data Coding
0x00
Defaulted to GSM
Short Message Default Message ID
0x00
 
Short Message Length
0x25
 
Short Message
0x5265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e
Reply Yes to opt in or No to opt out.

When generated, the following encoded file is created:

0000006b00000004000000000005c4a34f4d5634000301383033363200010138313233343530303130303000000000003138303130353132303030303030342b0001000000255265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e

Once submitted, an encoded submit_sm_resp response is returned:

0000002880000004000000000005c4a3303131385a2d30313032362d313933344c2d303544544400

The response contains these parameters:

Example submit_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000028
 
Command ID
0x80000004
SUBMIT_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x0005c4a3
 
PDU Body:
Message ID
303131385a2d30313032362d313933344c2d303544544400
0118Z-01026-1934L-05DTD

MT from a US short code with an OpenMarket program ID TLV

An MT is created with these parameters:

Example submit_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000069
 
Command ID
0x00000004
SUBMIT_SM
Command Status
0x00000000
 
Sequence Number
0x0005cdf49
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x03
Source Address NPI
0x01
 
Source Address
0x353637383900
56789
Destination Address TON
0x01
 
Destination Address NPI
0x01
 
Destination Address
0x313230363535353132333400 
12065551234
ESM Class
0x00
 
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
0x00
 
Registered Delivery
0x01
 
Replace If Present Flag
0x00
 
Data Coding
0x00
Defaulted to GSM
Short Message Default Message ID
0x00
 
Short Message Length
0x26
 
Short Message
0x66c69676874204133383720686173206265656e2064656c61796564206279203120686f7572
Flight A387 has been delayed by 1 hour

When generated, the following encoded file is created:

0000006b00000004000000000005c4a34f4d5634000301383033363200010138313233343530303130303000000000003138303130353132303030303030342b0001000000255265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e

Once submitted, an encoded submit_sm_resp response is returned:

0000002880000004000000000005df49303131385a2d30313032362d313933344c2d303544544400

The response contains these parameters:

Example submit_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000028
 
Command ID
0x80000004
SUBMIT_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x0005df49
 
PDU Body:
Message ID
303131385a2d30313032362d313933344c2d303544544400
0118Z-01026-1934L-05DTD

MT with a message language of Chinese and containing an emoticon

An MT is created with these parameters:

Example submit_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x0000003e
 
Command ID
0x00000004
SUBMIT_SM
Command Status
0x00000000
 
Sequence Number
0x000609ea
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x05
alphanumeric
Source Address NPI
0x00
 
Source Address
0x5445535400
TEST
Destination Address TON
0x01
 
Destination Address NPI
0x01
 
Destination Address
0x03836313437313131313232323200 
8614711112222
ESM Class
0x00
 
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
0x00 
180105120000004+
Registered Delivery
0x01
 
Replace If Present Flag
0x00
 
Data Coding
0x08
UCS2 (Message encoded in UTF-16)
Short Message Default Message ID
0x00
 
Short Message Length
0x25
 
Short Message
0x4f60597dd83dde00
你好☺

When generated, the following encoded file is created:

0000006b00000004000000000005c4a34f4d5634000301383033363200010138313233343530303130303000000000003138303130353132303030303030342b0001000000255265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e

Once submitted, an encoded submit_sm_resp response is returned:

000000288000000400000000000609ea303131385a2d30313032362d313933344c2d303544544500

The response contains these parameters:

Example submit_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000028
 
Command ID
0x80000004
SUBMIT_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x0005c4a3
 
PDU Body:
Message ID
303131385a2d30313032362d313933344c2d303544544500
0118Z-01026-1934L-05DTE

MT with Automated Originated Selection an OpenMarket custom TLVs

An MT is created with these parameters, which also includes two custom TLVs.

Example submit_sm PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000080
 
Command ID
0x00000004
SUBMIT_SM
Command Status
0x00000000
 
Sequence Number
0x00058784
 
PDU Body:
Service Type
0x4f4d563400
OMV4
Source Address TON
0x00
Source Address NPI
0x0000
 
Source Address
0x01

 

Destination Address TON
0x01
 
Destination Address NPI
0x01
 
Destination Address
0x3336313233343536373800 
3612345678
ESM Class
0x00
 
Protocol ID
0x00
 
Priority Flag
0x00
 
Schedule Delivery Time
0x00
 
Validity Period
0x00 
180105120000004+
Registered Delivery
0x01
 
Replace If Present Flag
0x00
 
Data Coding
0x00
Defaulted to GSM in this example.
Short Message 
Default Message ID
0x00
 
Short Message Length
0x25
 
Short Message
0x5265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e
Reply Yes to opt in or No to opt out.
TLV 0x2168, Note 1
Tag: 0x2168
Length: 0x000f
Value: 0x546869732069732061206e6f746531
This is note1
TLV 0x03031, Note 2
Tag: 0x3031
Length: 0x0015
Value: 0x5468697320697320616e6f74686572206e6f74652e
This is another note

When generated, the following encoded file is created:

000000800000000400000000000587844f4d56340000000001013336313233343536373800000000000001000000255265706c792059657320746f206f707420696e206f72204e6f20746f206f7074206f75742e2168000f546869732069732061206e6f746531303100155468697320697320616e6f74686572206e6f74652e

Once submitted, an encoded submit_sm_resp response is returned:

00000028800000040000000000058784303131385a2d30313032362d31373530422d333735483500

The response contains these parameters:

Example submit_sm _resp PDU parameters

Parameter

Value

Description

PDU Header:
Command Length
0x00000028
 
Command ID
0x80000004
SUBMIT_SM_RESP
Command Status
0x00000000
No Error
Sequence Number
0x00058784
 
PDU Body:
Message ID
303131385a2d30313032362d31373530422d333735483500
0118Z-01026-1934L-05DTE