Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Adding Browser Calling to an Open‑Source CRM with Asterisk and WebRTC

说明与用途

FARA CRM 通过 Asterisk、JsSIP 和 TURN 代理实现了浏览器点击拨号功能,无需桌面软电话。

问题

Users needed to click a phone number in the CRM and talk directly in the browser without installing a desktop softphone or using a paid cloud PBX.

结果

Click‑to‑call functionality was added to the CRM, enabling users to place and receive calls directly in the browser with minimal configuration and no external softphones.

工作流

  • 1. Configure FreePBX: enable WebRTC, create a browser extension, set up WSS with a real cert, open RTP ports, serve CRM over HTTPS.
  • 2. Deploy a FastAPI WebSocket proxy that authenticates users, checks PBX line ownership, and forwards SIP signaling while keeping audio direct or via TURN.
  • 3. In the CRM frontend, initialize JsSIP with the proxy WebSocket, register the browser UA, and expose a dialer button that calls or answers calls via JsSIP.
  • 4. Add a coturn TURN server with short‑lived credentials generated by the backend to handle NAT traversal when direct media fails.

证据

The key idea: only SIP signaling goes through the backend. SIP messages are small text commands like "register", "call" and "hang up".

来源

If you leave it out, the browser closes the connection right after connecting and nothing explains why.

来源

  • 记录日期: 2026-09-22T23:30:39.253Z