Dograh
Your Asterisk PBX

An AI agent inside the Asterisk you run

Dograh is the self-hostable voice agent platform with an open-source workflow builder. Connect the Asterisk or FreePBX system you already run through Asterisk ARI, on Dograh Cloud or self-hosted, and send only the calls you choose to the agent.

6,000+GitHub starsBSD-2open source$0platform fee, self-hostedAny systemconnects to the tools you use
01 / How it works

Dialplan in, agent on, extension rings

Example
A call reaches Asteriskthe dialplan sends it onthe agent talksyour extension rings
01 · Connect

Create the ARI user

Asterisk ARIAsterisk's interface for outside apps

Create an ARI user and turn on the HTTP server in Asterisk, then save those values in Dograh.

→ Asterisk 22 or later, or 20 LTS with chan_websocket

02 · Route

Send chosen calls to Stasis

Stasis appthe name your dialplan hands calls to

Dograh generates the app name. Add it to the dialplan for calls the agent should answer, and register those extensions.

→ Every other extension keeps working as before

03 · Hand back

Ring your own extensions

Transfer Callthe agent dials a person

The agent can ring a PJSIP extension or a queue. The caller hears hold music and joins once someone answers.

→ Test a transfer nobody picks up

02 / What it works with

Your PBX keeps its trunks and extensions

Where calls start
Your Asterisk or FreePBX serverYour SIP trunkA PRI on a T1 or E1 card

The PBX keeps every line it already terminates

Where the agent runs
Dograh CloudYour own servers

Both connect to Asterisk through the same ARI steps

Calls the agent places
FreePBX outbound routesCampaigns over ARI

A Local/{number}@from-internal dial string keeps your existing trunk rules

03 / Before launch

Check these on one test extension

  1. WebSocket modules loadedchan_websocket and res_websocket_client are present, as they are on Asterisk 22 and later.
  2. Stasis line in the dialplanOnly the extensions meant for the agent enter the app name you were given.
  3. Transfer tested with no answerIf nobody picks up, the agent hears the transfer failed and stays with the caller.
  4. Keypad steps left in the PBXMenu presses and typed card numbers stay in Asterisk, since the agent listens to speech.
  5. Called from a real handsetPhone calls reach the agent as 8 kHz audio, so test away from the browser.
04 / Why keep the PBX

Add the agent, leave the phone system alone

Extensions stay put

Staff phones, queues and ring groups keep working while one call type moves to the agent.

Cloud or your own servers

Run the agent on Dograh Cloud, or self-host it beside the PBX.

Flows in a visual workflow builder

Prompts and handovers sit as connected nodes instead of lines of dialplan text.

Every call traced and scored

Each call keeps a full trace and QA scores for every step.

05 / Guides

Trunks, PRI lines and carriers, explained

Complete guideSIP Trunk Providers Compared: Phones and AI Voice AgentsRead →PricingSIP Trunk Pricing in 2026: What a Line Really CostsSIP trunk pricing explained, from per-minute and per-channel plans and US rates from Twilio, Telnyx and Plivo to the fees under the rate, one worked month of AI calls and the platform and model lines on top.ComparisonBest SIP Trunk Providers for AI Voice AgentsThe best SIP trunk providers for AI voice agents, judged on audio, regions, number types, setup and transfers, covering Twilio, Telnyx, Plivo, Vonage, Exotel, Vobiz and any carrier through Managed SIP or Asterisk.TechnicalWholesale and Reseller SIP Trunks for Voice AI AgenciesHow voice AI agencies buy SIP trunk minutes in bulk, split them per client with carrier subaccounts or managed accounts, route each client's numbers to its own agent and re-bill each client for its share.ComparisonFree SIP Trunks: What Is Real and What Is a TrialFree SIP trunks sorted into trial credit from Twilio and IDT, free trunks with paid numbers and minutes, and free inbound offers, plus what a working trunk for AI voice agents still needs before real callers reach it.ComparisonLow-Cost SIP Trunk Providers: What to Check Before You SwitchBefore moving to a low-cost SIP trunk provider, check codecs and call quality, regions and support hours, number porting, emergency calling and the fees under the rate, then move the trunk without rebuilding your AI voice agent.ComparisonSIP Trunk vs PRI: Which One Works With AI Voice AgentsSIP trunk vs PRI for AI voice agents, covering what each line is, why a PRI call needs a gateway or a PBX before an AI agent can take it, how to keep a PRI with Asterisk or move to SIP, and when a PRI still fits.
Questions
Which Asterisk versions work?+

Asterisk 22 or later, or Asterisk 20 LTS with the chan_websocket and res_websocket_client modules added.

Does it work with FreePBX?+

Yes. FreePBX runs Asterisk underneath, so it uses the same ARI setup, and calls the agent places can follow your FreePBX outbound routes.

Do I need to self-host to use Asterisk ARI?+

No. Asterisk ARI connects to Dograh Cloud or to a self-hosted install the same way.

Can the agent transfer callers back to my staff?+

Yes. Transfer Call on Asterisk ARI rings a PJSIP extension or a queue first, and connects the caller only once someone answers.

Can I keep my PRI line?+

Yes. If the PRI ends on Asterisk, the PBX keeps it and hands chosen calls to the agent through ARI.

Is there a platform fee?+

Self-hosted Dograh has no per-minute platform fee, but servers, model keys and phone minutes still cost money. Dograh Cloud charges a 1¢-a-minute platform fee.

Send one extension to the agent first.

Self-host in one command, or start on Dograh Cloud.

$ curl … start_docker.sh && ./start_docker.sh