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

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

Описание и применение

В CRM FARA реализована функция «клик‑ток‑кол» через браузер, используя Asterisk, JsSIP и TURN‑relay, без установки десктопных softphone.

Задача

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