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¶
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¶
- Abra
http://SEU_IP:8081/ - Settings (engrenagem) → Configuration URL:
- Clique no botão verde para carregar a config
- Autentique no Supervisor (
auth/login) e cole o JWT emlorentz.tokenno 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çãolorentz-webphone/docs/guia-usuario-lorentz.md— operadorlorentz-webphone/docs/proximos-passos-integracao-lorentzserver.md— roadmap