mzac/dialdeck
关于
Your SIP phone in any browser — login, per-user SIP accounts, and a built-in WebRTC↔SIP gateway. One Docker container.
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
DialDeck
Your SIP phone in any browser, on any device.
Sign in, add the SIP account you already have, make and take calls. One container.
Self-hosted · private · up in minutes. Run one container, point it at the PBX or SIP provider you already have, and every phone, tablet and laptop in the house gets a real phone app in the browser. No cloud account, no telemetry, no app store: your calls, contacts and history stay on your server.
![]() |
![]() |
![]() |
![]() |
More screenshots
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |

Status: stable (v1.1). Calls work end to end and every change is tested in CI with real calls (see What's tested and Testing & CI). Four independent security reviews were done before 1.0, and every release since is reviewed again; see SECURITY.md. Planned next: 1.2.0 (contact-center); see all milestones.
Why
Self-hosted and private by design
- Runs on your hardware: a Raspberry Pi, a NAS, a homelab box or a Kubernetes cluster. One container, or
helm install. - Nothing phones home: no cloud service, account, analytics or telemetry, and we collect nothing. The only optional outbound check is an admin-enabled "is there a newer release" lookup, off by default. See PRIVACY.md. Push notifications go through your browser's standard Web Push service, encrypted end to end with your server's own keys.
- Your data stays with you: users, contacts, call history and ringtones live in a SQLite file on your volume. SIP passwords are encrypted at rest and never sent to browsers.
- Connects to what you already run: FreePBX, Asterisk, 3CX, FRITZ!Box, Grandstream/Yeastar, or a SIP provider like voip.ms. Any account you'd put in a desk phone works.
Browser SIP phones normally need a PBX that speaks WebRTC, and they put your SIP password in the browser. DialDeck sits in the middle instead:
- Works with any SIP account: the same details you'd type into a desk phone. Your PBX doesn't need WebRTC, WebSockets or Opus.
- Your SIP password never reaches the browser. It's encrypted on the server, and the browser only gets a throwaway credential for its own leg.
- Accounts with roles. Admins manage users; users manage their own SIP accounts. Many people can be signed in and on calls at once.
- Phone-first UI. Big dial pad, full-screen incoming calls, hold, mute, keypad (DTMF), recents, dark/light, and "Add to Home Screen".
- Phone habits work. Tap call on an empty number to bring back the last one. Dial
*3001#12345#*and press call for a diagnostics screen (connection, live call stats, mic test, event log). - Same account on several devices. Phone and laptop both ring, and whichever you answer on wins.
- Notifications. Calls show a system notification when DialDeck is in the background. If none of your devices is online, DialDeck sends a push and keeps the caller ringing for up to 30 s while your phone wakes up. On iPhone, add DialDeck to the Home Screen first; push needs a trusted HTTPS certificate.
- Built-in echo test. Dial
*7979from any account: DialDeck answers and echoes your voice back locally (nothing goes to your PBX), so you can test browser audio independently of the PBX. The code was picked to avoid clashing with PBX feature codes such as*43. - Favorites on the phone screen (tap to call), synced across your devices. Ring sounds for North America, UK, Europe, Australia/NZ or Japan.
- Faster dialling. The number is formatted as you type (the raw digits are dialled), with caret editing, a paste chip, warnings for doubled country codes, and speed dial on long-press of keys 2 to 9. See Speed dial, ringing and paging.
- Better incoming calls. Slide to answer, escalating ring, vibrate/flash/silent modes, speak the caller's name, "Send to voicemail" (486) or "Remind me" (push to call back), and a toast when you are on another tab.
- Intercom and paging. Distinctive rings from
Alert-Info, opt-in intercom auto-answer (muted, chime first, never during a call), hide-my-number per call, and press-and-hold page buttons for a PBX paging group. Read the risks before enabling auto-answer. - In-call tools. Soft reminder beep while a call is on hold, a contact card, per-call notes, minute chimes, hang-up confirmation for long calls, a Speaker picker, a call-quality (MOS) score and an optional post-call sheet to rate and annotate the call.
- Feature-code buttons. One-tap park, pickup, do-not-disturb or "send my PIN" buttons for your PBX's feature codes, plus a call-forwarding guide with FreePBX, Asterisk and 3CX presets.
- Settings that are easy to find. Settings are grouped (Account and security, Calls and audio, Ringing and notifications, Contacts and directory, Appearance and layout, Help and about) with an account page and header menu, an avatar, and a one-file export and import of your settings and contacts. Optional settings sync keeps your preferences the same on every device you sign in on.
- Passkeys and "Keep me signed in". Add a passkey and sign in (or unlock the app) with a fingerprint or security key, or tick Keep me signed in on a device you trust. Authenticator-app 2FA, device and session lists and a new-sign-in banner are built in.
- Looks the way you like. Accent colours, AMOLED black, a high-contrast theme and a compact, regular or roomy density, on top of dark and light.
- Simple, kiosk and guest modes, and an app lock. A big-button simple mode for relatives, a kiosk home for a wall tablet, time-limited guest accounts, and a PIN, password or passkey lock when the app is idle or hidden.
- Shared lines and templates. An admin can share one account with other users (everyone rings, the first to answer wins) and create account templates so adding a standard line takes a click.
- Admin live board and announcements. See who is registered or on a call (users can hide their activity), and show a plain-text banner to everyone.
- Call-me-back Messages. Leave a short note for a DialDeck user you could not reach; it lands in their Messages inbox and as a push.
- Headsets. WebHID support for Jabra, Poly and similar headsets: answer, hang up and mute from the device.
- Audio you can tune. A built-in network test, echo cancellation, noise suppression and gain per microphone, a Music mode (stereo, no processing) and a Low bandwidth mode.
- Recents that work for you. Pin calls, add tags and follow-up flags, and select several calls to delete or tag at once.
- Easy to try and learn. A demo mode (no account needed), keyboard shortcuts (press
?), and About and Help pages with component licences and an SBOM export. - Call history that is useful. Per-number detail pages, notes, tags and follow-up flags, weekly stats, CSV export, automatic retention and a single missed-call digest push. See docs/calls.md.
- Speaks your language. See Languages.
- One container for Docker or Kubernetes. Runs as non-root and stores its data in SQLite.
Languages
English, plus Français, Español, Deutsch, Português (Brasil) and العربية (Arabic) in beta: the translations were machine-drafted and are waiting for native-speaker review, so wording may be off. Arabic is fully right-to-left and bundles Noto Sans Arabic, so it renders the same on every device. Pick a language under Settings > Appearance and layout; DialDeck does not choose one from your browser yet (that comes once the translations are reviewed). Push notifications follow your language too. Spotted a bad translation? Open an issue or a pull request, see Development.
Quick start
docker run -d --name dialdeck --restart unless-stopped \
-p 8080:8000 -p 10000-10099:10000-10099/udp -p 5060:5060/udp -p 5060:5060/tcp \
-e EXTERNAL_IP=192.168.1.10 \
-e SECRET_KEY="$(openssl rand -base64 48)" \
-v dialdeck-data:/data \
ghcr.io/mzac/dialdeck:latest
- Put HTTPS in front of it. Browsers only allow the microphone on
https://(orlocalhost). See docs/deployment.md for Caddy, nginx, Traefik and Kubernetes Ingress examples. - Open the site and sign in as admin with the one-time password printed in the container log (
docker logs dialdeck, look forFIRST RUN). You must change it at first sign-in. To choose it yourself, start with-e ADMIN_PASSWORD=.... - Accounts → Add: enter your SIP server, extension and password. When both dots in the header are green, you're ready.
Already running a PBX on the same machine? That works; just move DialDeck's SIP and audio ports so they don't clash. See docs/deployment.md.
Set EXTERNAL_IP to the host's IP, the one your PBX and browsers use to reach it. With Docker's default
networking, DialDeck needs it to tell your PBX where to send audio and incoming calls. Without it, calls can
connect with no audio, and incoming calls never ring.
No PBX? Try the demo
The repo includes a small stand-in PBX with extensions 1001–1004:
git clone https://github.com/mzac/dialdeck && cd dialdeck
docker compose -f docker-compose.demo.yml up --build
Open http://localhost:8080 (admin / admin; the demo sets ADMIN_PASSWORD=admin, never use that compose file in production) and add an account: server pbx, username 1001, password demo-1001.
Call 600 (echo), 601 (tone) or 602 (type digits then # to test DTMF). Create a second user with 1002
and call between them.
Kubernetes
Recommended: the Helm chart, published at oci://ghcr.io/mzac/charts/dialdeck (helm install dialdeck oci://ghcr.io/mzac/charts/dialdeck --devel -f <platform>.yaml for the edge build, using an example from deploy/helm/dialdeck/examples/; works on Talos/AKS/EKS/GKE/k3s; see its README). Plain manifests:
kubectl apply -k deploy/kubernetes # hostNetwork (simplest for VoIP)
# or
kubectl apply -k deploy/kubernetes-loadbalancer # MetalLB/cloud LB with the RTP ports listed
Edit the Ingress host first. See docs/deployment.md.
Configuration
Everything is optional.
| Variable | Default | Description |
|---|---|---|
SECRET_KEY |
generated | Encrypts saved SIP passwords and signs sessions. Back it up: lose it and saved SIP passwords must be re-entered. If unset, one is generated in /data/secret.key |
EXTERNAL_IP |
— | This host's IP as your PBX/browsers see it. Needed with Docker bridge networking for audio and incoming calls |
RTP_START / RTP_END |
10000 / 10099 |
UDP ports for call audio (2 per active call). Must match what you publish |
ADMIN_USERNAME |
admin |
First admin account |
ADMIN_PASSWORD |
— | Its password. If unset, a random one is generated on the first start and printed once in the container log; it must be changed at first login |
COOKIE_SECURE |
false |
false = automatic: the cookie is Secure whenever the request is HTTPS (via X-Forwarded-Proto). true forces it |
AUTH_PROXY_HEADER |
— | Sign in users from a trusted reverse-proxy header, e.g. Remote-User (see security) |
AUTH_PROXY_AUTOCREATE |
false |
Create a user account the first time the header names someone new |
AUTH_PROXY_GROUPS_HEADER / AUTH_PROXY_ADMIN_GROUP |
— | Groups header (e.g. Remote-Groups) and the group that maps to admin |
AUTH_PROXY_TRUSTED_IPS |
— (required with AUTH_PROXY_HEADER) |
Proxy IPs/CIDRs allowed to set the header. * is refused and leaves header auth off |
OIDC_ISSUER / OIDC_CLIENT_ID / OIDC_CLIENT_SECRET |
— | Enable "Sign in with SSO" (authorization code + PKCE) |
OIDC_REDIRECT_URL |
<origin>/api/auth/oidc/callback |
Recommended: set it explicitly (a startup warning appears when unset) |
OIDC_LINK_BY_USERNAME / OIDC_SESSION_HOURS |
false / 24 |
Opt-in linking of existing non-admin accounts by username (risky); lifetime of OIDC sessions |
ADMIN_BACKUP_HTTP |
false |
Enable the passphrase-encrypted POST /api/admin/backup download |
OIDC_LABEL / OIDC_ADMIN_GROUP / OIDC_GROUPS_CLAIM / OIDC_AUTOCREATE |
SSO / — / groups / false |
Button text, admin group mapping, create accounts on first sign-in |
SESSION_HOURS |
168 |
How long a sign-in lasts |
STUN_URL |
— | e.g. stun:stun.l.google.com:19302, handed to browsers |
TURN_URL / TURN_USERNAME / TURN_PASSWORD |
— | A TURN server for browsers on restrictive networks |
SIP_PORT |
5060 |
SIP port toward your PBX. Publish it 1:1 (-p 5060:5060/udp), or change both if 5060 is taken |
FORWARDED_ALLOW_IPS |
127.0.0.1 |
Reverse proxy IP(s) whose X-Forwarded-For is trusted (comma-separated) |
VAPID_SUBJECT |
project URL | Contact (mailto: or https:) sent to push services |
BASE_PATH |
/ |
Serve the app under a sub-path (/dialdeck). The proxy must NOT strip the prefix. See docs/deployment.md |
PUBLIC_URL |
derived per request | The address users type, incl. any sub-path (https://example.com/dialdeck). Used for passkeys, QR / bookmarklet links and webhooks. Also editable in Settings |
OUTBOUND_ALLOWED_HOSTS |
(empty) | Servers DialDeck may contact for CardDAV and LDAP: names, *.suffix, name:port; http://name allows plain HTTP. Empty switches the features off. See docs/directories.md |
OUTBOUND_ALLOW_PRIVATE |
false |
Let allowed hosts resolve to LAN addresses (Nextcloud at home). Loopback and link-local are always refused |
CARDDAV_ENABLED / CARDDAV_SYNC_MINUTES / CARDDAV_CA_PEM |
true / 60 / (empty) |
Read-only CardDAV address books: on/off, background sync interval (min 15), extra CA for a private CA |
LDAP_SERVER, LDAP_PORT, LDAP_TLS, LDAP_BIND_DN, LDAP_BIND_PASSWORD, LDAP_BASE_DN, LDAP_USER_FILTER, LDAP_CA_PEM, LDAP_ALLOW_PLAINTEXT... |
(empty) | LDAP directory lookup (search and caller names). All also editable under Server settings |
LOG_LEVEL |
INFO |
DEBUG also logs every Asterisk call step |
Image tags, SSO and backups
Run ghcr.io/mzac/dialdeck:latest for tagged releases, or :edge to follow main. Users can add an
authenticator app (TOTP) to password logins, and you can sign in through a reverse proxy header or OIDC
(docs/security.md). Back up with docker exec dialdeck python -m backend.cli backup --out /data/backup.tar.gz. The archive contains the encryption key (so all SIP passwords): keep it safe.
The "new version available" banner compares the running version with the server's. Images built locally report
dev; pass --build-arg VERSION=1.2.3 to docker build to enable it (the publish workflow does this for the
published images).
What's tested
The backend has about 1,037 pytest tests (no Asterisk needed) and the frontend 268 Vitest tests. tools/e2e.sh runs two headless Chromium "phones" (fake microphone, iPhone-sized) against DialDeck and the demo
PBX. It runs in CI on every pull request and every push to main (434 checks pass at the last run); see Testing & CI for every check. A sample of its output:
PASS first-run login + forced password change
PASS browser leg + PBX leg registered (alice/1001)
PASS echo call: audio sent and echoed back browser codec=audio/opus
PASS codecs: browser leg Opus, PBX leg G.711 (Asterisk transcodes)
PASS hold / resume (re-INVITE)
PASS call survives page navigation
PASS DTMF reaches the PBX (RFC 4733) PBX heard: 4242
PASS second user registered at the same time (bob/1002)
PASS bob cannot read alice's account (API) 404
PASS bob sees incoming call with caller ID
PASS alice ↔ bob two-way audio
PASS inbound call from PBX rings browser + audio
Only tested against an Asterisk "PBX" so far. Real providers and FreePBX/3CX are next.
Limits (by design, for now)
- Not a PBX. No voicemail server, call recording, queues or ring groups. Voicemail stays on your PBX: DialDeck shows its message count and dials it for you.
- Conferencing is a 3-way merge mixed in the browser, not a conference bridge.
- Video is opt-in per account. VP8 and H.264 pass through without transcoding, so both ends need a codec in common.
- Push wakes a phone with a notification, not a full-screen native call screen (that needs a native app).
- On iPhone, iOS asks for the microphone again on the first call after each launch of the Home Screen app.
- Upstream transport is UDP or TCP. TLS and SRTP to the PBX aren't supported yet.
Docs
Architecture · Deployment, HTTPS & no-audio troubleshooting · Privacy · Speed dial, ringing & paging · Security, SSO & backups · Roadmap · Testing & CI · Development
License
MIT. Asterisk (GPLv2) runs as a separate, unmodified process inside the image.
探索相关项目
加载中…












