Dograh VoiceLink Plugin
A zero-to-hero Claude Code plugin that adds the VoiceLink telephony provider to a
Dograh voice-AI instance — from nothing to working
outbound calls plus an implemented inbound path — using the proven, non-breaking
provider-overlay approach already proven in production deployments.
Outbound is fully proven in production. Inbound is implemented and wired the same way,
but VoiceLink's inbound start-frame field names are unconfirmed upstream until a real
inbound call is captured — see
debugging.md §4.
Install the plugin, run /voicelink-install, and Claude Code sets everything up: it drops
in the real provider package, applies the three wiring edits, wires the single
inbound+outbound WSS URL, helps you configure the Settings → Telephony card, and verifies
the whole thing end-to-end with built-in debugging. It supports both a source checkout
and a Docker image overlay — the script auto-detects the Dograh root; you (or Claude)
pick the install mode.
The one fact to know up front: VoiceLink uses ONE WSS URL for both inbound and
outbound calls — wss://<your-host>/api/v1/telephony/ws. It is derived from the
BACKEND_API_ENDPOINT env var and pasted into the VoiceLink portal, not into the
Dograh telephony card. The telephony card only takes VoiceLink credentials
(username/password or bearer token) — no URLs. See
the single-WSS-URL guide.
Install into Claude Code
# add this repo as a marketplace, then install the plugin
/plugin marketplace add Harddiikk/dograh-voicelink-plugin
/plugin install dograh-voicelink-plugin@dograh-voicelink-plugin
(Or clone and add it as a local marketplace: /plugin marketplace add /path/to/dograh-voicelink-plugin.)
Restart Claude Code if prompted. You'll then have the /voicelink-* commands and the
dograh-voicelink-integration skill.
Quickstart
From a Claude Code session that can reach your Dograh code and/or deployment:
/voicelink-install # detect Dograh, apply the overlay (source or Docker), set the WSS host
/voicelink-configure # fill the telephony card + paste the WSS URL into the VoiceLink portal
/voicelink-verify https://api.your-domain.com # health + 101 WSS probe + providers metadata
/voicelink-debug # systematic troubleshooting if a call misbehaves
That's it. Outbound and inbound calls both ride the same single WSS URL (inbound pending a
real-call confirmation of the start-frame fields — see debugging.md §4).
What it does, concretely
The overlay makes exactly these changes to a stock Dograh (nothing else — no KYC/SaaS, no
Alembic migrations, no fork baggage):
- Copies the real provider package →
api/services/telephony/providers/voicelink/
(6 files: __init__, config, provider, transport, serializers, routes).
- Adds
VOICELINK = "voicelink" to WorkflowRunMode in api/enums.py.
- Registers it with one line in
api/services/telephony/providers/__init__.py
(routes auto-mount; factory/audio_config/run_pipeline are registry-driven).
- Wires the config schema into the discriminated union in
api/schemas/telephony_config.py (so the telephony card can save VoiceLink).
- (optional) copies the pytest suite →
api/tests/telephony/voicelink/.
The automation (scripts/apply_overlay.py) is idempotent, auto-detects the Dograh
root, applies each edit only if missing, and ships a manual-patch fallback for unusual
layouts. The Docker path builds a derived image with a build-time compile-check.
The two URLs (don't mix them up)
| URL | Direction | Goes where |
|---|
wss://<host>/api/v1/telephony/ws | VoiceLink → Dograh (call audio, in + out) | VoiceLink portal — derived from BACKEND_API_ENDPOINT (https→wss) |
https://app.voicelink.co.in/api | Dograh → VoiceLink (dial / login) | schema default for api_base — not on the telephony card |
- Inbound connects to the bare
…/ws; outbound uses …/ws/{workflow_id}/{organization_id}/{workflow_run_id} (Dograh sends it automatically per call).
- Set
BACKEND_API_ENDPOINT to a public https:// origin, and make sure your reverse
proxy passes the WebSocket upgrade on /api/v1/telephony/ws. No TURN needed.
Repository layout