SMS
AIDIR routes SMS by the recipient number.
Kazakhstan numbers (+7 7xx)
Cascade without Twilio:
- Mobizon (primary);
- SMSC.kz;
- SMS.ru.
International numbers (including the UAE)
Twilio first, then the same fallbacks: Mobizon → SMSC.kz → SMS.ru.
A +CC… number is accepted only when Twilio is fully configured on the platform (TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and a sender: TWILIO_FROM or TWILIO_MESSAGING_SERVICE_SID). Without that, a number such as +971… is rejected. Twilio credentials live in platform environment variables, not in the organisation cabinet.
Gateway
If the gateway is off, messages do not leave to the public network (test mode). If it is on, missing credentials for one provider are not treated as success: the next provider in the chain is tried.
What SMS is used for
- OTP and login 2FA;
- CRM templates: order confirmed, ready for pickup, invoice issued, payment reminder, deal follow-up;
- staff alerts (deal won/lost, budget risk, support SLA, low stock, document approval, ticket assigned) — only users who verified a phone and opted into SMS.
Templates
Variables: {{clientName}}, {{orderNumber}}, {{dealTitle}}, {{amount}}, {{dueDate}}, {{managerName}}, {{companyName}}, plus system tokens (code, ticketNumber, …).
The organisation may override copy (ru / kk / en / zh). OTP templates are locked.
Delivery status
History refreshes Mobizon, SMSC, and Twilio statuses (accepted, queued, delivered, undelivered, expired, rejected, …). An unknown provider code is “unknown”, not “delivered”.