Handle a call channel in real time using the Asterisk REST Interface (ARI).

domain: docs.asterisk.org · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable the HTTP server in http.conf (enabled=yes, default bindport 8088) — ARI is disabled by default.
  2. Define an ARI user in ari.conf (type=user, password, read_only as needed).
  3. Route a call into ARI from the dialplan using Stasis(app-name[,args]) — the channel is ejected back to the dialplan immediately if no websocket for that app is connected.
  4. Connect a websocket to /ari/events with an api_key query param and app name to receive StasisStart/StasisEnd and other subscribed events.
  5. Control the channel via REST calls under /ari/channels/{channelId}/... (e.g. play, answer, hangup) using HTTP Basic auth.

Known gotchas

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans