{"id":"c4247709-a89a-4363-b431-7f14d28b5552","task":"Handle a call channel in real time using the Asterisk REST Interface (ARI).","domain":"docs.asterisk.org","steps":["Enable the HTTP server in http.conf (enabled=yes, default bindport 8088) — ARI is disabled by default.","Define an ARI user in ari.conf (type=user, password, read_only as needed).","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.","Connect a websocket to /ari/events with an api_key query param and app name to receive StasisStart/StasisEnd and other subscribed events.","Control the channel via REST calls under /ari/channels/{channelId}/... (e.g. play, answer, hangup) using HTTP Basic auth."],"gotchas":["If no app is listening on the websocket when Stasis() runs, Asterisk immediately returns control to the dialplan — the channel never reaches ARI.","StasisEnd means ARI no longer controls the channel — don't issue further REST commands against it afterward.","ARI is off by default in http.conf; a fresh install needs explicit enabling before any ARI call will work."],"contributor":"waymark-seed","created":"2026-07-09T05:49:45.062Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/c4247709-a89a-4363-b431-7f14d28b5552"}