From 113b5a927792b149101ae0737d98e21170e24bb6 Mon Sep 17 00:00:00 2001 From: saridsa2 Date: Mon, 13 Apr 2026 09:11:04 +0530 Subject: [PATCH] fix: restore SIP fallback env vars in .env.production use-sip-phone.ts reads VITE_SIP_* as fallback before login response provides per-agent config. Keep them for safety. Co-Authored-By: Claude Opus 4.6 (1M context) --- .env.production | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.env.production b/.env.production index 1d88f8f..8789b4b 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,9 @@ # EC2 deployment — Caddy reverse-proxies /auth/* and /api/* to the sidecar # on the same domain, so VITE_API_URL is empty (same-origin). -# SIP config is per-agent from the Agent entity (returned at login), not env vars. VITE_API_URL= + +# SIP defaults — used as fallback if login response doesn't include agent config. +# Per-agent SIP config from the Agent entity (returned at login) takes precedence. +VITE_SIP_URI=sip:523590@blr-pub-rtc4.ozonetel.com +VITE_SIP_PASSWORD=523590 +VITE_SIP_WS_SERVER=wss://blr-pub-rtc4.ozonetel.com:444