A Pakistani ecommerce office needed seven to ten agents to share ten real SIM lines, without putting a PBX on the public internet.
Agent Line is a local calling desk for that office. Agents sign in from the browser and register as phones on one Asterisk queue. Voice uses a 10-SIM GSM gateway on the office LAN, and every call shows the real SIM that carried it. There is no public homepage. The desk and the PBX stay on the office machine.
What it can do today, as version 0.1.0:
The app is TypeScript and Next.js, with SQLite for customers and history. Asterisk runs in Docker. Each browser phone uses SIP.js over WebRTC. The portal talks to Asterisk through the Manager Interface and does not sit in the audio path. The number the customer sees is the SIM the gateway used; the project does not replace or spoof caller ID.
To run it locally you need Node.js 22 or newer, and Docker if you want the phones to register:
npm install
docker compose up -d --build
npm run dev
The desk listens on http://127.0.0.1:3000. npm test covers number formatting, primary-SIM hunt, and customer lookup. The runbook, including the gateway cutover, is in the repository.
It is MIT-licensed. The gateway is hardware the office buys; this repository does not install it.