Skip to Content
Dialtone

Configuration

Every setting in .env, grouped by what it affects.

All configuration lives in one .env file at the repo root. make init creates it from .env.example and generates the secrets. The compose file (deploy/docker-compose.yml) passes it to the server, the agent and the simulator; LiveKit, SIP and egress get their settings from it through compose variables.

The stack needs a Linux host: every service uses host networking (SIP/RTP and WebRTC need large UDP port ranges). Docker Desktop on macOS or Windows won't work.

After changing .env, restart what reads it: make up for the server, console and media services, make agent for the agent and simulator. The console's DJANGO_URL is baked in at build time, so a DASHBOARD_PORT change needs make up (which rebuilds).

Provider keys (all optional)

Set only the keys your AGENT_PIPELINE and the features you use need.

VariableEnables
GOOGLE_API_KEYGoogle AI (Gemini): the gemini-live pipeline, the console's Test chat simulator, Suggest with AI in the workflow builder, and mood classification on gemini-live.
SARVAM_API_KEYSarvam speech-to-text (sarvam and elevenlabs pipelines) and Sarvam TTS (sarvam).
OPENAI_API_KEYThe LLM of the sarvam and elevenlabs pipelines, and mood classification on them.
ELEVEN_API_KEYElevenLabs text-to-speech (elevenlabs pipeline).

Compose project and versions

VariableDefaultNotes
COMPOSE_PROJECT_NAMEunset (dialtone)Leave unset on new installs. Installs created before the Dialtone rename set ai-calling to keep their Docker volumes.
LIVEKIT_VERSIONv1.13.9livekit/livekit-server image tag.
SIP_VERSIONv1.18.0livekit/sip image tag.
LK_CLI_VERSIONv2.18.8LiveKit CLI used by scripts/lk.sh and make lk.
EGRESS_VERSIONv1.15.0livekit/egress (call recording). Check it against LIVEKIT_VERSION.

Versions are pinned on purpose: bump them deliberately, test on a staging host, never use :latest. The agent's Python dependencies are pinned in agent/requirements.txt (livekit-agents 1.8.5).

Server

VariableDefaultNotes
DASHBOARD_PORT8787Django server port, on 127.0.0.1 only. LiveKit's webhook and the console's DJANGO_URL follow it.
DJANGO_SECRET_KEYgeneratedKeep it secret; changing it logs everyone out.
DJANGO_DEBUGfalseNever true on a server: debug pages show settings and caller data.
CONSOLE_URLhttp://localhost:3000/Where the server's / redirects.
CSRF_EXTRA_TRUSTED_ORIGINSemptyExtra origins allowed to POST, comma-separated, beyond http://localhost:3000 and http://127.0.0.1:3000.
DIALTONE_PROJECT_NAMEDialtoneOptional, not in .env.example. Starting value of the install's project name; see Branding.
RECORDING_MIN_FREE_GB2Optional, not in .env.example. Recordings are refused when the disk has less free space.

Database (PostgreSQL)

VariableDefaultNotes
POSTGRES_DBdashboard
POSTGRES_USERdashboard
POSTGRES_PASSWORDgeneratedSet before the first make up: the database is created with it.
POSTGRES_HOST127.0.0.1
POSTGRES_PORT5432

LiveKit

VariableDefaultNotes
LIVEKIT_API_KEY / LIVEKIT_API_SECRETgeneratedShared by LiveKit, SIP, egress, the server and the agent.
LIVEKIT_URLws://127.0.0.1:7880Where the agent and server reach LiveKit. Agents on other VMs use the media VM's private IP.
LIVEKIT_PUBLIC_URLws://localhost:7880The URL the browser connects to for Voice test. make tunnel forwards 7880, so the default works from your laptop.
REDIS_PORT6380Non-default so it never clashes with another Redis on the host.

SIP trunk

VariableDefaultNotes
SIP_NUMBERS+91XXXXXXXXXXYour numbers, comma-separated, E.164.
SIP_ALLOWED_ADDRESSESemptyIPs/CIDRs your provider sends calls from, comma-separated. Required by make sip.
SIP_AUTH_USERNAME / SIP_AUTH_PASSWORDemptyOptional digest auth, if your provider uses it for inbound calls.
SIP_LOG_LEVELinfo
AGENT_SIP_HOSTemptyPublic IP of the SIP server; scripts/test-call.sh dials it directly.

Agent worker

