IOSOR Learn
SMPP Submit SM ESM Class Routing Gate
Validate esm_class bitmask handling across carriers to prevent misrouted messages and trigger partner comparison for verified SMPP route selection.
Lead Telecom & Routing Architect · Lausanne, CH
Operators validate esm_class bitmask handling across carriers to prevent misrouted messages and trigger partner comparison for verified SMPP route selection. The esm_class field controls message mode, type, and delivery receipt requests; misinterpretation causes silent drops or wrong DLR paths.
ESM Class Bitmask Structure
Bits 0-1 define message mode: datagram (00), transaction (01), store-and-forward (10). Bits 2-3 indicate message type: default (00), delivery receipt (01), SME-originated ack (10), manual ack (11). Bits 5-7 control UDHI, reply path, and reserved flags. Carriers often ignore reserved bits or map transaction mode to datagram silently.
Carrier-Specific Deviations
Tier-1 carriers may treat bit 2 (delivery receipt) as mandatory for MT, while others drop messages with bit 2 set on MO. Some gateways clear UDHI (bit 6) on concatenated SMS, breaking reassembly. Test each corridor with 0x00, 0x01, 0x04, 0x40, 0x44, 0x80 combinations and log Submit SM resp + DLR correlation.
During pre-flight verification, validate that automatic failover thresholds trigger deterministic rerouting without duplicating outbound segments or exhausting retry backoff budgets under peak regional load.
DLR Receipt Correlation
Match message_id from Submit SM resp to DLR receipted_message_id. Verify esm_class in DLR matches original request: 0x04 for SMSC receipt, 0x08 for SME ack. Mismatches indicate carrier rewrites or intermediary stripping. Capture pcap on both bind sides for 1000-message samples per route.
Webhook Latency & Payload Integrity
Measure webhook delivery latency from DLR receipt to application endpoint. Validate payload includes original esm_class, message_id, and final status. Reject routes where webhook drops UDHI flag or truncates message_id > 64 chars. Latency > 2s p95 disqualifies route for OTP/Verify flows.
Sender & Template Gate Interaction
Confirm esm_class handling is consistent across alphanumeric sender, short code, and long code origins. Some carriers force datagram mode for alphanumeric senders regardless of submitted bits. Template-registered routes may override esm_class bits for compliance. Test matrix: 3 sender types × 6 esm_class values × 2 DLR request flags.
Start with IOSOR
Compare verified SMPP routes for your corridor using the partner comparison tool: Compare SMPP routes. Cross-reference with service type routing, SMPP Data Coding Scheme Routing Gate for Encoding Compliance, and SMPP Registered Delivery Bitmask Routing Gate to build a complete Submit SM validation matrix.
IOSOR takeaway
Bits 0-1 define message mode: datagram (00), transaction (01), store-and-forward (10). Test matrix: 3 sender types × 6 esm_class values × 2 DLR request flags (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Submit SM Response Timeout vs DLR Gap: Route Reliability Audit
Separate submit_sm response timeouts from missing DLRs to pinpoint whether a route fails at bind, carrier handoff, or receipt callback, then compare partner routes.
- SMPP Submit_SM Response Timeout: Retry Classification and Failover Gate
Classify submit_sm timeouts as committed, ambiguous, or uncommitted before retrying, and gate failover on deterministic response telemetry from verified partner routes.
- SMPP Submit_SM Response Timeout: Retry vs Dedup Decision Gate
Decide retry, suppress, or fail over when submit_sm responses time out or arrive late — without duplicate deliveries, inflated cost, or broken DLR reconciliation.












