SIM Desk: A Self-Hosted SMS Gateway Using an Android Phone's SIM with a Web-Based Message Desk
Small operators who want to send and receive SMS from a computer usually rent a number from a commercial SMS API, even though an ordinary Android phone with a SIM is already on the desk. Turning a phone into an SMS gateway is not a new idea; open-source tools such as Ushahidi SMSSync, SMS Gateway for Android and textbee already do so. This paper is a system and experience report on SIM Desk, a small open-source implementation of that idea built around a conversation-style web inbox. A Next.js server with an SQLite store holds the outbound queue, and a Kotlin Android app on the phone pulls queued texts over HTTPS, sends them with the platform SmsManager API, reports sent, delivered or failed status, and uploads rows from the phone's SMS provider so that replies appear in the same conversation. We describe the pairing protocol (a six-digit, ten-minute pairing code exchanged for a per-device bearer token stored only as a hash), the message state model, the threading rule that merges local and international forms of the same number, and the safety limits (five recipients per request and ten queued sends per minute). Evaluation is qualitative: five automated API tests that run in continuous integration, documented layout checks at four viewport widths, and a documented end-to-end send and receive on one physical handset. We report no performance measurements. We close with limitations found by reading the code, including possible duplicate sends under at-least-once polling, first-sync upload of the full SMS history, and platform-policy restrictions on SMS permissions.
Authors
- Muhammad Afzal Kalwar (ORCID: https://orcid.org/0009-0002-1636-9120)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24667412
- Primary Topic
- Mobile and Web Applications
- Type
- preprint