ESME_RSERTYPDENIED in SMPP
What is ESME_RSERTYPDENIED?
ESME_RSERTYPDENIED (Error Code: 0x00000107) indicates that the requested service type is denied for the ESME by the SMSC.
Possible Causes
- The ESME does not have the required permissions to use the specified
service_type
. - The SMSC has restricted access to the requested service type.
- Policy enforcement by the SMSC prevents the use of the requested service type.
- Incorrect or unsupported
service_type
specified in thesubmit_sm
PDU.
When Does It Happen?
This error occurs when an ESME sends a message with a service_type
that is explicitly denied by the SMSC.
Example SMPP PDU Transaction
Request PDU (submit_sm
) Sent by ESME
0000003C (Length) 00000004 (Command ID for submit_sm) 00000000 (Command Status) 00000002 (Sequence Number) 63686172 67696E67 00 (Service Type: "charging") <-- Denied 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) 00 (Sm Default Msg ID) 0005 (Message Length) 48656C6C 6F (Message: "Hello")
Response PDU (submit_sm_resp
) Indicating ESME_RSERTYPDENIED
00000010 (Length) 80000004 (Command ID for submit_sm_resp) 00000107 (Command Status - ESME_RSERTYPDENIED) 00000002 (Sequence Number)
How to Solve It?
- Check with the SMSC provider to confirm allowed
service_type
values. - Ensure the ESME account has the necessary permissions for the requested service.
- Use a different, authorized
service_type
or leave it blank if optional. - Contact the SMSC provider for further assistance.
To resolve this issue, ensure that your ESME account is authorized to use the specified service type and that it is supported by the SMSC.