How smk1367/grandstream-u6202-crm works
This is a UCM6202 CRM: users work through a browser UI to manage customer and sales records, review call activity, and use reports and recordings. The backend also synchronizes CDRs and receives live-call data from the PBX. The sampled backend excerpt supports these capabilities, but omits portions of its routing and startup code, so uncertain wiring—particularly between the TCP listener and the API—is not shown.
Main entry points: main.py CRM API · index.html CRM interface · live_listener.py TCP live listener
Components 14
User interface
- CRM interface
frontend/index.html
CRM workflows
- CRM API
backend/app/main.py - Contacts
backend/app/main.py - Opportunities and follow-ups
backend/app/main.py - CRM reports
backend/app/main.py
Telephony integration
- Call history
backend/app/main.py - CDR synchronization
backend/app/main.py - Realtime CDR endpoint
backend/app/main.py - TCP live listener
backend/app/live_listener.py - Recording access
backend/app/main.py
Persistence and access
- Role access
backend/app/main.py - CRM database
Other components
- CRM user
- UCM6202 PBX
Connections 20
- CRM user → CRM interface: uses
- CRM interface → CRM API: requests
- CRM API → Role access: checks roles
- CRM API → Contacts: serves
- CRM API → Opportunities and follow-ups: serves
- CRM API → Call history: serves
- CRM API → CRM reports: serves
- CRM API → CDR synchronization: dispatches
- CRM API → Realtime CDR endpoint: receives
- UCM6202 PBX → Realtime CDR endpoint: posts CDR
- UCM6202 PBX → TCP live listener: sends events
- CRM API → Recording access: serves
- CDR synchronization → UCM6202 PBX: fetches CDRs
- Recording access → UCM6202 PBX: fetches audio
- Contacts → CRM database: reads and writes
- Opportunities and follow-ups → CRM database: reads and writes
- Call history → CRM database: reads and writes
- CRM reports → CRM database: reads
- CDR synchronization → CRM database: stores CDRs
- Realtime CDR endpoint → CRM database: stores call data