Appearance
System Architecture
This architecture summary reflects the current migration branch implementation.
Major Runtime Components
- Frontend Client (React + Vite + Tailwind)
- Dialer UI, settings flows, auth screens, admin screens.
- Telegram WebApp compatibility via
useTelegramhook.
- Supabase Layer
- Auth/session management.
- Postgres tables (
profiles,call_logs,wallet_transactions,call_recordings, etc.). - Edge Functions (
make-call,hangup-call,verify-pin, Telegram/session utilities, SIPUP sync endpoints).
- Control Layer (Python service)
- Call-control and gateway status endpoints.
- Integration surface with FreeSWITCH and operational APIs.
- FreeSWITCH / VoIP Runtime
- SIP and bridge media handling.
- Trunk/provider integration for outbound call legs.
High-Level Request Path
- User action in dialer triggers Supabase edge function request.
- Edge/backend routes call request into control + telephony layer.
- Call state updates are read back via
call_logspolling. - UI status strip and telemetry update in near real-time.
Data Domains
- Identity/security:
profiles, PIN verification endpoints. - Call telemetry:
call_logs,call_flow_events. - Wallet/billing:
wallet_transactions, voucher RPCs. - Media:
call_recordingsand storage URLs. - Admin analytics: SIPUP stats and operational tables.