Ctrl K
ring2all.com

SMS Messages

Ring2All Platform β€” SMS Message History
Parent Module: SMS Messaging

---

Overview

SMS Messages displays the complete history of sent and received text messages, including delivery status, encoding analysis, and conversation threading.

Admin Panel β†’ SMS β†’ Messages

---

Message Fields

FieldDescriptionExample
Message UUIDUnique identifier for the message550e8400-e29b-41d4-a716-446655440000
DirectionInbound or outboundoutbound
From NumberSender phone number (E.164)+15551234567
To NumberRecipient phone number (E.164)+15559876543
ExtensionAssociated extension (if any)2001
BodyMessage text contentHello, this is a test message
EncodingCharacter encoding usedGSM7 or UCS2
SegmentsNumber of SMS parts1
StatusCurrent delivery statusdelivered
Provider NameWhich provider handledTwilio US
Created AtWhen message was queued2026-01-15 10:30:00
Sent AtWhen sent to carrier2026-01-15 10:30:01
Delivered AtWhen carrier confirmed2026-01-15 10:30:03
---

Message Status Values

StatusDescriptionIcon ColorFinal?
queuedWaiting in queue to be sent🟑 YellowNo
sendingCurrently being sent to carrierπŸ”΅ BlueNo
sentSent to carrier, awaiting confirmationπŸ”΅ BlueNo
deliveredCarrier confirmed delivery🟒 GreenYes
failedCarrier rejected the messageπŸ”΄ RedYes
undeliveredCould not be deliveredπŸ”΄ RedYes
rejectedBlocked by opt-out or settingsπŸ”΄ RedYes

Status Flow

Plaintext
queued β†’ sending β†’ sent β†’ delivered
                       β†˜
                         failed/undelivered

---

Message Encoding

SMS messages use different character encodings:

GSM-7 Encoding

  • Character limit: 160 per segment (153 for multipart)
  • Supported: Basic Latin letters, numbers, common punctuation
  • Example characters: A-Z, a-z, 0-9, @, $, _, etc.

UCS-2 Encoding

  • Character limit: 70 per segment (67 for multipart)
  • Required for: Unicode, emojis, non-Latin scripts
  • Example characters: δΈ­ζ–‡, Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ©, πŸ˜€, Γ±, ΓΌ, etc.

Encoding Detection

The system automatically detects encoding based on message content:

Plaintext
Message: "Hello World!"
  β†’ All GSM-7 chars
  β†’ Encoding: GSM7
  β†’ Max per segment: 160

Message: "Hello 🌍!"
  β†’ Contains emoji
  β†’ Encoding: UCS2
  β†’ Max per segment: 70

---

Multipart Messages (Segments)

Long messages are split into segments:

GSM-7 Segmentation

Message LengthSegments
1-160 chars1
161-306 chars2
307-459 chars3
460-612 chars4

UCS-2 Segmentation

Message LengthSegments
1-70 chars1
71-134 chars2
135-201 chars3
202-268 chars4
> ⚠️ Cost Note: Each segment is billed as a separate message by carriers.

---

Filtering Messages

The Messages page supports filtering by:

FilterOptions
DirectionAll, Inbound, Outbound
StatusAll, Delivered, Failed, Pending
Date RangeStart date to End date
Phone NumberSearch by from/to number
ExtensionFilter by extension number
---

Message Details View

Clicking a message shows full details:

Plaintext
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ MESSAGE DETAILS                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Direction:    Outbound                  β”‚
β”‚ From:         +15551234567              β”‚
β”‚ To:           +15559876543              β”‚
β”‚ Extension:    2001                      β”‚
β”‚ Status:       βœ“ Delivered               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Body:                                   β”‚
β”‚ "Hello! Your appointment is confirmed  β”‚
β”‚  for tomorrow at 3 PM."                 β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Encoding:     GSM7                      β”‚
β”‚ Characters:   67                        β”‚
β”‚ Segments:     1                         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Provider:     Twilio US                 β”‚
β”‚ Provider ID:  SM123456789...            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Timeline:                               β”‚
β”‚ β€’ Queued:     10:30:00                  β”‚
β”‚ β€’ Sent:       10:30:01                  β”‚
β”‚ β€’ Delivered:  10:30:03                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

---

Error Messages

Common failure reasons:

Error CodeDescriptionSolution
30001Queue errorCheck queue worker status
30003UnreachableInvalid phone number
30004Message blockedCarrier filtering
30005Unknown destinationNumber doesn't exist
30006LandlineCannot SMS to landlines
30007Carrier violationContent flagged as spam
30008Unknown errorCheck provider dashboard
21610Opt-outRecipient opted out
---

User Portal Messages

Extension users can view their messages in the User Portal:

Portal SMS Page

  • Only shows messages for their assigned SMS number
  • Can filter by direction and search
  • Can compose and send new messages
  • Real-time status updates

Sending from Portal

Plaintext
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ SEND NEW SMS                            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ From: +15551234567 (read-only)          β”‚
β”‚ To:   [+15559876543          ]          β”‚
β”‚ Message:                                β”‚
β”‚ [                                    ]  β”‚
β”‚ [                                    ]  β”‚
β”‚                                         β”‚
β”‚ GSM7 | 45 chars | 1 segment             β”‚
β”‚                                         β”‚
β”‚           [Cancel]  [Send]              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

---

Database Schema

Sql
-- Located in ss_cdr database
CREATE TABLE sms_messages (
    id              BIGSERIAL PRIMARY KEY,
    message_uuid    UUID DEFAULT gen_random_uuid(),
    domain_id       INTEGER NOT NULL,
    provider_name   VARCHAR(255),
    provider_message_id VARCHAR(255),
    direction       VARCHAR(10) NOT NULL,  -- 'inbound' or 'outbound'
    from_number     VARCHAR(20) NOT NULL,
    to_number       VARCHAR(20) NOT NULL,
    extension       VARCHAR(20),
    body            TEXT,
    encoding        VARCHAR(10),           -- 'GSM7' or 'UCS2'
    segments        INTEGER DEFAULT 1,
    status          VARCHAR(20) DEFAULT 'queued',
    error_code      VARCHAR(20),
    error_message   TEXT,
    price           DECIMAL(10,6),
    price_currency  VARCHAR(3),
    user_id         INTEGER,
    queued_at       TIMESTAMP DEFAULT NOW(),
    sent_at         TIMESTAMP,
    delivered_at    TIMESTAMP,
    failed_at       TIMESTAMP,
    created_at      TIMESTAMP DEFAULT NOW()
);

CREATE INDEX idx_sms_messages_domain ON sms_messages(domain_id);
CREATE INDEX idx_sms_messages_from ON sms_messages(from_number);
CREATE INDEX idx_sms_messages_to ON sms_messages(to_number);
CREATE INDEX idx_sms_messages_created ON sms_messages(created_at);

---

See also: SMS Settings | SMS Opt-outs | SMS Numbers

Glossary

TermDefinition
SMSShort Message Service (text messaging)
SMS Message LogsHistory of inbound and outbound messages
---

Lua Script Status ℹ️

Integration Module

ComponentStatusNotes
SMS Messagesℹ️ Configuration moduleMessages are processed by the main SMS handler script
AI Assistant

πŸ‘‹ Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?