ESME_RINVDFTMSGID in SMPP
What is ESME_RINVDFTMSGID?
ESME_RINVDFTMSGID (Error Code: 0x00000063) is an SMPP error indicating that the sm_default_msg_id
field in a submit_sm
request contains an invalid or unsupported value.
Possible Causes
- The
sm_default_msg_id
field contains a value that is not recognized by the SMSC. - The message ID used is not defined in the SMSC's default message table.
- The SMSC does not support default message IDs.
- The field is incorrectly formatted or contains an out-of-range value (valid range:
0x00
to0xFF
).
When Does It Happen?
This error occurs when an ESME submits a message using an invalid or unsupported default message ID in the sm_default_msg_id
field.
Example SMPP PDU Transaction
Incorrect submit_sm
PDU (Invalid Default Message ID)
0000003F (Length) 00000004 (Command ID for submit_sm) 00000000 (Command Status) 00000001 (Sequence Number) 00 (Service Type) 01 (Source Address TON - International) 01 (Source Address NPI - ISDN) 31323334 00 (Source Address: "1234") 01 (Destination Address TON - International) 01 (Destination Address NPI - ISDN) 39383736 00 (Destination Address: "9876") 00 (ESM Class) 00 (Protocol ID) 00 (Priority Flag) 00000000 (Schedule Delivery Time - Not Set) 00000000 (Validity Period - Not Set) 00 (Replace If Present Flag) FF (Invalid Default Message ID) 0005 (Message Length) 48656C6C 6F (Message: "Hello")
Response PDU (submit_sm_resp
) with ESME_RINVDFTMSGID
00000010 (Length) 80000004 (Command ID for submit_sm_resp) 00000063 (Command Status - ESME_RINVDFTMSGID) 00000001 (Sequence Number)
Issue: The sm_default_msg_id
field contains an invalid or unsupported value, causing the SMSC to reject the request.
How to Solve It?
- Set
sm_default_msg_id
to0x00
if not using predefined messages. - Ensure that the value is within the valid range (
0x00
to0xFF
). - Check with the SMSC provider for supported default message IDs.
- Use a valid text message instead of relying on a predefined message ID.
If the issue persists, review SMPP logs and verify the value of sm_default_msg_id
in the request.