> Source: https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/OtpTokenGenerators/SmsGenerator/

# OTP by SMS generator

Eighteen of the twenty-one OTP types send the code by **SMS**. They differ only in the operator, and in how the message is handed to it.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_OtpTokenGenerators_Sms_Edit.png)

## Message delivery modes

The eighteen types fall into two delivery modes, indicated by the type label:

- **SMS by email**: the label carries `SMTP`. The message is handed to the operator by email, which requires an [SMTP server](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/ConfigurationWorkPanel/SmtpServers/) and a sender address. Seven operators.
- **SMS by web call**: the label carries `HTTP` or `HTTPS`. The message is handed over by an API call to the operator, with its own credentials. Eleven operators.

The second mode is more direct: no mail server in the chain, hence one dependency fewer. The first requires no additional outbound network opening when SMTP is already in place.

## Routing through a site

The web-call types offer the **Authentication through a site** option, ticked by default: calls to the operator then leave from a given [site](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/SitesAndGateways/Sites/) rather than directly from the Mediation Controller. This option allows those calls to go through a controlled egress point, often the only one allowed to reach the Internet.

## Network flows

A **web call** type issues an outbound request to the operator's API, at an address written in the product:

| Operator | Address called |
|---|---|
| SFR | `www.dmc.sfr-sh.fr` |
| esendex | `www.esendex.com` |
| smsenvoi | `www.smsenvoi.com` |
| OVH | `eu.api.ovh.com` |
| SmsBox | `api.smsbox.fr` |
| envoyerSMS | `www.envoyersms.org` |
| Orange | `www.api-contact-everyone.fr.orange-business.com`, `contact-everyone.orange-business.com` |
| LeSMS | `www.lesms.com` (professional account: `www.lesmspro.com`) |
| CallR | `api.thecallr.com` |
| Orange Light CEO | `contact-everyone.orange-business.com` |
| MiPih | `sms.mipih.fr` |

The flow is **HTTPS, port 443**, whatever the protocol shown in the type label. Only **smsenvoi** can call over HTTP (port 80), when its SSL option is unticked and the call leaves from the Mediation Controller.

The source machine depends on the **Authentication through a site** option, ticked by default:

- **ticked**: the call leaves from the chosen [site](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/SitesAndGateways/Sites/), hence from that site's [Edge Gateway](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/SitesAndGateways/Gateways/), which relays it over HTTPS to the operator's address. The flow is to be opened from that Edge Gateway;
- **unticked**: the call leaves from the Mediation Controller, which must then reach the Internet itself.

> **Mediation Controller without Internet egress**
>
> On an architecture where the Mediation Controller has no Internet egress, unticking this option makes SMS delivery fail, the only symptom being codes that never arrive. Routing the call through an Edge Gateway that is already allowed out avoids opening a flow from the core of the platform.

> **Email types**
>
> Email types require no flow to the operator: the message goes to the [SMTP server](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/ConfigurationWorkPanel/SmtpServers/), which relays it. These types therefore have a network advantage when Internet egress is constrained.

## Operator-specific fields

The fields vary: account, login, password or API key, sender, message class. Special case: Orange over SMTP asks for no specific field; only the common blocks apply. A form that looks incomplete is therefore not necessarily so.

## Dependencies and exposure

> **Dependency on a paying third party**
>
> SMS makes authentication depend on a paying third party, with three consequences: a subscription whose exhaustion blocks logins with no signal in the console; the user's network coverage at the precise moment they connect; and a variable delivery delay, to be covered by the code's validity period (900 seconds by default). The sent-token counter, read-only in the form, allows consumption to be followed; a button resets it.

> **Number hijacking**
>
> SMS is also the channel most exposed to number-hijacking attacks. For privileged access, [TOTP](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/OtpTokenGenerators/TotpGenerator/) or a [FIDO2 key](https://docs.cyberelements.io/saas/hr/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessConditions/Fido2/) are preferable.

## Limits

- The **type cannot be changed** after saving: changing operator requires recreating the generator and reassociating it with its domains.
- A user **with no mobile number** in their profile cannot receive a code.
- The console does not test the operator credentials on save: a typing mistake only surfaces at the first authentication.

---

The details of the fields, operator by operator, are described in the [module reference](https://docs.cyberelements.io/saas/hr/Usage/AdminConsoleReference/OtpTokenGenerators/).
