Licensed carrier in Costa Rica · Resolution RCS-251-2019
SMS and messaging

Two-Way SMS: Sender Identity, Inbound Routing and Opt-Out Handling

Designing SMS that customers can reply to: how to choose a sender identity, route inbound messages to the right system and enforce opt-outs.

Most SMS programs start as one-way broadcasts: a confirmation, a reminder, a code. The moment a customer replies, the system has to handle traffic flowing in the opposite direction, and many platforms were never designed for that. This article covers the three decisions that make two-way SMS work: who the message appears to come from, where replies go, and how opt-outs are enforced.

Why two-way changes the design

Outbound SMS is a fire-and-track problem: submit the message, wait for the delivery receipt, record the result. Two-way messaging adds a mobile-originated (MO) leg that arrives whenever the customer chooses, sometimes minutes later, sometimes days later. Your platform now needs an always-available endpoint for inbound traffic, a way to tie a reply to the conversation that prompted it, and rules for what happens when a message matches nothing.

This matters for appointment confirmations (“reply 1 to confirm”), delivery coordination, support handoffs and surveys. In each case, a reply that disappears is worse than no reply option at all, because the customer believes they acted.

Choosing the sender identity

The sender identity determines whether a reply is even possible.

  • Alphanumeric sender IDs show a brand name instead of a number. They build recognition, but the recipient cannot reply to them. Use them only for strictly one-way traffic, and say so in the message if you expect action through another channel.
  • Long numbers look like a regular phone number and support replies natively. They suit conversational flows and let customers save the contact. Using the same number consistently for a given use case builds trust and reduces confusion.
  • Short codes and other formats depend on market availability and carrier support. Confirm with your carrier what is supported for your destination countries before designing around them.

A common pattern is to separate identities by purpose: one sender for transactional notices, another for conversational flows. That keeps replies to a one-off alert from landing in a queue meant for active conversations.

Routing inbound messages to the right place

Inbound messages typically reach your application in one of two ways: as SMPP deliver_sm PDUs on a persistent bind, or as HTTP callbacks to a webhook. Either way, design for these realities:

  • Correlation. SMS has no thread ID. Match replies by the number pair (customer number and your sender number) plus the most recent open context. If one sender number serves several flows, a reply can be ambiguous; separate numbers per flow reduce that risk.
  • Keywords and free text. Parse expected keywords first, tolerate case and accents, and route everything else to a human queue or a clear fallback reply.
  • Idempotency. Retries can deliver the same inbound message more than once. Deduplicate before triggering business actions such as cancelling an order.
  • Availability. If your webhook is down or your bind drops, inbound messages may be retried, queued or lost depending on the platform. Monitor the inbound path as seriously as the outbound one.

Opt-out handling should live in the sending layer, not in individual campaigns. When a customer sends a stop keyword, the number goes onto a suppression list that every outbound job checks before submission.

In Costa Rica, customers will write in Spanish, English or both, so recognize variants such as STOP, BAJA, ALTO and CANCELAR. Send a single confirmation, log the event with a timestamp and the original message, and provide a path back in. Keep transactional and marketing consent separate: opting out of promotions should not silently block a security alert the customer needs.

Testing and operating the loop

Test the full round trip on real handsets across the networks your customers use: send, reply, confirm the reply reached the right handler, and verify the response. Repeat after every change to routing rules or sender configuration. In production, alert on inbound volume dropping to zero during hours when replies are normally expected; it is often the first sign of a broken callback.

Where Ring fits

Ring is a SUTEL-licensed carrier (RCS-251-2019) operating a 100% IP network since 2019, with direct SNT interconnection and its own ASN (AS274239). Through smpp.cr, Ring provides an SMS API for outbound and inbound messaging, with support for SMPP and application integrations. For voice and numbering alongside your messaging, including +506 4600-XXXX numbers and coverage in 70+ countries, see sip.cr. Ring’s engineering team, based on POPs in San José and Virginia, provides 24/7 support for production traffic.

← Back to the blog

Want to build on a better network?

Talk to a sales engineer and start today.

Talk to sales