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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

SIM Desk: A Self-Hosted SMS Gateway Using an Android Phone's SIM with a Web-Based Message Desk

Muhammad Afzal Kalwar
Zenodo (CERN European Organization for Nuclear Research)
Mobile and Web Applications
preprint

SIM Desk: A Self-Hosted SMS Gateway Using an Android Phone's SIM with a Web-Based Message Desk

Muhammad Afzal Kalwar
preprint en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
Mobile and Web Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon