Building a Softphone for scale
summary
A production softphone platform built as a single HTML/JavaScript UI (Tailwind + browser-phone SDK) sits behind an OpenSIPS proxy and a pool of Docker Asterisk instances on AWS Fargate, with CI/CD via GitHub Actions and ~8 minute deploys. It supports WebRTC, websocket registration to local Asterisk, TLS+Opus trunks (sip.api.openai.com, proj_... project IDs) and WhatsApp SIP termination, and routes calls into a real-time OpenAI audio agent via Lambda/DynamoDB. The system is live with <8 staff, opens ticket 333 and demonstrates low-latency calls from Cape Town through the UK to OpenAI.
AI-written summary · about
