{"slug": "i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser", "title": "I Open-Sourced a Local Multi-Agent Calling Desk with Asterisk and a Browser Phone", "summary": "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.", "body_md": "A Pakistani ecommerce office needed seven to ten agents to share ten real SIM lines, without putting a PBX on the public internet.\n\n[Agent Line](https://github.com/mafzalkalwardev/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.\n\nWhat it can do today, as version 0.1.0:\n\nThe 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.\n\nTo run it locally you need Node.js 22 or newer, and Docker if you want the phones to register:\n\n```\nnpm install\ndocker compose up -d --build\nnpm run dev\n```\n\nThe 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.\n\nIt is MIT-licensed. The gateway is hardware the office buys; this repository does not install it.", "url": "https://wpnews.pro/news/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser", "canonical_source": "https://dev.to/mafzalkalwardev/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser-phone-2e59", "published_at": "2026-12-02 21:36:39+00:00", "updated_at": "2026-12-02 21:46:28.563473+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["Agent Line", "Asterisk", "SIP.js", "Next.js", "SQLite", "Docker", "WebRTC"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser", "markdown": "https://wpnews.pro/news/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser.md", "text": "https://wpnews.pro/news/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser.txt", "jsonld": "https://wpnews.pro/news/i-open-sourced-a-local-multi-agent-calling-desk-with-asterisk-and-a-browser.jsonld"}}