Skip to content
Projects

About

Your SIP phone in any browser — login, per-user SIP accounts, and a built-in WebRTC↔SIP gateway. One Docker container.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

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 Privacy: no cloud, no telemetry Works with any SIP PBX MIT license
Docker: one container Helm chart Kubernetes amd64 and arm64
WebRTC to SIP gateway Asterisk 22 LTS PWA Video calls CI

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.

Dial pad on a phone In a call Incoming call SIP accounts
More screenshots
Recents with a missed call Call detail with note, tags and rating Contacts Settings
Intercom and auto-answer settings Page buttons (hold to talk) Connection status Dial pad in the light theme

DialDeck on a desktop browser: dial pad, favorites and recent calls

Status: stable (v1.0). 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; see SECURITY.md. Planned next: 1.1.0 (features), then 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, telemetry or update check, and we collect nothing. 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:

How DialDeck works: your devices use DialDeck in the browser over HTTPS and a WebSocket, with WebRTC audio and video. The DialDeck container on your server runs the web app and a hidden Asterisk gateway, which talks plain SIP and RTP to your existing PBX or SIP provider. Data stays in a /data volume.

  • 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 *7979 from 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.
  • 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.
  • One container for Docker or Kubernetes. Runs as non-root and stores its data in SQLite.

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
  1. Put HTTPS in front of it. Browsers only allow the microphone on https:// (or localhost). See docs/deployment.md for Caddy, nginx, Traefik and Kubernetes Ingress examples.
  2. Open the site and sign in as admin with the one-time password printed in the container log (docker logs dialdeck, look for FIRST RUN). You must change it at first sign-in. To choose it yourself, start with -e ADMIN_PASSWORD=....
  3. 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

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 (233/233 on GitHub at the last run); see Testing & CI for every check. An older local run:

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.

Explore related projects

Loading…