How ars-anosov/sipjs-react works
sipjs-react is a browser-based WebRTC phone with Active Directory sign-in and LiveKit meetings. Users can sign in through AD (or enter SIP details), register the SIP phone, then place calls, message contacts, and view call history; meeting invitations can also be issued and shared. The app separates UI components from Redux-connected containers, with domain actions invoking services for SIP, storage, directory, AD, and LiveKit-token work. README and sampled sources support the main UI and AD flow; several phone and meeting internals were not sampled, so uncertain runtime connections are omitted.
Main entry points: App.jsx Application UI · AuthContainer.jsx Auth controller · PhoneContainer.jsx Phone controller · phoneControlActions.js Phone actions
Components 24
App shell
- Application UI
src/App.jsx - Menu and status
src/components/MenuAppBar.jsx
Authentication
- Auth UI
src/components/AuthAd.jsx - Sign-in links
src/components/AuthLinks.jsx - Auth controller
src/containers/AuthContainer.jsx - AD actions
src/actions/authControlActions.js
SIP phone
- Phone controller
src/containers/PhoneContainer.jsx - Phone panels
src/components/PhonePad.jsx - Phone actions
src/actions/phoneControlActions.js - SIP runtime
src/services/phoneRuntime.js - History and chat
src/components/PhoneHistory.jsx - Phone directory
src/services/phoneDirectory.js
LiveKit meetings
- Meeting controller
src/containers/LkContainer.jsx - Meeting room UI
src/components/LkMeet.jsx - Meeting actions
src/actions/lkControlActions.js - Token service
src/services/lkToken.js
State and services
- AD service
src/services/adAuth.js - Phone persistence
src/services/phoneStorage.js - Redux store
src/store/configureStore.js - Domain reducers
src/reducers/rootReducer.js
Other components
- User
- AD API
- Browser storage
- LiveKit service
Connections 23
- User → Application UI: uses
- Application UI → Menu and status: renders
src/App.jsx - Application UI → Auth controller: renders
src/App.jsx - Application UI → Phone controller: renders
src/App.jsx - Application UI → Meeting controller: renders
src/App.jsx - Auth controller → Auth UI: renders
src/containers/AuthContainer.jsx - Auth controller → Sign-in links: renders
src/containers/AuthContainer.jsx - Auth controller → AD actions: dispatches
src/containers/AuthContainer.jsx - AD actions → AD service: calls
src/actions/authControlActions.js - AD service → AD API: requests
src/services/adAuth.js - Phone controller → Phone panels: renders
src/containers/PhoneContainer.jsx - Phone controller → History and chat: renders
src/containers/PhoneContainer.jsx - Phone controller → Phone actions: binds
src/containers/PhoneContainer.jsx - Phone actions → SIP runtime: calls
src/actions/phoneControlActions.js - Phone actions → Phone persistence: calls
src/actions/phoneControlActions.js - Phone actions → Phone directory: calls
src/actions/phoneControlActions.js - Phone persistence → Browser storage: reads/writes
src/services/phoneStorage.js - Meeting controller → Meeting room UI: renders
src/containers/LkContainer.jsx - Meeting controller → Meeting actions: binds
src/containers/LkContainer.jsx - Meeting actions → Token service: requests token
src/actions/lkControlActions.js - Meeting room UI → LiveKit service: hosts meeting
- Redux store → Domain reducers: configures
src/store/configureStore.js - Auth controller → Meeting actions: opens invite view
src/containers/AuthContainer.jsx