cd /news/developer-tools/i-open-sourced-a-local-multi-agent-c… · home › topics › developer-tools › article
[ARTICLE · art-180556] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

I Open-Sourced a Local Multi-Agent Calling Desk with Asterisk and a Browser Phone

A developer open-sourced Agent Line, an MIT-licensed local calling desk that lets seven to ten browser-based agents share ten real SIM lines through a single Asterisk queue. Built with TypeScript, Next.js, SQLite and SIP.js over WebRTC, the app runs Asterisk in Docker on the office LAN, connects to a 10-SIM GSM gateway, and shows the real SIM behind each call without spoofing caller ID. The portal uses the Asterisk Manager Interface and stays out of the audio path, with tests covering number formatting, primary-SIM hunt and customer lookup.

key takeaway

Agent Line registers browser phones as SIP.js/WebRTC clients on one Asterisk queue via the Manager Interface, keeping the portal out of the audio path and displaying the real gateway SIM per call rather than spoofing caller ID.

by read1 min views8 publishedDec 2, 2026

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.

── more in #developer-tools 4 stories · sorted by recency
── more on @agent line 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-open-sourced-a-loc…] indexed:0 read:1min 2026-12-02 · —