How astraonlineweb/astracalls works
AstraCalls is a browser-operated WhatsApp communications service: operators pair accounts, then place or receive calls and manage messaging, campaigns, and integrations. The documented call path spans the React console, session/call APIs, Go session runtime, native VoIP signaling and media, and WhatsApp; SIP, group calls, messaging, webhooks, and Chatwoot are distinct product branches. Edges are limited to explicit README statements and shown caller references; several server subsystems are represented by exact directories because their implementation files were not sampled.
Main entry points: session.go WhatsApp session · callmanager.go Call manager · App.tsx Web console · sessionmanager.go Session manager
Components 26
Operator console
- Web console
client/src/App.tsx - Account pairing
client/src/components/domain/session/SessionPairing.tsx - Call controls
client/src/components/domain/call - Call actions
client/src/hooks - API and transport
client/src/lib/api.ts
Session and API runtime
- HTTP and events
cmd/server/httpapi.go - Session manager
cmd/server/sessionmanager.go - WhatsApp session
cmd/server/session.go - Session persistence
cmd/server/sessionstore.go
WhatsApp VoIP
- Call manager
internal/voip/call/callmanager.go - Call signaling
internal/voip/call/callmanager_signaling.go - Audio media
internal/voip/call/callmanager_media.go - Video pipeline
internal/voip/call/video/pipeline.go - Relay transport
internal/voip/transport - Group calling
internal/voip/call/groupcall.go
Messaging and campaigns
- Messaging APIs
cmd/server/messaging.go - Campaigns
cmd/server/blast.go
External integrations
- SIP gateway
cmd/server/sip_gateway.go - SIP connector
cmd/sipconnector/main.go - Webhook delivery
cmd/server/webhookdelivery.go - Chatwoot integration
cmd/server/chatwoot.go
Other components
- Operator
- WhatsApp network
- Chatwoot
- PBX / SIP peer
- API client
Connections 26
- Operator → Web console: uses
README.md - Web console → Account pairing: pairs account
client/src/App.tsx - Web console → Call controls: opens calls
client/src/App.tsx - Call controls → Call actions: invokes actions
- Call actions → API and transport: calls API
- API and transport → HTTP and events: sends requests
README.md - API client → HTTP and events: calls API
README.md - HTTP and events → Session manager: routes sessions
- Session manager → WhatsApp session: creates session
cmd/server/sessionmanager.go - Session manager → Session persistence: loads state
- WhatsApp session → Call manager: runs calls
- Call manager → Call signaling: handles signaling
internal/voip/call/callmanager.go - Call manager → Audio media: processes audio
internal/voip/call/callmanager.go - Call manager → Video pipeline: creates pipeline
internal/voip/call/callmanager.go - Audio media → Relay transport: sends relay media
internal/voip/call/callmanager_media.go - Video pipeline → Relay transport: sends video
internal/voip/call/video/pipeline.go - Call signaling → WhatsApp network: exchanges stanzas
internal/voip/call/callmanager_signaling.go - Call manager → Group calling: supports group calls
- WhatsApp session → SIP gateway: offers SIP
- SIP gateway → PBX / SIP peer: connects SIP
README.md - SIP connector → PBX / SIP peer: connects SIP
cmd/sipconnector/main.go - WhatsApp session → Messaging APIs: provides messaging
- WhatsApp session → Campaigns: runs campaigns
- WhatsApp session → Webhook delivery: emits events
- WhatsApp session → Chatwoot integration: integrates
- Chatwoot integration → Chatwoot: syncs conversations
README.md