README, docs/{ARCHITECTURE,CONFIGURATION,INSTALL,OPERATIONS,SECURITY,TESTING}
and CHANGELOG were stale: they described the original SQLite + CardDAV +
zero-JS vm_web portal. Brought them in line with the actual code:
- MySQL (PyMySQL) as the default store; SQLite fallback only
- vm_contacts resolves from the MySQL contacts table (file/google/carddav removed)
- React SPA frontend + vm_api.py JSON API (:8098); vm_web.py now serves /audio/
- Apache vhost proxies /api/ -> :8098, /audio/ -> :8099, serves the SPA
- CSP relaxed to script-src 'self' 'unsafe-inline' (UI is now JavaScript)
- Added CHANGELOG 1.2.0 entry for the React/vm_api frontend work
3.8 KiB
3.8 KiB
Changelog
1.2.0 — 2026-08-13
- React SPA frontend + JSON API. Added
vm_api.py(FastAPI JSON API on :8098) and a React frontend (/home/jp/Work/voicemail-ui, served as static files with an SPA fallback by Apache). The portal UI is now a JavaScript SPA (react-router-dom + TanStack Query + Vite), not the zero-JS server-rendered app.vm_web.py(:8099) remains to serve/audio/playback and/healthz. - Apache vhost updated to proxy
/api/→ :8098,/audio/→ :8099, serve the Reactdist, and SPA-fallback toindex.html. CSP relaxed toscript-src 'self' 'unsafe-inline'(wasscript-src 'none') because the UI is now JavaScript. - Per-message / per-contact dropdown menus in the UI (⋮): Call back
opens a
tel:link from the sanitised caller digits; Lookup number opens a who-called.co.uk reverse-lookup in a new tab, using the 0-prefixed UK number (swap+44→0before lookup, search by sanitised digits only). Applied to both the Messages and Contacts pages. - Contacts backfill on write. Creating/updating a contact via the API now
updates matching
messages.contact_name/contact_email(spaces/quotes stripped before the LIKE; matches both E.164 and 0-prefix variants). - Documentation (
README.md,docs/*) brought in line with the MySQL + React +vm_api.pyarchitecture.
1.1.0 — 2026-08-13
- Storage migrated to MySQL:
vm_storenow defaults to MySQL (PyMySQL) when/opt/vm-transcribe/db_secretis present, with a root-owned least-privasteriskuser. SQLite remains as a fallback whenVM_STORE=sqliteis set or no secret file exists. - Asterisk CDR → MySQL: CDRs now write to MySQL via
cdr_adaptive_odbcres_odbc+ the MariaDB ODBC driver. Backfill scriptvm_backfill_cdr.pyimportsMaster.csvhistory into MySQL (7,591 rows).
- Contacts email support:
vm_contactsnow returns(name, email), preferringTYPE=WORKaddresses from vCard.messages.contact_emailcolumn backfilled. - Full E.164 matching: contacts matcher uses the full digit string (up to 15 digits) instead of last-9; added a guard so emoji/placeholder contacts cannot shadow real names.
- Migrations:
vm_migrate_sqlite_to_mysql.pyandvm_backfill_cdr.pyadded undersrc/for first-run and CDR backfill. - Contacts backend consolidated to MySQL only. The
file/google/carddavresolver backends were removed;vm_contactsnow resolves exclusively from the MySQLcontactstable.
1.0.0 — 2026-08-13
Initial build on mail.txt3.net (Debian 12, Asterisk 20, Apache 2.4, Postfix).
- Transcription: per-voicemail
mailcmd(vm_mailcmd.py) transcribes the attached recording with faster-whisperbase.en(CPU, int8, VAD-filtered). - Summarisation: local extractive summariser with intent tags and spoken- digit callback-number extraction. No LLM, by choice.
- Email: rebuilt
multipart/alternativenotification (plain + styled HTML) with the recording attached; relays the original Asterisk message unchanged on any error (fail-safe). - Telegram (optional): per-mailbox routed voice-note DM with summary caption and transcript follow-up; degrades sendVoice → sendDocument → sendMessage.
- Web portal: FastAPI app at
https://vm.txt3.net— PIN login (mailbox + voicemail PIN fromvoicemail.conf), list, play, download, delete, per-user settings. DB-backed sessions. Brute-force lockout per (mailbox, IP). - Storage: content-addressed audio (decoupled from Asterisk's renumbering).
- Backfill:
vm_import.pyimports and transcribes existing spool recordings; idempotent on(mailbox, origtime, callerid). Backfilled 157 historical messages on first run (3m40s, 0 failures). - Packaging: venv at
/opt/vm-transcribe, systemd units, Apache vhost + certbot TLS,install.sh.