Connect
Telrioz speaks SMPP 3.4 at smpp.telrioz.com, port 2775. You need an SMPP login: a system_id and password, linked to one Gateway that sets the Use case, Route, price and Sender ID of everything you send. Telrioz staff create and change logins: ask Support or your Account Manager for your first login, and later for more logins, binds or speed. Your account's Super Admin sees each login's password in the dashboard, in Developers → Credentials. Telrioz never emails it.
Before your first bind, ask for your IP addresses. A login binds only from its Allowed IPs, and a new login has none, so every bind gets ESME_RBINDFAIL until you add one. In the dashboard, open Settings → Security and choose Request a change with 1 to 10 IPv4 addresses or networks, such as 203.0.113.24 or 203.0.113.0/28. Telrioz adds them to every SMPP login of your account.
Settings
| Setting | Value | Notes |
|---|---|---|
| host and port | smpp.telrioz.com:2775 | Plain TCP, SMPP 3.4. |
| system_id / password | From your SMPP login | Telrioz staff create and change logins: ask Support or your Account Manager. Your account's Super Admin sees each password in the dashboard, in Developers → Credentials. The password is 1 to 8 characters, the SMPP 3.4 limit. A wrong system_id or password gives ESME_RINVPASWD. |
| system_type | Any, or empty | We read it and ignore it. It does not change how you bind. |
| bind types | bind_transmitter, bind_receiver, bind_transceiver | Transmitter sends texts. Receiver gets delivery receipts. Transceiver does both. A submit_sm on a receiver bind is refused with ESME_RINVBNDSTS and the session closes. |
| source TON / NPI | Alphanumeric sender: TON 5, NPI 0. Numeric sender: TON 1, NPI 1 | An alphanumeric sender (one with a letter in it) is always sent on as TON 5, NPI 0. For a numeric sender, set TON 1, NPI 1 yourself: we do not rewrite it. We do not refuse a message for its source TON/NPI. |
| destination TON / NPI | TON 1, NPI 1 | Send the number as international digits, such as 628120000001. We also accept +62..., and 08... (8 to 15 digits in all), and rewrite them to 62... with TON 1, NPI 1. |
| data_coding | 0x00 GSM 7-bit (default), 0x08 UCS-2 | With 0x00 we read the text as GSM 7-bit. Use 0x08 for text with characters outside GSM 7-bit, such as emoji or Chinese. |
| long messages | UDH (esm_class 0x40) or sar_msg_ref_num, sar_total_segments and sar_segment_seqnum | Send each part as its own submit_sm. A UDH in the text carries a reference, a total and a part number (8-bit or 16-bit reference), or you can use the sar_* TLVs. Each part is accepted, and charged, as its own segment. You can also put the long text in the message_payload TLV. |
| registered_delivery | 0, 1 or 2 | 0 sends no receipt. 1 sends a receipt for every final result. 2 sends a receipt only when the message fails. Receipts come as deliver_sm on a receiver or transceiver bind. |
| window size | 64 | Up to 64 submit_sm can wait for their response on one session. We stop reading until a response goes out, so wait for responses before you send more. |
| enquire_link | 30 s | Any PDU from you counts as traffic. After 30 s without one we send enquire_link. Answer it with enquire_link_resp. You can send your own enquire_link at any time. |
| enquire_link response | 60 s | If you do not answer our enquire_link within 60 s, we close the session. |
| inactivity | 300 s | We close a session that sends nothing for 300 s, the longest silence we allow. |
| bind timeout | 30 s | Bind within 30 s of connecting, or we close the connection. |
| binds per login | The number set on your login (default 1) | Each bound session counts, of any bind type. When you reach the number, the next bind gets ESME_RBINDFAIL. Unbind or close a session to free one. |
| Allowed IPs | Set by Telrioz on your request | Binds are accepted only from these addresses and networks. A login with none cannot bind, and a new login has none: ask for your IPs in Settings → Security → Request a change (1 to 10 IPv4 addresses or networks); Telrioz adds them to every SMPP login of your account. A bind from another address gets ESME_RBINDFAIL. |
Keep the session alive
- When your session has sent nothing for 30 s, Telrioz sends
enquire_link. Answer it withenquire_link_resp. - If you do not answer within 60 s, Telrioz closes the session.
- 300 s without any PDU from you is the ceiling: the session is closed.
- You can send your own
enquire_linkat any time; it counts as traffic.
Reconnect and bind again after a close. Receipts that could not be delivered while you were away wait for you: see Delivery receipts.
Example
The Python example on the right uses smpplib. It binds as a transceiver, sends one text with registered_delivery=1, and prints the submit_sm_resp and the receipt. Run it from an address in your login's Allowed IPs:
pip install smpplib
SMPP_SYSTEM_ID=your_id SMPP_PASSWORD=your_pw SMPP_SENDER=ACME \
python smpp_send.py 6281234567890 "Your order has shipped."Next: Send, Delivery receipts, Encodings and Errors.