Module: SmsRu::Statuses
- Defined in:
- lib/sms_ru/statuses.rb
Overview
Delivery status codes returned by /sms/status and carried in ‘sms_status` webhooks. See sms.ru/api/status for the authoritative list.
Constant Summary collapse
- NOT_FOUND =
The message id was not found.
-1 # Accepted and waiting in the SMS.ru queue.
- QUEUED =
Accepted and waiting in the SMS.ru queue.
100- SENT_TO_OPERATOR =
Being transmitted to the mobile operator.
101- IN_TRANSIT =
Handed to the operator; in transit to the handset.
102- DELIVERED =
Delivered to the handset.
103- EXPIRED =
Not delivered: the message’s time-to-live expired.
104- DELETED =
Not delivered: deleted by the operator.
105- PHONE_FAILURE =
Not delivered: handset malfunction.
106- UNKNOWN_FAILURE =
Not delivered: unknown reason.
107- REJECTED =
Not delivered: rejected by the operator.
108- READ =
Delivered and read (where the channel reports it).
110- NO_ROUTE =
Not delivered: no route to the number.
150- PENDING =
Codes for a message still on its way (no final outcome yet).
[QUEUED, SENT_TO_OPERATOR, IN_TRANSIT].freeze
- FAILED =
Codes for a message that will not be delivered.
[EXPIRED, DELETED, PHONE_FAILURE, UNKNOWN_FAILURE, REJECTED, NO_ROUTE].freeze