Timeouts in A2P SMS Sending: How to Investigate Without Duplicating Messages
A timeout means no response was received in time; it does not necessarily mean the provider rejected the SMS. Learn how to record statuses, investigate ambiguous requests, and decide when to wait or retry.

A timeout describes a wait, not necessarily the outcome of the send
In an A2P SMS integration, a request may pass through several stages: an application calls a platform, the platform forwards the message to a provider, and responses or delivery receipts may arrive later. A timeout at any of these stages means the expected response was not received within the configured period. By itself, it does not confirm what happened at the remote stage.
If the application receives no HTTP response, the connection closes, or an SMPP response is missing, the provider may not have received the request, may have rejected it, or may have accepted it without the confirmation reaching the application. How to interpret this depends on the API, protocol, where the timeout occurred, and the integration agreement.
That is why it is useful to distinguish the transport status—for example, a closed connection or an expired wait—from the message’s business or operational outcome. Do not automatically turn a communication issue into an instruction to resend.

Distinguish rejection, confirmed acceptance, and an uncertain outcome
For clear operations, record at least three outcomes. An explicit rejection is a documented response indicating that the request was not accepted at that point. Confirmed acceptance means the response expected by that integration was received; it does not necessarily mean delivery to the phone. An uncertain outcome occurs when it is not possible to determine whether the provider accepted the request.
In SMPP, a request such as SUBMIT_SM is associated with a SUBMIT_SM_RESP response. Multiple requests may be in flight, and their responses may arrive in a different order from the order in which they were sent. They must therefore be correlated using the appropriate reference, not just by time order. If a response times out, the connector may mark the message as failed and apply its retry policy; that local status alone does not prove what the remote endpoint received.
HTTP also has no universal rule for inferring SMS acceptance from any response or lack of response. Interpret the status code and body according to the API documentation and your agreement with the provider. Also, an acceptance confirmation is not the same as a delivery receipt; when available, a DLR should be understood according to its meaning and the limitations of the route.
- Explicit rejection: the documented response indicates that the request was not accepted.
- Confirmed acceptance: the confirmation defined by the integration was received; this alone does not prove receipt on the phone.
- Uncertain outcome: there is no conclusive response, or it cannot be safely correlated.

