SMPP Global SMS
Example deliver_sm request and response messages
The Command Length and Message Length fields are shown here for display-purposes only. The lengths of these fields are generated when the request message is generated. See Receive a delivery receipt for more information about parameters.
Note: 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.
Delivery receipt for a failed delivery MT with OpenMarket TLVs
The following message describes a failed delivery that includes OpenMarket TLVs. TLVs will not be included in any delivery receipt unless you contact OpenMarket to set this up for MOs and Delivery Receipts.
Example deliver_sm PDU parameters
Parameter |
Value |
Description |
---|---|---|
PDU Header:
|
||
Command Length |
0x0000010A |
|
Command ID |
0x00000005 |
DELIVER_SM |
Command Status |
0x00000000 |
|
Sequence Number |
0x00000015 |
|
PDU Body:
|
||
Service Type |
0x4f4d563400 |
OMV4 |
Source Address TON |
0x01 |
Short code |
Source Address NPI |
0x01 |
|
Source Address |
0x313730333131313030303000 |
17031110000 |
Destination Address TON |
0x03 |
|
Destination Address NPI |
0x00 |
|
Destination Address |
0x313838383230313631383700 |
18882016187 |
ESM Class |
0x04 |
Final delivery receipt |
Protocol ID |
0x00 |
|
Priority Flag |
0x00 |
|
Schedule Delivery Time |
0x00 |
|
Validity Period |
0x00 |
|
Registered Delivery |
0x01 |
|
Replace If Present Flag |
0x00 |
|
Data Coding |
0x00 |
Default encoding for the account. |
Short Message Default Message ID |
0x00 |
|
Short Message Length |
0x75 |
|
Short Message |
0x69643A303131385A2D30313232492D32333039552D3537444742207375623A30303020646C7672643A303030207375626D6974646174653A31383031323232333039353720646F6E65646174653A30303030303030303030303020737461743A52454A45435444206572723A33373520746578743A |
id:0118Z-0122I-2309U-57DGB sub:000 dlvrd:000 submitdate:180122230957 donedate:000000000000 stat:REJECTD err:375 text: |
TLV 0x0427, Message State |
Tag: 0x08 |
Rejected |
TLV 0x001E, Receipted Message ID |
Tag: 0x001e Length: 0x0018 Value: 0x303131385A2D30313232492D32333039552D353744474200 |
The OpenMarket MT ticket ID: 0118Z-0122I-2309U-57DGB |
OpenMarket TLV 0x2153, Response Code |
Tag: 0x2153 Length: 0x0002 Value: 0x0177 |
375 |
OpenMarket TLV 0x2167, Response Code Description |
Tag: 0x2167 Length: 0x002f Value: 0x536F75726365206164647265737320697320626C6F636B6564206F72206973206E6F742070726F766973696F6E6564 |
Source address is blocked or is not provisioned |
When generated, the following encoded file is created:
0000010a0000000500000000000000154f4d563400010131373033313131303030300003003138383832303136313837000400000000000000007569643a303131385a2d30313232492d32333039552d3537444742207375623a30303020646c7672643a303030207375626d6974646174653a31383031323232333039353720646f6e65646174653a30303030303030303030303020737461743a52454a45435444206572723a33373520746578743a0427000108001e0018303131385a2d30313232492d32333039552d3537444742002153000201772167002f536f75726365206164647265737320697320626c6f636b6564206f72206973206e6f742070726f766973696f6e6564
Once submitted, an encoded deliver_sm_resp response is returned:
00000010800000050000000000000015
The response contains these parameters:
Example deliver_sm _resp PDU parameters
Parameter |
Value |
Description |
---|---|---|
PDU Header:
|
||
Command Length |
0x00000010 |
|
Command ID |
0x80000005 |
SDELIVER_SM_RESP |
Command Status |
0x00000000 |
No Error |
Sequence Number |
0x00000015 |
|
PDU Body:
|
||
Message ID |
0x00000000 |
|
Delivery receipt for a successful MT delivery without OpenMarket TLVs
The following message describes a successful MT delivery that did not include OpenMarket TLVs.
Example deliver_sm PDU parameters
Parameter |
Value |
Description |
---|---|---|
PDU Header:
|
||
Command Length |
0x000000cb |
|
Command ID |
0x00000005 |
DELIVER_SM |
Command Status |
0x00000000 |
|
Sequence Number |
0x00000025 |
|
PDU Body:
|
||
Service Type |
0x4f4d563400 |
OMV4 |
Source Address TON |
0x01 |
|
Source Address NPI |
0x01 |
|
Source Address |
0x393139323131373238363639000 |
919211728669 |
Destination Address TON |
0x05 |
|
Destination Address NPI |
0x00 |
|
Destination Address |
0x4F4D5445535400 |
OMTEST |
ESM Class |
0x04 |
Final delivery receipt |
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 |
Default encoding for the account. |
Short Message Default Message ID |
0x00 |
|
Short Message Length |
0x73 |
|
Short Message |
0x69643A303131385A2D303132334A2D30303532382D3134343655207375623A30303020646C7672643A303030207375626D6974646174653A31383031323330303532313420646F6E65646174653A31383031323330303532313420737461743A44454C49565244206572723A3420746578743A |
id:0118Z-0123J-00528-1446U sub:000 dlvrd:000 submitdate:180123005214 donedate:180123005214 stat:DELIVRD err:4 text: |
TLV 0x0427, Message State |
Tag: 0x02 |
Delivered |
TLV 0x001E, Receipted Message ID |
Tag: 0x001e Length: 0x0018 Value: 0x303131385A2D303132334A2D30303532382D313434365500 |
The OpenMarket MT ticket ID: 0118Z-0123J-00528-1446U |
When generated, the following encoded file is created:
000000cb0000000500000000000000254f4d56340001013931393231313732383636390005004f4d54455354000400000000000000007369643a303131385a2d303132334a2d30303532382d3134343655207375623a30303020646c7672643a303030207375626d6974646174653a31383031323330303532313420646f6e65646174653a31383031323330303532313420737461743a44454c49565244206572723a3420746578743a0427000102001e0018303131385a2d303132334a2d30303532382d313434365500
Once submitted, an encoded deliver_sm_resp response is returned:
00000010800000050000000000000025
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 |
0x00000015 |
|
PDU Body:
|
||
Message ID |
0x00000000 |
|