We operate an all-in-one SMS gateway: you supply only a SIM card, we provide the GSM terminal in our telehouse, the Gammu software and a MySQL database. Your application (e-shop, monitoring, invoicing, user verification…) connects directly to the database on the host terminal.sms3.cz and sends and receives SMS with nothing more than SQL queries. No AT commands, no server of your own, no complicated API.
your application → MySQL on terminal.sms3.cz (your own separate database)
database ↔ Gammu-smsd running at our site on your GSM terminal with your SIM
terminal ↔ mobile network (outgoing and incoming SMS)
Sending = you insert a row into the outbox table. You read incoming messages from the inbox table. The sending and delivery status can be found in sentitems, the gateway status (signal, network) in phones.
your own MySQL database on terminal.sms3.cz (separated from other customers)
access credentials (user + password) and a whitelist of your IP addresses
the tables outbox, inbox, sentitems, phones (the standard Gammu-smsd schema)
terminal and SIM looked after 24/7 with status monitoring
outboxINSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID)
VALUES ('+420777123456', 'Your order has been dispatched.', 'MyEshop');
DestinationNumber in international format +420…
TextDecoded = the message text (UTF-8; accented characters reduce the limit from 160 to 70 characters per part)
CreatorID is mandatory (newer Gammu versions require it) — any identifier of your application
longer text is automatically split into concatenated parts
PHP (PDO):
$pdo = new PDO('mysql:host=terminal.sms3.cz;dbname=YOUR_DB;charset=utf8', 'YOUR_USER', 'YOUR_PASSWORD');
$pdo->prepare('INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID) VALUES (?,?,?)')
->execute(['+420777123456', 'Message text', 'MyEshop']);
Python:
import mysql.connector
db = mysql.connector.connect(host='terminal.sms3.cz', database='YOUR_DB',
user='YOUR_USER', password='YOUR_PASSWORD')
cur = db.cursor()
cur.execute("INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID) VALUES (%s,%s,%s)",
('+420777123456', 'Message text', 'MyEshop'))
db.commit()
inbox tableSELECT ReceivingDateTime, SenderNumber, TextDecoded FROM inbox ORDER BY ReceivingDateTime DESC;
You can delete or flag processed messages (the Processed column) so that you do not read them repeatedly.
sentitems tableSELECT SendingDateTime, DestinationNumber, Status, TextDecoded FROM sentitems ORDER BY SendingDateTime DESC;
Status takes the values SendingOK, DeliveryOK, SendingError and the like.
phones tableSELECT Signal, NetCode, Battery, LastTimestamp FROM phones;
You can also see the signal strength and the terminal's last activity in the terminal overview in your customer account.
If you run several GSM terminals, you choose the model that suits your needs — both have their pros and cons and the choice is entirely yours:
A separate database for each terminal — full isolation, separate credentials and IP whitelist, simple queries (nothing to filter). Suitable when the terminals serve separate projects or clients.
One shared database for all terminals — everything in one place, a single login, easy overview and reporting. You tell a particular terminal apart by its identifier: for outgoing messages in outbox by the SenderID column (which terminal to send with), for incoming messages in inbox by the RecipientID column (which terminal the message arrived at).
-- send via a specific terminal in the shared DB:
INSERT INTO outbox (DestinationNumber, TextDecoded, CreatorID, SenderID)
VALUES ('+420777123456', 'Message text', 'MyEshop', 'GSMT-01');
-- read incoming messages from one terminal only:
SELECT ReceivingDateTime, SenderNumber, TextDecoded
FROM inbox WHERE RecipientID = 'GSMT-01' ORDER BY ReceivingDateTime DESC;
We assign a terminal identifier (SenderID/RecipientID) to each unit. You can choose the model according to your production deployment.
access to the database is restricted to the IP addresses you define (whitelist)
you manage the database login password in your customer account
every customer has their own separate database — you see only your own messages
Rental of the ready-made solution (terminal + Gammu + MySQL access) — 275 CZK excl. VAT / month (333 CZK incl. VAT), minimum 6 months
you supply just a SIM card (ideally an unlimited SMS tariff)
order directly in your customer account, or contact us
a complete overview and price list is on the SMS communication page