Design statuses that prevent impulsive resends
A state machine helps ensure that application logic does not treat every failure as equivalent. A practical scheme might include: created, sent, accepted, rejected, uncertain outcome, delivered, or final status reported. Adapt it to the statuses your provider actually exposes; do not assume all providers offer the same events.
When a timeout occurs, move the request to an uncertain outcome if there is not enough evidence to classify it as accepted or rejected. Keep this state separate from the socket, HTTP connection, or SMPP session status. This prevents a retry process from confusing a transport interruption with a confirmed rejection.
Define permitted transitions and who can trigger them. For example, a correlated response can resolve an uncertain request; a late response should not create a second request. Also record when the wait began and which policy was applied. There is no universal timeout period: it should be set according to the conditions documented and agreed with the provider.
- Do not automatically retry an uncertain request as if it were an explicit rejection.
- Allow a late response to update the original record when correlation is reliable.
- Set timeout limits and retry policies according to the integration and provider conditions, not universal values.
Correlate each attempt using persistent references
Assign each request a unique internal identifier and retain it from the start through resolution. If the API or provider supports a client reference, send it according to the documentation. If the provider returns a reference, store it alongside the internal identifier. Do not assume the two identifiers are interchangeable or that the client reference is preserved in every response.
In SMPP, match each response to its corresponding request using the fields and rules defined by the implementation. Since responses may arrive out of order, associating them with the first pending message or the most recent one can assign the wrong outcome.
Store each attempt separately and link it to the original logical request. This makes it possible to distinguish a retry from a new send, investigate late responses, and check whether more than one operation was generated for the provider.
- Internal identifier for the logical request.
- Client reference and provider reference, if the integration offers them.
- Attempt identifier, timestamp, and transport outcome.
- Response received or reason it could not be correlated.
Reconcile using the mechanisms offered by the integration
Before retrying an uncertain request, look for evidence about the original send. Depending on the capabilities documented by your provider, reconciliation may involve a late response, a callback, a status receipt, a status query, or an investigation by support. These options are not universal: check which ones are available, what reference they require, and which statuses they can return.
If there is no query or callback, use the operational channel agreed with the provider and provide the necessary correlation reference and timestamps. If you cannot reach a conclusion, retain the uncertain status rather than turning a lack of information into a claim of rejection.
Keep milestones separate. Receipt of a send response, acceptance by a platform, and a possible DLR are distinct events. A DLR may provide information about delivery status, depending on the route, but should not be described as independent verification that the recipient read the message.
- Check the documentation to see which queries, callbacks, or receipts are available.
- Use the appropriate reference and confirm what each returned status means.
- If the provider cannot resolve the issue, document the uncertainty and the operational decision made.
Decide whether to wait, investigate, or retry
Base the decision on available evidence, the API’s documented behavior, the agreed response window, idempotency, and the impact of a possible duplicate. If you are still within the agreed period, waiting may preserve the opportunity to receive the original response. If the period has expired but a query mechanism exists, investigate before creating another send.
Retry when there is enough evidence to conclude that the original operation was not accepted, or when the agreed policy explicitly allows you to accept the risk. If the outcome remains uncertain and idempotency is not guaranteed, a second send may duplicate the SMS. Do not assume an idempotency key has the same scope, duration, or effect across providers.
Idempotency is specific to each integration. For example, Bird documents its own behavior for matching requests with the same Idempotency-Key during a limited period; that guarantee must not be applied to other providers. Always check the scope, duration, and applicable contractual conditions before relying on it.
- Wait: the agreed response window has not expired, and the response may still arrive.
- Investigate: the outcome is uncertain, and a documented reconciliation method is available.
- Retry: there is evidence of non-acceptance or an explicit policy that accepts the risk of a duplicate.
- Do not assume idempotency: validate the guarantee for the specific API and key.
Operational procedure and minimum audit trail
When a timeout occurs, preserve the original record and avoid replacing it with a new attempt. First check the affected stage and expected response; then look for a late response or an available reconciliation mechanism. Classify the outcome based on evidence, apply the agreed policy, and record the decision.
The audit trail should make it possible to reconstruct the sequence without storing more personal data than necessary. Retain technical identifiers, timestamps, the protocol or endpoint used, transport status, relevant response, attempt number, and provider reference when available. Protect these records with access controls and a retention policy appropriate to your obligations.
For SMPP, adjust the in-flight request window, timeouts, and retries to the provider’s capacity and agreed conditions. The window determines how many SUBMIT_SM requests can be sent without waiting for their corresponding responses; configuring it without considering the integration can make pending responses harder to manage. Do not increase concurrency or retries automatically in response to timeouts.
- Record the logical request and each attempt separately.
- Log the send time, start and end of the wait, and observed outcome.
- Retain only the recipient or content data essential for operations.
- Document the evidence behind the decision to wait, investigate, or retry.
- Align SMPP windows, timeouts, and retries with the provider’s capacity and agreement.
Frequently asked questions
Does an HTTP timeout mean the SMS was not sent?
Not necessarily. It means the expected response was not received within the allotted time, but by itself it does not prove whether the provider received or accepted the request. Check the API’s documented semantics and reconcile the original send before retrying.
What does it mean if no SUBMIT_SM_RESP arrives in SMPP?
It means the connector did not receive the corresponding response within the configured period. The connector may mark the message as failed and apply its retry policy, but that local classification alone does not prove that the remote endpoint did not accept the request.
Should I always resend when a request times out?
No. First determine whether the outcome is confirmed or still uncertain. Look for a late response or use the query, callback, or support mechanisms available in that integration. Retry based on evidence and the agreed policy, taking the risk of a duplicate into account.
Does an idempotency key prevent duplicates with every provider?
No. Idempotency depends on the API and its conditions, including scope, duration, and which requests it considers matching. Check your integration’s documentation and contract; do not generalize one provider’s guarantee to another.
Does a DLR confirm that the recipient received the SMS?
A DLR reports a status according to the route and integration, and should be interpreted in line with its documented meaning. On its own, it is not independent verification that the message reached the device or was read.
Sources consulted
- SMPP protocol: connector configuration and response handlingAdobe Experience League
- HTTP Semantics (RFC 9110)IETF
- Avoid sending the same SMS twiceBird