Ir para o conteúdo

Lorentz Webphone (operador web)

Instalação passo a passo: 29-instalar-webphone.md · Índice: 28-indice-instalacao-apps.md

Softphone WebRTC no navegador, substituindo o LorentzCliente Windows. Integra voz (Issabel WSS) e CTI (Supervisor web_agent).

Repositório

omnichannel/lorentz-webphone/     ← fork do 008 (kunzite) + integração Lorentz

Container Docker

Item Valor
Serviço compose lorentz-webphone
Container lorentz-webphone
Imagem build multi-stage (Node 20 + nginx)
Porta host WEBPHONE_HTTP_PORT (padrão 8081)
Config JSON config/runtime/cfgLorentz008.json/cfgLorentz008.json

Deploy

cd ~/omnichannel/lorentz-vps-stack
cp .env.example .env   # ajustar VPS_PUBLIC_IP, WEBRTC_*, SUPERVISOR_PUBLIC_URL

./scripts/render-config.sh
./scripts/open-aws-port-8081.sh   # firewall AWS (opcional)

docker compose up -d --build lorentz-webphone

Primeiro uso no navegador

  1. Abra http://SEU_IP:8081/
  2. Settings (engrenagem) → Configuration URL:
    http://SEU_IP:8081/cfgLorentz008.json
    
  3. Clique no botão verde para carregar a config
  4. Autentique no Supervisor (auth/login) e cole o JWT em lorentz.token no JSON (ou use fluxo de login futuro)

Variáveis .env

Variável Descrição
WEBPHONE_HTTP_PORT Porta HTTP do webphone (8081)
WEBPHONE_PUBLIC_URL URL pública para documentação/monitor
WEBRTC_EXTENSION Ramal SIP/WebRTC (mesmo do Issabel)
WEBRTC_PASSWORD Senha do ramal
ISSABEL_WSS_PORT Porta WSS Asterisk (8089)
SUPERVISOR_PUBLIC_URL Base do Supervisor (API CTI)

Build local (sem Docker)

cd ~/omnichannel/lorentz-webphone
yarn install
yarn build-web
# Servir packages/008/web-build/ via HTTPS (WebRTC exige contexto seguro em produção)

Arquitetura

Navegador
  ├── wss://IP:8089/ws     → Issabel (voz SIP.js)
  └── http://IP:8081/api   → Supervisor web_agent (CTI)

Ver também: 14 — Issabel WebRTC / WSS.

Documentação do projeto webphone:

  • lorentz-webphone/docs/guia-administrador.md — deploy e manutenção
  • lorentz-webphone/docs/guia-usuario-lorentz.md — operador
  • lorentz-webphone/docs/proximos-passos-integracao-lorentzserver.md — roadmap