VariableDefaultNotes
AGENT_NAMEphone-agentWorker name; the SIP dispatch rule and Voice test dispatch this name.
AGENT_PIPELINEgemini-livegemini-live, sarvam or elevenlabs.
AGENT_COMPANY_NAMEemptyOptional, not in .env.example. Company the built-in agent speaks for when the published agent doesn't set one. Empty: no company is named.
AGENT_PERSONA_NAMEPriyaName the agent introduces itself with when the published agent doesn't set one. Empty: no name.
AGENT_NAME_PRONUNCIATIONemptyOptional, not in .env.example. Free-text guidance for saying the company name.
AGENT_CONSENT_LINEbuilt-inOptional, not in .env.example. Recording notice added to the opening of a recorded call. Set it to an empty string to turn the notice off.
NUM_IDLE_PROCESSES3Warm processes ready for new calls. 1 on small VMs (e2-medium), 3+ on 4+ vCPU.
LOAD_THRESHOLD0.75Worker load above which LiveKit stops sending it new calls.
BACKGROUND_AMBIENCEnonenone, office, callcenter, city or a path to your own audio file (relative to agent/). Avoid office: callers hear its voices as someone else on the line.
BACKGROUND_VOLUMEemptyOverride the ambience level (each built-in has a tuned default).

Values set on the published agent in the console (company, persona, pronunciation, consent line) win over these environment variables.

Gemini Live

VariableDefaultNotes
GEMINI_LIVE_MODELgemini-3.8-live
GEMINI_VOICEKore
GEMINI_AFFECTIVE_DIALOGfalseTone follows the caller's emotion (Gemini v1alpha), if your model supports it.

Sarvam / OpenAI / ElevenLabs

VariableDefaultNotes
LLM_MODELgpt-4.1-miniOpenAI model of the sarvam and elevenlabs pipelines.
DEFAULT_LANGUAGEhi-INReply language until the caller's language is detected.
TTS_SPEAKERpriyaSarvam voice.
ELEVENLABS_VOICE_IDEXAVITQu4vr4xnSDxMaLSarah (premade). Library voices need a paid ElevenLabs plan over the API.
ELEVENLABS_MODELeleven_flash_v2_5

Call behaviour

VariableDefaultNotes
DEAD_AIR_ENABLEDtrueCheck in on a silent caller.
DEAD_AIR_NUDGE_S4First check-in after this many seconds of silence.
DEAD_AIR_SECOND_NUDGE_S9Second check-in.
DEAD_AIR_HANG_UP_S15Polite goodbye and hang-up. "Ek minute", "ruko", "wait"… triple these for that pause.
MOOD_ENABLEDfalseClassify each caller turn and adapt tone (and pace on sarvam/elevenlabs). See Mood evaluation.
SENTIMENT_MODELemptyEmpty: gemini-flash-lite-latest on gemini-live, gpt-4.1-mini otherwise.
MOOD_EVAL_CAPTUREfalseKeep caller turn text in reports for labelling. Turn off after the evaluation.
HANDOFF_SIP_URIemptytel:+91… or sip:…. Live transfer of an upset caller who agrees; needs a trunk that supports REFER. Empty: the agent offers a callback.
RECORDING_ENABLEDtrueMaster switch. true: phone calls are recorded when the workspace's Record calls switch (Settings → Calls) is on. false: nothing is recorded.

Server connection

VariableDefaultNotes
DASHBOARD_URLhttp://127.0.0.1:8787Where the agent fetches the published agent and posts live events (/api/runtime/*). Set it empty on agent-only VMs.
DASHBOARD_REPORT_URLemptyWhere the agent posts each call's report. On the media VM: http://127.0.0.1:8787/api/report.
CONFIG_CACHE_DIR/cacheLast good published config per number (the agent-cache volume).

Simulator and AI helpers

VariableDefaultNotes
SIM_PORT8790Port of dialtone-agent-sim (text Test chat).
SIM_LLM_MODELgemini-3.6-flashModel the simulator uses (GOOGLE_API_KEY).
AGENT_SIM_URLhttp://127.0.0.1:8790Where the server reaches the simulator.
SUGGEST_LLM_MODELgemini-3.6-flashModel behind the workflow builder's Suggest with AI.
SUGGEST_DAILY_LIMIT20Suggestion runs per workspace per day (failed runs don't count).
AUDIT_FIX_DAILY_LIMIT20Suggest fixes runs (from call audits) per workspace per day (failed runs don't count).
AUDIT_FIX_AUTO_MIN_CONFIDENCE0.8Confidence (0–1) a fix needs before Auto-apply audit fixes to draft applies it.
AUDIT_FIX_AUTO_MIN_CALLS3Audited calls a problem must appear in before Auto-apply audit fixes to draft applies its fix.
AUDIT_FIX_MIN_CALLS_FOR_SCORES5Audited calls each version needs before Versions compares its scores with the version before.

Deploy-time variables (not in .env)

make deploy and make tunnel read these from your shell: GCP_PROJECT (required), VM (default dialtone), GCP_ZONE (default asia-south1-c), REMOTE_DIR (default dialtone), FORCE=1, ROLLBACK=1. See Deploy to a VM.

The server tests read TEST_POSTGRES_HOST, TEST_POSTGRES_PORT, TEST_POSTGRES_USER and TEST_POSTGRES_PASSWORD (default 127.0.0.1:55432, postgres/postgres).

On this page