Using EC20 Module, Asterisk, and FreePBX for SMS Forwarding and VoIP

In many parts of the world, mobile phone numbers are increasingly intertwined with online services and personal identity. This is particularly true in mainland China, where a single user may find themselves managing multiple phone numbers for various applications and platforms. While solutions like telegram-sms and SMS-forwarder have emerged to address the inconvenience of managing multiple physical SIM cards, they come with limitations. These apps, typically installed on smartphones, are often hampered by aggressive background process management common on Android devices, leading to unreliable SMS forwarding. Furthermore, the practice of keeping older devices powered on long-term for this purpose introduces safety concerns, such as battery swelling. Perhaps the most significant limitation is the inability to handle phone calls; these apps only address SMS. This article details a project where the author, using an EC20 cellular module and a blend of software tools like asterisk, to overcame these limitations. The setup allows for SMS messaging through instant messaging applications like Telegram, and makes and receives phone calls over the internet using SIP clients, providing a more robust and flexible solution. ...

2022-10-08 · LastMod: 2026-09-17 · 7 min · sparktour

Dealing with TLS Connection Resets Caused by a Huawei Core Firewall

This is the debugging archive of a TLS connection reset problem encountered by the SUSTech mirror site in April 2021. TL;DR: the first HTTPS connection initiated from outside campus to the mirror site’s public IPv4 address (116.7.234.220) on TCP port 443 is answered ahead of the real server and blocked by a middlebox; the mirror host never even receives the packets associated with that TCP connection. Introduction The first HTTPS connection initiated from outside campus to the mirror site’s public IPv4 address (116.7.234.220) on TCP port 443 is answered ahead of the real server and blocked by a middlebox; the mirror host never even receives the packets associated with that TCP connection. ...

2021-04-25 · LastMod: 2026-10-29 · 8 min · sparktour